Bitrix API

BooleanRule extends Rule

Table of Contents

Methods

__construct()  : mixed
Rule constructor.
assignValue()  : bool
Assigns the value if it follows the rule.
compare()  : bool
Checks if the value follows the rule.
getGroupId()  : int
getOptions()  : array<string|int, mixed>
getTitle()  : string
getValue()  : mixed
jsonSerialize()  : array<string|int, mixed>
JsonSerializable::jsonSerialize — Specify data which should be serialized to JSON
setGroupId()  : Rule

Methods

__construct()

Rule constructor.

public __construct(string $title[, bool $value = false ][, array<string|int, mixed>|null $options = null ]) : mixed
Parameters
$title : string
$value : bool = false
$options : array<string|int, mixed>|null = null

assignValue()

Assigns the value if it follows the rule.

public assignValue(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

compare()

Checks if the value follows the rule.

public compare(mixed $value) : bool
Parameters
$value : mixed
Tags
inheritdoc
Return values
bool

getGroupId()

public getGroupId() : int
Return values
int

getOptions()

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTitle()

public getTitle() : string
Return values
string

getValue()

public getValue() : mixed

jsonSerialize()

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

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

setGroupId()

public setGroupId(int $groupId) : Rule
Parameters
$groupId : int
Return values
Rule

        
On this page

Search results