1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Base
Граф наследования:Base:
BoolType Date Double File Select StringType Time User Activity Analytics Debugger FieldType File GlobalField Script Task Workflow Comment Faces Starter UserFieldBase

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

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()

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

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

◆ addErrors()

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

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

◆ addFormat()

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

ArgumentException

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

◆ canRenderControl()

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

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

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

◆ cleanErrors()

cleanErrors ( )
staticprotected

Clean errors

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

◆ clearValueMultiple()

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

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

◆ clearValueSingle()

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

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

◆ compareValues()

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

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

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

◆ convertFrom()

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

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

◆ convertPropertyToView()

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

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

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

◆ convertTo()

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

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

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

◆ convertValueMultiple()

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

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

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

◆ externalizeValue()

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

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

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

◆ externalizeValueMultiple()

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()

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

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

◆ extractValue()

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

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

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

◆ extractValueMultiple()

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

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

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

◆ extractValueSingle()

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()

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

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

◆ formatValuePrintable()

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

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

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

◆ formatValueSingle()

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

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

◆ generateControlClassName()

generateControlClassName ( FieldType $fieldType,
array $field )
staticprotected

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

◆ generateControlId()

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

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

◆ generateControlName()

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

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

◆ getConversionMap()

getConversionMap ( )
static

Return conversion map for current type.

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

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

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

◆ getErrors()

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

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

◆ getFormatCallable()

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

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

◆ getFormats()

getFormats ( )
static

Get formats list.

Возвращает
array

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

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

◆ getFormatSeparator()

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

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

◆ getName()

getName ( )
static

Gets the name of the field type.

Возвращает
string

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

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

◆ getType()

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

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

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

◆ internalizeValue()

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()

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

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

◆ internalizeValueSingle()

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

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

◆ mergeValue()

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

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

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

◆ renderControl()

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()

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, StringType, User и UserFieldBase.

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

◆ renderControlOptions()

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

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

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

◆ renderControlSelector()

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()

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

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

◆ renderControlSingle()

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, StringType, User и UserFieldBase.

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

◆ renderPublicMultipleWrapper()

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

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

◆ toSingleValue()

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()

validateValueMultiple ( $value,
FieldType $fieldType )
static

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

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

◆ validateValueSingle()

validateValueSingle ( $value,
FieldType $fieldType )
static

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

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

◆ wrapCloneableControls()

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

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

Поля

◆ $errors

$errors = []
staticprotected

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

◆ $formats

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

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/bizproc/lib/basetype/base.php