Lizmap Web Client Master

actionConfig
in package

Manage and give access to lizmap configuration.

Tags
author

3liz

copyright

2017 3liz

see
http://3liz.com
license

Mozilla Public License : http://www.mozilla.org/MPL/

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

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


        
On this page

Search results