Lizmap Web Client 3.10.0

LizmapRights
in package

This class defines the rights associated with Lizmap functionalities.

The rights are hard-coded because there are other rights not used in it.

Table of Contents

Properties

$rights  : array<string|int, mixed>

Methods

getLabel()  : string
Get label for a given subject corresponding to passed lablekey.
getLWCRights()  : array<string|int, mixed>
Retrieves the LWC rights.

Properties

$rights

protected static array<string|int, mixed> $rights = array('lizmap.repositories.view' => 'admin~jacl2.lizmap.repositories.view', 'lizmap.tools.displayGetCapabilitiesLinks' => 'admin~jacl2.lizmap.tools.displayGetCapabilitiesLinks', 'lizmap.tools.edition.use' => 'admin~jacl2.lizmap.tools.edition.use', 'lizmap.tools.layer.export' => 'admin~jacl2.lizmap.tools.layer.export', 'lizmap.tools.loginFilteredLayers.override' => 'admin~jacl2.lizmap.tools.loginFilteredLayers.override')

Methods

getLabel()

Get label for a given subject corresponding to passed lablekey.

public static getLabel(string $labelKey, mixed $locale) : string

It uses the correct local given in parameters.

Parameters
$labelKey : string

Label key of the subject

$locale : mixed
Tags
throws
Exception
Return values
string

label if found, else "Not found."

getLWCRights()

Retrieves the LWC rights.

public static getLWCRights() : array<string|int, mixed>
Return values
array<string|int, mixed>

the list of LWC rights


        
On this page

Search results