actionConfig
in package
Manage and give access to lizmap configuration.
Tags
Table of Contents
Properties
- $oldConfigConversionDone : mixed
- $config : mixed
- $errors : mixed
- $status : mixed
Methods
- __construct() : mixed
- convertOldConfig() : array<string|int, mixed>
- Convert an old "action" configuration (generated for LWC < 3.7) into the new format (array of actions instead of array of layers).
- getAction() : null|object
- Get an action from the configuration.
- getActionsByScope() : array<string|int, mixed>
- Get the project actions corresponding to the given scope.
- getConfig() : mixed
- getErrors() : mixed
- getStatus() : mixed
Properties
$oldConfigConversionDone
public
mixed
$oldConfigConversionDone
= \false
$config
private
mixed
$config
$errors
private
mixed
$errors
= array()
$status
private
mixed
$status
= \false
Methods
__construct()
public
__construct(mixed $repository, mixed $project) : mixed
Parameters
- $repository : mixed
- $project : mixed
convertOldConfig()
Convert an old "action" configuration (generated for LWC < 3.7) into the new format (array of actions instead of array of layers).
public
convertOldConfig() : array<string|int, mixed>
Return values
array<string|int, mixed> —The new configuration
getAction()
Get an action from the configuration.
public
getAction(string $actionName[, string $layerId = null ]) : null|object
Parameters
- $actionName : string
-
The action short name
- $layerId : string = null
-
The Layer ID (optional)
Return values
null|object —The action for this layer
getActionsByScope()
Get the project actions corresponding to the given scope.
public
getActionsByScope([string $scope = 'project' ]) : array<string|int, mixed>
Parameters
- $scope : string = 'project'
-
- The scope of the action: project, layer or feature
Return values
array<string|int, mixed> —$actions - The corresponding actions
getConfig()
public
getConfig() : mixed
getErrors()
public
getErrors() : mixed
getStatus()
public
getStatus() : mixed