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

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

static getName ()
 
static getType ()
 
static addFormat ($name, array $options)
 
static getFormats ()
 
static toSingleValue (FieldType $fieldType, $value)
 
static formatValueMultiple (FieldType $fieldType, $value, $format='printable')
 
static formatValueSingle (FieldType $fieldType, $value, $format='printable')
 
static convertValueMultiple (FieldType $fieldType, $value, $toTypeClass)
 
static convertTo (FieldType $fieldType, $value, $toTypeClass)
 
static convertFrom (FieldType $fieldType, $value, $fromTypeClass)
 
static getConversionMap ()
 
static mergeValue (FieldType $fieldType, array $baseValue, $appendValue)
 
static addError ($error)
 
static addErrors (array $errors)
 
static getErrors ()
 
static canRenderControl ($renderMode)
 
static renderControlSingle (FieldType $fieldType, array $field, $value, $allowSelection, $renderMode)
 
static renderControlMultiple (FieldType $fieldType, array $field, $value, $allowSelection, $renderMode)
 
static renderControlOptions (FieldType $fieldType, $callbackFunctionName, $value)
 
static extractValueSingle (FieldType $fieldType, array $field, array $request)
 
static extractValueMultiple (FieldType $fieldType, array $field, array $request)
 
static clearValueSingle (FieldType $fieldType, $value)
 
static clearValueMultiple (FieldType $fieldType, $value)
 
static internalizeValue (FieldType $fieldType, $context, $value)
 
static internalizeValueSingle (FieldType $fieldType, $context, $value)
 
static internalizeValueMultiple (FieldType $fieldType, $context, $value)
 
static externalizeValue (FieldType $fieldType, $context, $value)
 
static externalizeValueSingle (FieldType $fieldType, $context, $value)
 
static externalizeValueMultiple (FieldType $fieldType, $context, $value)
 
static compareValues ($valueA, $valueB)
 
static validateValueSingle ($value, FieldType $fieldType)
 
static validateValueMultiple ($value, FieldType $fieldType)
 
static convertPropertyToView (FieldType $fieldType, int $viewMode, array $property)
 

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

static getFormatCallable ($format)
 
static getFormatSeparator ($format)
 
static formatValuePrintable (FieldType $fieldType, $value)
 
static cleanErrors ()
 
static generateControlId (array $field)
 
static generateControlName (array $field)
 
static generateControlClassName (FieldType $fieldType, array $field)
 
static wrapCloneableControls (array $controls, $wrapperId)
 
static renderPublicMultipleWrapper (FieldType $fieldType, array $field, array $controls)
 
static renderControl (FieldType $fieldType, array $field, $value, $allowSelection, $renderMode)
 
static renderControlSelector (array $field, $value=null, $showInput=false, $selectorMode='', FieldType $fieldType=null)
 
static renderControlSelectorButton ($controlId, FieldType $fieldType, $selectorMode='')
 
static extractValue (FieldType $fieldType, array $field, array $request)
 

Статические защищенные данные

static $formats
 
static $errors = []
 

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

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

Методы

◆ addError()

static addError ( $error)
static
Аргументы
mixed$errorError description.

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

◆ addErrors()

static addErrors ( array $errors)
static
Аргументы
array$errorsErrors description.
Возвращает
void

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

◆ addFormat()

static addFormat ( $name,
array $options )
static
Аргументы
string$nameFormat name.
array$optionsFormat options.
Возвращает
void
Исключения
Main

ArgumentException

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

◆ canRenderControl()

static canRenderControl ( $renderMode)
static
Аргументы
int$renderModeControl render mode.
Возвращает
bool

Переопределяется в BoolType, Date, Double, File, Select и StringType.

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

◆ cleanErrors()

static cleanErrors ( )
staticprotected

Clean errors

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

◆ clearValueMultiple()

static clearValueMultiple ( FieldType $fieldType,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
mixed$valueField value.
Возвращает
void

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

◆ clearValueSingle()

static clearValueSingle ( FieldType $fieldType,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
mixed$valueField value.
Возвращает
void

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

◆ compareValues()

static compareValues ( $valueA,
$valueB )
static
Аргументы
mixed$valueAFirst value.
mixed$valueBSecond value.
Возвращает
int Returns 1, -1 or 0

Переопределяется в BoolType, Date, Time и Money.

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

◆ convertFrom()

static convertFrom ( FieldType $fieldType,
$value,
$fromTypeClass )
static
Аргументы
FieldType$fieldTypeDocument field type.
mixed$valueField value.
string$fromTypeClassType class name.
Возвращает
null

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

◆ convertPropertyToView()

static convertPropertyToView ( FieldType $fieldType,
int $viewMode,
array $property )
static

Переопределяется в InternalSelect, Select и User.

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

◆ convertTo()

static convertTo ( FieldType $fieldType,
$value,
$toTypeClass )
static
Аргументы
FieldType$fieldTypeDocument field type.
mixed$valueField value.
string$toTypeClassType class name.
Возвращает
null

Переопределяется в UserFieldBase.

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

◆ convertValueMultiple()

static convertValueMultiple ( FieldType $fieldType,
$value,
$toTypeClass )
static
Аргументы
FieldType$fieldTypeDocument field type.
mixed$valueField value.
string$toTypeClassType class name.
Возвращает
array

Переопределяется в File и Select.

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

◆ externalizeValue()

static externalizeValue ( FieldType $fieldType,
$context,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
string$contextContext identification (Document, Variable etc.)
mixed$valueField value.
Возвращает
mixed

Переопределяется в BoolType, Date, File, Select, StringType и User.

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

◆ externalizeValueMultiple()

static externalizeValueMultiple ( FieldType $fieldType,
$context,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
string$contextContext identification (Document, Variable etc.)
mixed$valueField value.
Возвращает
mixed

Переопределяется в User.

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

◆ externalizeValueSingle()

static externalizeValueSingle ( FieldType $fieldType,
$context,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
string$contextContext identification (Document, Variable etc.)
mixed$valueField value.
Возвращает
mixed

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

◆ extractValue()

static extractValue ( FieldType $fieldType,
array $field,
array $request )
staticprotected
Аргументы
FieldType$fieldType
array$field
array$request
Возвращает
null|mixed

Переопределяется в BoolType, Date, Double, File, IntType, Select, Time, User и Money.

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

◆ extractValueMultiple()

static extractValueMultiple ( FieldType $fieldType,
array $field,
array $request )
static
Аргументы
FieldType$fieldTypeDocument field type.
array$fieldForm field.
array$requestRequest data.
Возвращает
array

Переопределяется в Select и User.

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

◆ extractValueSingle()

static extractValueSingle ( FieldType $fieldType,
array $field,
array $request )
static
Аргументы
FieldType$fieldTypeDocument field type.
array$fieldForm field.
array$requestRequest data.
Возвращает
mixed|null

Переопределяется в User и UserFieldBase.

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

◆ formatValueMultiple()

static formatValueMultiple ( FieldType $fieldType,
$value,
$format = 'printable' )
static
Аргументы
FieldType$fieldTypeDocument field type.
mixed$valueField value.
string$formatFormat name.
Возвращает
string

Переопределяется в Select.

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

◆ formatValuePrintable()

static formatValuePrintable ( FieldType $fieldType,
$value )
staticprotected
Аргументы
FieldType$fieldType
$value
Возвращает
string

Переопределяется в BoolType, File, Select, User, Money и UserFieldBase.

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

◆ formatValueSingle()

static formatValueSingle ( FieldType $fieldType,
$value,
$format = 'printable' )
static
Аргументы
FieldType$fieldTypeDocument field type.
mixed$valueField value.
string$formatFormat name.
Возвращает
mixed|null

Переопределяется в Select.

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

◆ generateControlClassName()

static generateControlClassName ( FieldType $fieldType,
array $field )
staticprotected

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

◆ generateControlId()

static generateControlId ( array $field)
staticprotected
Аргументы
array$field
Возвращает
string

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

◆ generateControlName()

static generateControlName ( array $field)
staticprotected
Аргументы
array$field
Возвращает
string

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

◆ getConversionMap()

static getConversionMap ( )
static

Return conversion map for current type.

Возвращает
array Map.

Переопределяется в BoolType, Date, Double, File, Select, StringType, User и UserFieldBase.

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

◆ getErrors()

static getErrors ( )
static
Возвращает
array

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

◆ getFormatCallable()

static getFormatCallable ( $format)
staticprotected
Аргументы
string$format
Возвращает
callable|null

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

◆ getFormats()

static getFormats ( )
static

Get formats list.

Возвращает
array

Переопределяется в Date, File, Time и User.

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

◆ getFormatSeparator()

static getFormatSeparator ( $format)
staticprotected
Аргументы
string$format
Возвращает
string

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

◆ getName()

static getName ( )
static

Gets the name of the field type.

Возвращает
string

Переопределяется в MailSender.

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

◆ getType()

static getType ( )
static
Возвращает
string

Переопределяется в BoolType, Date, Datetime, Double, File, InternalSelect, IntType, Select, StringType, Text, Time, User и UserFieldBase.

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

◆ internalizeValue()

static internalizeValue ( FieldType $fieldType,
$context,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
string$contextContext identification (Document, Variable etc.)
mixed$valueField value.
Возвращает
mixed

Переопределяется в Date, File, Time и User.

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

◆ internalizeValueMultiple()

static internalizeValueMultiple ( FieldType $fieldType,
$context,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
string$contextContext identification (Document, Variable etc.)
mixed$valueField value.
Возвращает
mixed

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

◆ internalizeValueSingle()

static internalizeValueSingle ( FieldType $fieldType,
$context,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
string$contextContext identification (Document, Variable etc.)
mixed$valueField value.
Возвращает
mixed

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

◆ mergeValue()

static mergeValue ( FieldType $fieldType,
array $baseValue,
$appendValue )
static
Аргументы
FieldType$fieldTypeDocument field type.
array$baseValueBase value.
mixed$appendValueValue to append.
Возвращает
mixed Merge result.

Переопределяется в Select и StringType.

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

◆ renderControl()

static renderControl ( FieldType $fieldType,
array $field,
$value,
$allowSelection,
$renderMode )
staticprotected

Low-level control rendering method

Аргументы
FieldType$fieldType
array$field
mixed$value
bool$allowSelection
int$renderMode
Возвращает
string - HTML rendering

Переопределяется в BoolType, Date, Double, File, Select, StringType, Text, Time, User и MailSender.

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

◆ renderControlMultiple()

static renderControlMultiple ( FieldType $fieldType,
array $field,
$value,
$allowSelection,
$renderMode )
static
Аргументы
FieldType$fieldTypeDocument field type.
array$fieldForm field.
mixed$valueField value.
bool$allowSelectionAllow selection flag.
int$renderModeControl render mode.
Возвращает
string

Переопределяется в BoolType, Date, Double, File, Select, StringType, User и UserFieldBase.

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

◆ renderControlOptions()

static renderControlOptions ( FieldType $fieldType,
$callbackFunctionName,
$value )
static
Аргументы
FieldType$fieldTypeDocument field type.
string$callbackFunctionNameClient callback function name.
mixed$valueField value.
Возвращает
string

Переопределяется в InternalSelect, Select и IblockElement.

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

◆ renderControlSelector()

static renderControlSelector ( array $field,
$value = null,
$showInput = false,
$selectorMode = '',
FieldType $fieldType = null )
staticprotected
Аргументы
array$field
null | string$value
bool$showInput
string$selectorMode
FieldType$fieldType
Возвращает
string

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

◆ renderControlSelectorButton()

static renderControlSelectorButton ( $controlId,
FieldType $fieldType,
$selectorMode = '' )
staticprotected

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

◆ renderControlSingle()

static renderControlSingle ( FieldType $fieldType,
array $field,
$value,
$allowSelection,
$renderMode )
static
Аргументы
FieldType$fieldTypeDocument field type.
array$fieldForm field.
mixed$valueField value.
bool$allowSelectionAllow selection flag.
int$renderModeControl render mode.
Возвращает
string

Переопределяется в BoolType, Date, Double, File, Select, StringType, User и UserFieldBase.

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

◆ renderPublicMultipleWrapper()

static renderPublicMultipleWrapper ( FieldType $fieldType,
array $field,
array $controls )
staticprotected
Аргументы
FieldType$fieldType
array$field
array$controls
Возвращает
string

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

◆ toSingleValue()

static toSingleValue ( FieldType $fieldType,
$value )
static

Normalize single value.

Аргументы
FieldType$fieldTypeDocument field type.
mixed$valueField value.
Возвращает
mixed Normalized value

Переопределяется в BoolType, Date, Double, File, IntType, StringType и User.

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

◆ validateValueMultiple()

static validateValueMultiple ( $value,
FieldType $fieldType )
static

Переопределяется в Select и User.

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

◆ validateValueSingle()

static validateValueSingle ( $value,
FieldType $fieldType )
static

Переопределяется в Select и User.

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

◆ wrapCloneableControls()

static wrapCloneableControls ( array $controls,
$wrapperId )
staticprotected
Аргументы
array$controls
string$wrapperId
Возвращает
string

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

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

◆ $errors

$errors = []
staticprotected

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

◆ $formats

array $formats
staticprotected
Инициализатор
= [
'printable' => [
'callable' => 'formatValuePrintable',
'separator' => ', ',
],
]

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