RulesCollection extends Dictionary
Table of Contents
Constants
- PRESET_DEFAULT = 0
- PRESET_HIGH = 3
- PRESET_LOW = 1
- PRESET_MIDDLE = 2
Properties
Methods
- __call() : mixed
- It's magic.
- __construct() : mixed
- RulesCollection constructor.
- __unserialize() : void
- clear() : mixed
- compare() : bool
- Compares two collections.
- createByPreset() : static
- Creates the collection of rules by a known preset.
- current() : Rule
- get() : string|array<string|int, mixed>|null
- Returns any variable by its name. Null if variable is not set.
- getBlockLoginAttempts() : void
- getBlockTime() : void
- getCheckwordTimeout() : void
- getLoginAttempts() : void
- getMaxStoreNum() : void
- getPasswordChangeDays() : void
- getPasswordCheckPolicy() : void
- getPasswordCheckWeak() : void
- getPasswordDigits() : void
- getPasswordLength() : void
- getPasswordLowercase() : void
- getPasswordPunctuation() : void
- getPasswordUniqueCount() : void
- getPasswordUppercase() : void
- getSessionIpMask() : void
- getSessionTimeout() : void
- getStoreIpMask() : void
- getStoreTimeout() : void
- getValues() : array<string|int, mixed>
- Retuns key => value pairs in old-fashioned style (compatibility).
- isEmpty() : bool
- Returns true if the dictionary is empty.
- jsonSerialize() : array<string|int, mixed>
- JsonSerializable::jsonSerialize — Specify data which should be serialized to JSON
- next() : Rule
- offsetGet() : Rule
- rewind() : Rule
- set() : mixed
- setValues() : mixed
- toArray() : array<string|int, mixed>
- Returns the values as an array.
Constants
PRESET_DEFAULT
public
mixed
PRESET_DEFAULT
= 0
PRESET_HIGH
public
mixed
PRESET_HIGH
= 3
PRESET_LOW
public
mixed
PRESET_LOW
= 1
PRESET_MIDDLE
public
mixed
PRESET_MIDDLE
= 2
Properties
$values
public
array<string|int, Rule>
$values
Methods
__call()
It's magic.
public
__call(string $name, array<string|int, mixed> $arguments) : mixed
..
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Tags
__construct()
RulesCollection constructor.
public
__construct() : mixed
__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
clear()
public
clear() : mixed
compare()
Compares two collections.
public
compare(RulesCollection $policy) : bool
Parameters
- $policy : RulesCollection
Return values
bool —True if supplied policy is stronger than the current one.
createByPreset()
Creates the collection of rules by a known preset.
public
static createByPreset([int $preset = self::PRESET_DEFAULT ]) : static
Parameters
- $preset : int = self::PRESET_DEFAULT
Return values
staticcurrent()
public
current() : Rule
Return values
Ruleget()
Returns any variable by its name. Null if variable is not set.
public
get(string $name) : string|array<string|int, mixed>|null
Parameters
- $name : string
Return values
string|array<string|int, mixed>|nullgetBlockLoginAttempts()
public
getBlockLoginAttempts() : void
getBlockTime()
public
getBlockTime() : void
getCheckwordTimeout()
public
getCheckwordTimeout() : void
getLoginAttempts()
public
getLoginAttempts() : void
getMaxStoreNum()
public
getMaxStoreNum() : void
getPasswordChangeDays()
public
getPasswordChangeDays() : void
getPasswordCheckPolicy()
public
getPasswordCheckPolicy() : void
getPasswordCheckWeak()
public
getPasswordCheckWeak() : void
getPasswordDigits()
public
getPasswordDigits() : void
getPasswordLength()
public
getPasswordLength() : void
getPasswordLowercase()
public
getPasswordLowercase() : void
getPasswordPunctuation()
public
getPasswordPunctuation() : void
getPasswordUniqueCount()
public
getPasswordUniqueCount() : void
getPasswordUppercase()
public
getPasswordUppercase() : void
getSessionIpMask()
public
getSessionIpMask() : void
getSessionTimeout()
public
getSessionTimeout() : void
getStoreIpMask()
public
getStoreIpMask() : void
getStoreTimeout()
public
getStoreTimeout() : void
getValues()
Retuns key => value pairs in old-fashioned style (compatibility).
public
getValues() : array<string|int, mixed>
Return values
array<string|int, mixed>isEmpty()
Returns true if the dictionary is empty.
public
isEmpty() : bool
Return values
booljsonSerialize()
JsonSerializable::jsonSerialize — Specify data which should be serialized to JSON
public
jsonSerialize() : array<string|int, mixed>
Attributes
- #[ReturnTypeWillChange]
Return values
array<string|int, mixed>next()
public
next() : Rule
Return values
RuleoffsetGet()
public
offsetGet(mixed $offset) : Rule
Parameters
- $offset : mixed
Return values
Rulerewind()
public
rewind() : Rule
Return values
Ruleset()
public
set(mixed $name[, mixed $value = null ]) : mixed
Parameters
- $name : mixed
- $value : mixed = null
setValues()
public
setValues(mixed $values) : mixed
Parameters
- $values : mixed
toArray()
Returns the values as an array.
public
toArray() : array<string|int, mixed>