LDAP Account Manager

ScopeAndModuleValidation
in package

Validation of scope and module names.

Table of Contents

REGEX_MODULE  = "/^[a-z0-9_-]+\$/i"
REGEX_SCOPE  = "/^[a-z0-9_-]+\$/i"
$cachedModuleNames  : mixed
$cachedScopeNames  : mixed
isValidModuleName()  : bool
Checks if the provided module name is valid.
isValidScopeName()  : bool
Checks if the provided scope name is valid.

Constants

REGEX_MODULE

public mixed REGEX_MODULE = "/^[a-z0-9_-]+\$/i"

REGEX_SCOPE

public mixed REGEX_SCOPE = "/^[a-z0-9_-]+\$/i"

Properties

$cachedModuleNames

private static mixed $cachedModuleNames = \null

$cachedScopeNames

private static mixed $cachedScopeNames = \null

Methods

isValidModuleName()

Checks if the provided module name is valid.

public static isValidModuleName(string $moduleName) : bool
Parameters
$moduleName : string

module name

Return values
bool

is existing

isValidScopeName()

Checks if the provided scope name is valid.

public static isValidScopeName(string $scope) : bool
Parameters
$scope : string

scope name

Return values
bool

is existing

Search results