Model generator configuration.
Method Details
-
-
fixActionParameters ($action, $parameters)
Browse code
-
-
getContextConfiguration ($context, $fields = null)
Browse code
-
getFieldConfiguration ($context, $field)
Browse code
-
(mixed) getFieldConfigValue ($config, $key, $default = null)
Browse code
| $config |
The configuration
|
| $key |
The key name
|
| $default |
The default value
|
Gets the value for a given key.
returns The key value
-
getFormFields ($form, $context)
Browse code
| $form |
The form with the fields
|
| $context |
The display context
|
Gets the fields that represents the form.
If no form.display parameter is passed in the configuration, all the fields from the form are returned (dynamically).
-
getFormFilterFields ($form)
Browse code
| $form |
The form with the fields
|
Gets the fields that represents the filters.
If no filter.display parameter is passed in the configuration, all the fields from the form are returned (dynamically).
-
(mixed) getValue ($key, $default = null, (Boolean) $escaped = false)
Browse code
| $key |
The configuration key (title.list.name for example)
|
| $default |
The default value if none has been defined
|
| $escaped |
Whether to escape single quote (false by default)
|
Gets the configuration for a given field.
returns The configuration value
-
-
parseVariables ($context, $key)
Browse code
-
Constructor.
|