Variables | |
trait | BatchList |
trait | Cacheable |
bool | $nocache = false |
trait | Dependencies |
trait | Dynamics |
string | $name_pattern = 'info_field_' |
DynamicFieldsHandle | $dynamics |
trait | HasEvent |
bool | $events_active = true |
trait | I18n |
trait | Permissions |
bool | $can_public = false |
trait | Replacements |
Db | $zdb |
Login | $login |
Preferences | $preferences |
RouteParser | $routeparser |
trait | Socials |
trait | Translatable |
string | $name = null |
Copyright © 2003-2024 The Galette Team
This file is part of Galette (https://galette.eu).
Galette is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Galette is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Galette. If not, see http://www.gnu.org/licenses/.
Galette\Features\activateEvents | ( | ) |
Activate events
|
protected |
Add a translation stored in the database
string | $text_orig | Text to translate |
Galette\Features\areEventsEnabled | ( | ) |
Are events enabled
|
abstractprotected |
Called once cache has been loaded.
mixed | $content | Content from cache |
|
protected |
Check socials
array<string,mixed> | $post User input |
|
protected |
Delete a translation stored in the database
string | $text_orig | Text to translate |
Galette\Features\disableAllDeps | ( | ) |
Reset dependencies to load
Galette\Features\disableDep | ( | string | $name | ) |
Enable a load dependency
string | $name | Dependency name |
Galette\Features\disableEvents | ( | ) |
Disable events
|
protected |
Extract posted values for dynamic fields
array<string,mixed> | $post Posted values |
array<string,int|bool> | $required Array of required fields |
array<string> | $disabled Array of disabled fields |
|
protected |
Store dynamic Files
array<string,mixed> | $files Posted files |
|
protected |
Remove dynamic fields values
bool | $transaction | True if a transaction already exists |
|
protected |
Stores dynamic fields
bool | $transaction | True if a transaction already exists |
Galette\Features\dynamicsValidate | ( | array | $values, |
string | $prefix = 'dynfield_' |
||
) |
Validate data for dynamic fields Set valid data in current object, also resets errors list
array<string> | $values Dynamic fields values | |
string | $prefix | Prefix to replace, default to 'dynfield_' |
Galette\Features\enableAllDeps | ( | ) |
Enable all dependencies to load
Galette\Features\enableDep | ( | string | $name | ) |
Enable a load dependency
string | $name | Dependency name |
Galette\Features\getAddEventName | ( | ) |
Get add event name
|
abstractprotected |
Complete path to cache file
|
protected |
Get patterns for a contribution
boolean | $legacy | Whether to load legacy patterns |
|
protected |
Get core registered types
|
protected |
Get data to cache
Galette\Features\getDeleteEventName | ( | ) |
Get edit event name
Galette\Features\getDynamicFields | ( | ) |
Get dynamic fields
Galette\Features\getDynamicPatterns | ( | string | $form_name, |
bool | $legacy = true |
||
) |
Get dynamic patterns
string | $form_name | Dynamic form name |
boolean | $legacy | Whether to load legacy patterns |
Galette\Features\getEditEventName | ( | ) |
Get edit event name
Galette\Features\getErrors | ( | ) |
Get errors
|
abstractprotected |
Get prefix for events
Galette\Features\getFormName | ( | ) |
Get form name
Galette\Features\getLegend | ( | ) |
Build legend array
|
protected |
Get main patterns
|
protected |
Get patterns for a member
boolean | $legacy | Whether to load legacy patterns |
Galette\Features\getMemberRegisteredTypes | ( | ) |
Get member registered types
Galette\Features\getName | ( | bool | $translated = true | ) |
Get field name
boolean | $translated | Get translated or raw name |
Galette\Features\getPatterns | ( | ) |
Get patterns
Galette\Features\getPermission | ( | ) |
Get current permissions
Galette\Features\getPermissionName | ( | ) |
Get permission name
|
protected |
Get registered types
bool | $core | True for core type, false for members ones |
Galette\Features\getReplacements | ( | ) |
Get configured replacements
Galette\Features\getWarnings | ( | ) |
Get warnings
|
protected |
Handle cache
boolean | $nocache | Do not try to cache |
Galette\Features\hasAddEvent | ( | ) |
Has add event
Galette\Features\hasDeleteEvent | ( | ) |
Has delete event
Galette\Features\hasEditEvent | ( | ) |
Has edit event
|
protected |
Is load dependency enabled?
string | $name | Dependency name |
|
protected |
Loads entries from cache
|
protected |
Creates/update the cache
|
abstractprotected |
Ensure data to cache are present
|
protected |
Proceed replacement on given entry
string | $source | Source string |
Galette\Features\setContribution | ( | Contribution | $contrib | ) |
Set contribution and proceed related replacements
Contribution | $contrib | Contribution |
the list of all dynamic fields
Galette\Features\setDb | ( | Db | $db | ) |
Set Db dependency
Db | $db | Db instance |
Galette\Features\setDeps | ( | array | $deps | ) |
Set dependencies
array<string,bool> | $deps Dependencies to set |
Galette\Features\setDynamicFields | ( | string | $form_name, |
array | $dynamic_fields, | ||
?object | $object | ||
) |
Set dynamic fields and proceed related replacements
string | $form_name | Form name |
array<string,mixed> | $dynamic_fields Dynamic fields | |
?object | $object Related object (Adherent, Contribution, ...) |
dynamic field label
dynamic field value
Galette\Features\setLogin | ( | Login | $login | ) |
Set Login dependency
Login | $login | Login instance |
Galette\Features\setMail | ( | PHPMailer | ) |
Set mail instance
PHPMailer | PHPMailer instance |
Galette\Features\setMain | ( | ) |
Set main replacements
Galette\Features\setMember | ( | Adherent | $member | ) |
Set member and proceed related replacements
Adherent | $member | Member |
the list of all dynamic fields
Galette\Features\setNoContribution | ( | ) |
Set contribution and proceed related replacements
the list of all dynamic fields
|
protected |
Set patterns
array<string,array<string,string>> | $patterns Patterns to add |
Galette\Features\setPreferences | ( | Preferences | $preferences | ) |
Set Preferences dependency
Preferences | $preferences | Preferences instance |
Galette\Features\setReplacements | ( | array | $replaces | ) |
Set replacements
array<string,?string> | $replaces Replacements to add |
Galette\Features\setRouteparser | ( | RouteParser | $routeparser | ) |
Set RouteParser dependency
RouteParser | $routeparser | RouteParser instance |
|
protected |
Store social networks/contacts
int | null | $id | ID |
|
protected |
Update a translation stored in the database
string | $text_orig | Text to translate |
string | $text_locale | The locale |
string | $text_trans | Translated text |
Galette\Features\withAddEvent | ( | ) |
Activate add event
Galette\Features\withDeleteEvent | ( | ) |
Activate add event
Galette\Features\withEditEvent | ( | ) |
Activate edit event
Galette\Features\withoutAddEvent | ( | ) |
Disable add event
Galette\Features\withoutDeleteEvent | ( | ) |
Disable delete event
Galette\Features\withoutEditEvent | ( | ) |
Disable edit event
trait Galette::Features\BatchList |
Batch list feature
trait Galette::Features\Cacheable |
Cacheable objects trait
trait Galette::Features\Dependencies |
Dependencies feature
trait Galette::Features\Dynamics |
Dynamics fields trait
trait Galette::Features\HasEvent |
Translatable objects trait
trait Galette::Features\I18n |
Files
trait Galette::Features\Permissions |
Permissions
trait Galette::Features\Replacements |
Replacements feature
trait Galette::Features\Socials |
Socials feature
trait Galette::Features\Translatable |
Translatable objects trait