Summary
- File
- Package hierarchy Module\config
- Class hierarchy \AbstractConfigData \DefaultModuleConfig \DefaultRichModuleConfig
This is a default and minimal implementation of the ConfigData interface.
This is a default and minimal implementation of the ConfigData interface.
__static()
None found |
get_default_values() : \string[mixed]
Returns a map associating to each property name the corresponding default value
None found |
load( $module_id = '')
Returns the configuration of the module.
$module_id |
None found |
save( $module_id = '')
Saves the configuration in the database. As it become persistent.
$module_id |
None found |
__call(string $method, array|string $arguments)
Getters/Setters virtualization.
It allows to call get or set methods without declaring them in ModuleConfig.class.php You only need to declare constants and a return array of default values in a get_default_value() method.
string | $method | method name ( ex : get_constant_value or set_constant_value($arguments) ) |
array|string | $arguments | parameter to set. |
None found |
get_class_constants() : array
All constants array in current class.
None found |
current_class_has_method( $method) : boolean
$method |
For checking if a method exists in current class.
None found |
__construct()
Constructs a AbstractConfigData object
None found |
synchronize()
This method is not used in the configuration context.
{@inheritdoc}
None found |
set_default_values()
Redefine this method if you want to avoid getting errors while asking values.
If some entries doesn't exist, they can be created here.
None found |
get_property(string $name) : string
Reads a property's value.
string | $name | Name of the property to read |
the read value
None found |
set_property(string $name, string $value)
Sets a property value. If the property exists, it overrides its value, otherwise, it creates an entry for this property.
string | $name | Name of the property |
string | $value | Value of the property |
None found |
get_default_value( $property)
$property |
None found |
$module_id : string
None found |
$properties_map :
None found |
ITEMS_PER_PAGE = 'items_per_page'
None found |
AUTHORIZATIONS = 'authorizations'
None found |
ITEMS_PER_ROW = 'items_per_row'
None found |
ITEMS_DEFAULT_SORT_FIELD = 'items_default_sort_field'
None found |
ITEMS_DEFAULT_SORT_MODE = 'items_default_sort_mode'
None found |
DEFAULT_CONTENT = 'default_content'
None found |
SUMMARY_DISPLAYED_TO_GUESTS = 'summary_displayed_to_guests'
None found |
AUTO_CUT_CHARACTERS_NUMBER = 'auto_cut_characters_number'
None found |
AUTHOR_DISPLAYED = 'author_displayed'
None found |
VIEWS_NUMBER_ENABLED = 'views_number_enabled'
None found |
CATEGORIES_PER_PAGE = 'categories_per_page'
None found |
CATEGORIES_PER_ROW = 'categories_per_row'
None found |
ROOT_CATEGORY_DESCRIPTION = 'root_category_description'
None found |
DISPLAY_TYPE = 'display_type'
None found |
GRID_VIEW = 'grid_view'
None found |
LIST_VIEW = 'list_view'
None found |
TABLE_VIEW = 'table_view'
None found |
DEFERRED_OPERATIONS = 'deferred_operations'
None found |