Bitrix API

RulesCollection extends Dictionary

Table of Contents

Constants

PRESET_DEFAULT  = 0
PRESET_HIGH  = 3
PRESET_LOW  = 1
PRESET_MIDDLE  = 2

Properties

$values  : array<string|int, Rule>

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

Properties

Methods

__call()

It's magic.

public __call(string $name, array<string|int, mixed> $arguments) : mixed

..

Parameters
$name : string
$arguments : array<string|int, mixed>
Tags
throws
SystemException

__construct()

RulesCollection constructor.

public __construct() : mixed

__unserialize()

public __unserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

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
static

get()

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>|null

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
bool

jsonSerialize()

JsonSerializable::jsonSerialize — Specify data which should be serialized to JSON

public jsonSerialize() : array<string|int, mixed>
Attributes
#[ReturnTypeWillChange]
Return values
array<string|int, mixed>

set()

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>
Return values
array<string|int, mixed>

        
On this page

Search results