[IniCommandSettings]
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
The group [IniCommandSettings] of settings/ini.ini.
File
settings/ini.ini; override it in settings/override/ini.ini.append.php, in a siteaccess or in an extension.
Settings
| Setting | Default | Description |
|---|---|---|
| Actions[<key>] | get=expIniActionGet; set=expIniActionSet; add=expIniActionAdd; rem=expIniActionRem; clear=expIniActionClear; toggle=expIniActionToggle; copy=expIniActionCopy; move=expIniActionMove; move-all=expIniActionMoveAll; where=expIniActionWhere; list=expIniActionList; scopes=expIniActionScopes; actions=expIniActionActions | The actions of the command: Actions[<name>]=<class>. The class implements expIniAction (kernel/classes/ini/actions/expiniaction.php): name(), description(), usage() and run( expIniCommandContext $c ), which returns the exit code. "exp:ini <name> ..." makes the class and runs it. An extension adds an action by an INI append of its own, e.g. extension/myext/settings/ini.ini.append.php: [IniCommandSettings] Actions[dump]=myExtIniActionDump then regenerates the extension autoloads (php bin/php/ezpgenerateautoloads.php -e) so the class is found. The same name as a built-in replaces the built-in; an empty value (Actions[copy]=) switches an action off. |
| ActionAliases[<key>] | remove=rem | Other names of actions: ActionAliases[<alias>]=<action name>. |
| ScopeProviders[] | expIniCoreScopeProvider; expIniExtensionScopeProvider | The scope providers: classes implementing expIniScopeProvider (kernel/classes/ini/expiniscopeprovider.php), whose scopes( $root ) returns expIniScope objects. The two built-ins give global, default, every siteaccess, every extension and every extension siteaccess directory. An extension adds a scope (a cluster-wide directory, one per environment, ...) by an INI append: [IniCommandSettings] ScopeProviders[]=myExtIniScopeProvider The first scope of a name wins, so a provider cannot take over a built-in one. |
See also
Generated example: ini.ini [IniCommandSettings]
Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this group. The descriptions are the comment lines of settings/ini.ini.
Contributors
- Graham Brookins Updated
Comments
Add a comment