A new module “Company” has been added to the system. It is designed to create arbitrary text values, such as company information. The module is added to all configurations by default.
You can get values in two ways:
1. $alc_controller->module_func_exec('company', 'get_attribute', 'phone'));
Execution result:
Array
(
[0] => Array
(
[id] => table row ID
[identifier] => phone (conditional identifier to ensure language compatibility)
[attribute] => value name
[value] => value
[1] => Array
(
[id] => table row ID
[identifier] => phone (conditional identifier to ensure language compatibility)
[attribute] => value name
[value] => value
[2] => Array
(
...
)
)
2. $alc_controller->module_func_exec('company', 'get_attribute', 'phone', true);
Execution result:
Array
(
[0] => value
[1] => value
[2] => ...
)
Note:
1. identifier may not have a unique value.
2. 'phone' this is an example of a conditional identifier.
3. If the conditional identifier is not found, the function returns a boolean false.