|
| __construct (array $property, array $documentType, $typeClass, array $documentId=null) |
|
| getProperty () |
|
| getType () |
|
| getBaseType () |
|
| getTypeClass () |
|
| setTypeClass ($typeClass) |
|
| getDocumentType () |
|
| setDocumentType (array $documentType) |
|
| getDocumentId () |
|
| setDocumentId (array $documentId) |
|
| isMultiple () |
|
| setMultiple ($value) |
|
| isRequired () |
|
| getOptions () |
|
| setOptions ($options) |
|
| getSettings () |
|
| setSettings (array $settings) |
|
| getName () |
|
| getDescription () |
|
| formatValue ($value, $format='printable') |
|
| convertValue ($value, $toTypeClass) |
|
| mergeValue ($baseValue, $appendValue) |
|
| canRenderControl ($renderMode) |
|
| renderControl (array $field, $value, $allowSelection, $renderMode) |
|
| renderControlOptions ($callbackFunctionName, $value) |
|
| extractValue (array $field, array $request, array &$errors=null) |
|
| clearValue ($value) |
|
| internalizeValue ($context, $value) |
|
| externalizeValue ($context, $value) |
|
| setValue ($value) |
|
| getValue () |
|
См. определение в файле fieldtype.php строка 11
◆ __construct()
__construct |
( |
array |
$property, |
|
|
array |
$documentType, |
|
|
|
$typeClass, |
|
|
array |
$documentId = null |
|
) |
| |
- Аргументы
-
array | $property | Document property. |
array | $documentType | Document type. |
string | $typeClass | Type class manager. |
null | array | $documentId | |
См. определение в файле fieldtype.php строка 112
◆ canRenderControl()
canRenderControl |
( |
|
$renderMode | ) |
|
- Аргументы
-
int | $renderMode | Control render mode. |
- Возвращает
- bool
См. определение в файле fieldtype.php строка 351
◆ clearValue()
◆ convertUfType()
static convertUfType |
( |
string |
$type | ) |
|
|
static |
◆ convertValue()
convertValue |
( |
|
$value, |
|
|
|
$toTypeClass |
|
) |
| |
- Аргументы
-
mixed | $value | Field value. |
string | $toTypeClass | Type class name. |
- Возвращает
- array|bool|float|int|string
См. определение в файле fieldtype.php строка 315
◆ externalizeValue()
externalizeValue |
( |
|
$context, |
|
|
|
$value |
|
) |
| |
- Аргументы
-
string | $context | Context identification (Document, Variable etc.) |
mixed | $value | Field value. |
- Возвращает
- mixed
См. определение в файле fieldtype.php строка 454
◆ extractValue()
extractValue |
( |
array |
$field, |
|
|
array |
$request, |
|
|
array & |
$errors = null |
|
) |
| |
- Аргументы
-
array | $field | Form field. |
array | $request | Request data. |
array | &$errors | Errors collection. |
- Возвращает
- array|null
См. определение в файле fieldtype.php строка 395
◆ formatValue()
formatValue |
( |
|
$value, |
|
|
|
$format = 'printable' |
|
) |
| |
- Аргументы
-
mixed | $value | Field value. |
string | $format | Format name. |
- Возвращает
- mixed|null|string
См. определение в файле fieldtype.php строка 296
◆ getBaseType()
◆ getBaseTypesMap()
static getBaseTypesMap |
( |
| ) |
|
|
static |
Get list of supported base types.
- Возвращает
- array
См. определение в файле fieldtype.php строка 472
◆ getDescription()
◆ getDocumentId()
◆ getDocumentType()
◆ getName()
◆ getOptions()
◆ getProperty()
◆ getSettings()
Get field settings. Settings contain additional information that may be required for rendering of field.
- Возвращает
- array
См. определение в файле fieldtype.php строка 257
◆ getType()
◆ getTypeClass()
◆ getValue()
◆ internalizeValue()
internalizeValue |
( |
|
$context, |
|
|
|
$value |
|
) |
| |
- Аргументы
-
string | $context | Context identification (Document, Variable etc.) |
mixed | $value | Field value. |
- Возвращает
- mixed
См. определение в файле fieldtype.php строка 435
◆ isBaseType()
static isBaseType |
( |
string |
$type | ) |
|
|
static |
◆ isMultiple()
◆ isRequired()
◆ mergeValue()
mergeValue |
( |
|
$baseValue, |
|
|
|
$appendValue |
|
) |
| |
- Аргументы
-
array | $baseValue | Base value. |
mixed | $appendValue | Value to append. |
- Возвращает
- mixed Merge result.
См. определение в файле fieldtype.php строка 334
◆ normalizeProperty()
static normalizeProperty |
( |
|
$property | ) |
|
|
static |
Normalize property structure.
- Аргументы
-
string | array | $property | Document property. |
- Возвращает
- array
См. определение в файле fieldtype.php строка 539
◆ renderControl()
renderControl |
( |
array |
$field, |
|
|
|
$value, |
|
|
|
$allowSelection, |
|
|
|
$renderMode |
|
) |
| |
- Аргументы
-
array | $field | Form field. |
mixed | $value | Field value. |
bool | $allowSelection | Allow selection flag. |
int | $renderMode | Control render mode. |
- Возвращает
- string
См. определение в файле fieldtype.php строка 364
◆ renderControlOptions()
renderControlOptions |
( |
|
$callbackFunctionName, |
|
|
|
$value |
|
) |
| |
- Аргументы
-
string | $callbackFunctionName | Client callback function name. |
mixed | $value | Field value. |
- Возвращает
- string
См. определение в файле fieldtype.php строка 383
◆ setDocumentId()
setDocumentId |
( |
array |
$documentId | ) |
|
- Аргументы
-
array | $documentId | Document id. |
- Возвращает
- $this
См. определение в файле fieldtype.php строка 202
◆ setDocumentType()
setDocumentType |
( |
array |
$documentType | ) |
|
- Аргументы
-
array | $documentType | Document type. |
- Возвращает
- $this
См. определение в файле fieldtype.php строка 184
◆ setMultiple()
◆ setOptions()
- Аргументы
-
mixed | $options | Options data. |
- Возвращает
- $this
См. определение в файле fieldtype.php строка 246
◆ setSettings()
setSettings |
( |
array |
$settings | ) |
|
set field settings. Settings contain additional information that may be required for rendering of field.
- Аргументы
-
array | $settings | Settings array. |
- Возвращает
- $this
См. определение в файле fieldtype.php строка 269
◆ setTypeClass()
setTypeClass |
( |
|
$typeClass | ) |
|
Set type class manager.
- Аргументы
-
string | $typeClass | Type class name. |
- Возвращает
- $this
- Исключения
-
ArgumentException
См. определение в файле fieldtype.php строка 160
◆ setValue()
◆ $documentId
◆ $documentType
◆ $property
◆ $typeClass
Bitrix Bizproc BaseType Base $typeClass |
|
protected |
◆ BOOL
◆ DATE
◆ DATETIME
const DATETIME = 'datetime' |
◆ DOUBLE
◆ FILE
◆ INT
◆ INTERNALSELECT
const INTERNALSELECT = 'internalselect' |
◆ RENDER_MODE_ADMIN
const RENDER_MODE_ADMIN = 2 |
Control render mode - Admin panel
См. определение в файле fieldtype.php строка 82
◆ RENDER_MODE_DESIGNER
const RENDER_MODE_DESIGNER = 1 |
Control render mode - Bizproc Designer
См. определение в файле fieldtype.php строка 77
◆ RENDER_MODE_MOBILE
const RENDER_MODE_MOBILE = 4 |
Control render mode - Mobile application
См. определение в файле fieldtype.php строка 87
◆ RENDER_MODE_PUBLIC
const RENDER_MODE_PUBLIC = 8 |
Control render mode - Automation designer
См. определение в файле fieldtype.php строка 92
◆ SELECT
◆ STRING
◆ TEXT
◆ TIME
◆ USER