Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс RulesCollection
+ Граф наследования:RulesCollection:

Открытые члены

 __construct ()
 
 getValues ()
 
 compare (RulesCollection $policy)
 
 __call ($name, $arguments)
 
- Открытые члены унаследованные от Dictionary
 __construct (array $values=null)
 
 get ($name)
 
 set ($name, $value=null)
 
 setValues ($values)
 
 clear ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 count ()
 
 toArray ()
 
 isEmpty ()
 
 jsonSerialize ()
 

Открытые статические члены

static createByPreset ($preset=self::PRESET_DEFAULT)
 

Открытые атрибуты

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

Дополнительные унаследованные члены

- Защищенные данные унаследованные от Dictionary
 $values = []
 

Подробное описание

См. определение в файле rulescollection.php строка 42

Конструктор(ы)

◆ __construct()

__construct ( )

RulesCollection constructor.

См. определение в файле rulescollection.php строка 52

Методы

◆ __call()

__call ( $name,
$arguments )

It's magic...

Аргументы
string$name
array$arguments
Возвращает
mixed
Исключения
Main

SystemException

См. определение в файле rulescollection.php строка 179

◆ compare()

compare ( RulesCollection $policy)

Compares two collections.

Аргументы
RulesCollection$policy
Возвращает
bool True if supplied policy is stronger than the current one.

См. определение в файле rulescollection.php строка 159

◆ createByPreset()

static createByPreset ( $preset = self::PRESET_DEFAULT)
static

Creates the collection of rules by a known preset.

Аргументы
int$preset
Возвращает
static

См. определение в файле rulescollection.php строка 84

◆ getValues()

getValues ( )

Retuns key => value pairs in old-fashioned style (compatibility).

Возвращает
array

Переопределяет метод предка Dictionary.

См. определение в файле rulescollection.php строка 134

Данные класса

◆ PRESET_DEFAULT

const PRESET_DEFAULT = 0

См. определение в файле rulescollection.php строка 44

◆ PRESET_HIGH

const PRESET_HIGH = 3

См. определение в файле rulescollection.php строка 47

◆ PRESET_LOW

const PRESET_LOW = 1

См. определение в файле rulescollection.php строка 45

◆ PRESET_MIDDLE

const PRESET_MIDDLE = 2

См. определение в файле rulescollection.php строка 46