Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Field

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

static string ($name, $defaultValue="", $label="", $placeholder="")
 
static textarea ($name, $defaultValue="", $label="", $placeholder="")
 
static custom ($name, $value, $label="", $placeholder="", $style=false)
 
static customEntity ($name, $label="", $placeholder="", $multiple=false)
 
static date ( $name, $type=DateType::NONE, $values=[], $label="", $placeholder="", $enableTime=false, $exclude=[], $include=[], $allowYearsSwithcer=false, $messages=[])
 
static number ( $name, $type=NumberType::SINGLE, $values=[], $label="", $placeholder="", $exclude=[], $include=[], $messages=[])
 
static select ($name, $items, Array $defaultValue=array(), $label="", $placeholder="")
 
static multiSelect ($name, $items, $defaultValues=array(), $label="", $placeholder="")
 
static customDate ($options=array())
 
static destSelector ($name, $label="", $placeholder="", $multiple=false, $params=array(), $lightweight=false, $filterName='')
 
static entitySelector (string $name, string $label='', string $placeholder='', array $params=[], string $filterName='')
 

Защищенные статические члены

static getMonthsList ()
 
static getYearsList ()
 
static getDaysList ()
 
static getMessage ($messages, $messageId)
 

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

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

Методы

◆ custom()

static custom ( $name,
$value,
$label = "",
$placeholder = "",
$style = false )
static

Prepares data of custom field

Аргументы
string$name
string$value
string$label
string$placeholder
bool$style
Возвращает
array

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

◆ customDate()

static customDate ( $options = array())
static

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

◆ customEntity()

static customEntity ( $name,
$label = "",
$placeholder = "",
$multiple = false )
static

Prepares data of custom_entity field

Аргументы
string$name
string$label
string$placeholder
bool$multiple
Возвращает
array

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

◆ date()

static date ( $name,
$type = DateType::NONE,
$values = [],
$label = "",
$placeholder = "",
$enableTime = false,
$exclude = [],
$include = [],
$allowYearsSwithcer = false,
$messages = [] )
static

Prepares data of date field

Аргументы
string$name
string$type
array$values
string$label
string$placeholder
bool$enableTime
array$exclude
array$include
boolean$allowYearsSwithcer
array$messages
Возвращает
array

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

◆ destSelector()

static destSelector ( $name,
$label = "",
$placeholder = "",
$multiple = false,
$params = array(),
$lightweight = false,
$filterName = '' )
static

Prepares data of user field

Аргументы
string$name
string$label
string$placeholder
bool$multiple
array$params
bool$lightweight
Возвращает
array

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

◆ entitySelector()

static entitySelector ( string $name,
string $label = '',
string $placeholder = '',
array $params = [],
string $filterName = '' )
static

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

◆ getDaysList()

static getDaysList ( )
staticprotected

Gets days list

Возвращает
array

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

◆ getMessage()

static getMessage ( $messages,
$messageId )
staticprotected

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

◆ getMonthsList()

static getMonthsList ( )
staticprotected

Gets months list

Возвращает
array

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

◆ getYearsList()

static getYearsList ( )
staticprotected

Gets years list

Возвращает
array
Исключения

Bitrix\Main\ObjectException

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

◆ multiSelect()

static multiSelect ( $name,
$items,
$defaultValues = array(),
$label = "",
$placeholder = "" )
static

Prepares data of multiselect field

Аргументы
string$name
array$items
array$defaultValues
string$label
string$placeholder
Возвращает
array

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

◆ number()

static number ( $name,
$type = NumberType::SINGLE,
$values = [],
$label = "",
$placeholder = "",
$exclude = [],
$include = [],
$messages = [] )
static

Prepares data of number field

Аргументы
string$name
string$type
array$values
string$label
string$placeholder
Возвращает
array

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

◆ select()

static select ( $name,
$items,
Array $defaultValue = array(),
$label = "",
$placeholder = "" )
static

Prepares data of select field

Аргументы
string$name
array$items
array$defaultValue
string$label
string$placeholder
Возвращает
array

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

◆ string()

string ( $name,
$defaultValue = "",
$label = "",
$placeholder = "" )
static

Prepares data of string field

Аргументы
string$name
string$defaultValue
string$label
string$placeholder
Возвращает
array

Field id.

Field code.

Field value.

Field title.

Default value.

Field help.

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

◆ textarea()

static textarea ( $name,
$defaultValue = "",
$label = "",
$placeholder = "" )
static
Аргументы
string$name
string$defaultValue
string$label
string$placeholder
Возвращает
array

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