Lizmap Web Client 3.10.0

Utils
in package

Table of Contents

Methods

getLastPartPath()  : string
Extracts and returns last part of a given path with a trailing slash.
verifyVars()  : array<string|int, mixed>
Verifies the validity of the provided group and right parameters against existing groups and rights.
getAllGroups()  : array<string|int, mixed>
Retrieves and returns a list of all group IDs.

Methods

getLastPartPath()

Extracts and returns last part of a given path with a trailing slash.

public static getLastPartPath(string $path) : string
Parameters
$path : string

the directory path to process

Return values
string

the last portion of the path, formatted with a trailing slash

verifyVars()

Verifies the validity of the provided group and right parameters against existing groups and rights.

public static verifyVars(null|string $group, null|string $right, string $key) : array<string|int, mixed>
Parameters
$group : null|string

the name of the group to validate

$right : null|string

the name of the right to validate

$key : string

the key used to fetch the list of rights

Return values
array<string|int, mixed>

an associative array containing a boolean under the key 'bool' indicating success or failure, and a message under the key 'message' describing the result or error

getAllGroups()

Retrieves and returns a list of all group IDs.

private static getAllGroups(object $manager) : array<string|int, mixed>
Parameters
$manager : object

the manager object from which group information is retrieved

Return values
array<string|int, mixed>

an array of group IDs


        
On this page

Search results