|
| | __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 () |
| | convertPropertyToView (int $viewMode) |
См. определение в файле 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 строка 121
◆ canRenderControl()
| canRenderControl |
( |
| $renderMode | ) |
|
- Аргументы
-
| int | $renderMode | Control render mode. |
- Возвращает
- bool
См. определение в файле fieldtype.php строка 360
◆ clearValue()
◆ convertPropertyToView()
| convertPropertyToView |
( |
int | $viewMode | ) |
|
◆ convertUfType()
| convertUfType |
( |
string | $type | ) |
|
|
static |
◆ convertValue()
| convertValue |
( |
| $value, |
|
|
| $toTypeClass ) |
- Аргументы
-
| mixed | $value | Field value. |
| string | $toTypeClass | Type class name. |
- Возвращает
- array|bool|float|int|string
См. определение в файле fieldtype.php строка 324
◆ externalizeValue()
| externalizeValue |
( |
| $context, |
|
|
| $value ) |
- Аргументы
-
| string | $context | Context identification (Document, Variable etc.) |
| mixed | $value | Field value. |
- Возвращает
- mixed
См. определение в файле fieldtype.php строка 463
◆ extractValue()
- Аргументы
-
| array | $field | Form field. |
| array | $request | Request data. |
| array | &$errors | Errors collection. |
- Возвращает
- array|null
См. определение в файле fieldtype.php строка 404
◆ formatValue()
| formatValue |
( |
| $value, |
|
|
| $format = 'printable' ) |
- Аргументы
-
| mixed | $value | Field value. |
| string | $format | Format name. |
- Возвращает
- mixed|null|string
См. определение в файле fieldtype.php строка 305
◆ getBaseType()
◆ getBaseTypesMap()
Get list of supported base types.
- Возвращает
- array
См. определение в файле fieldtype.php строка 481
◆ 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 строка 266
◆ getType()
◆ getTypeClass()
◆ getValue()
◆ internalizeValue()
| internalizeValue |
( |
| $context, |
|
|
| $value ) |
- Аргументы
-
| string | $context | Context identification (Document, Variable etc.) |
| mixed | $value | Field value. |
- Возвращает
- mixed
См. определение в файле fieldtype.php строка 444
◆ isBaseType()
| isBaseType |
( |
string | $type | ) |
|
|
static |
◆ isMultiple()
◆ isRequired()
◆ mergeValue()
| mergeValue |
( |
| $baseValue, |
|
|
| $appendValue ) |
- Аргументы
-
| array | $baseValue | Base value. |
| mixed | $appendValue | Value to append. |
- Возвращает
- mixed Merge result.
См. определение в файле fieldtype.php строка 343
◆ normalizeProperty()
| normalizeProperty |
( |
| $property | ) |
|
|
static |
Normalize property structure.
- Аргументы
-
| string | array | $property | Document property. |
- Возвращает
- array
См. определение в файле fieldtype.php строка 548
◆ normalizePropertyList()
| normalizePropertyList |
( |
array | $props | ) |
|
|
static |
◆ 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 строка 373
◆ renderControlOptions()
| renderControlOptions |
( |
| $callbackFunctionName, |
|
|
| $value ) |
- Аргументы
-
| string | $callbackFunctionName | Client callback function name. |
| mixed | $value | Field value. |
- Возвращает
- string
См. определение в файле fieldtype.php строка 392
◆ setDocumentId()
| setDocumentId |
( |
array | $documentId | ) |
|
- Аргументы
-
| array | $documentId | Document id. |
- Возвращает
- $this
См. определение в файле fieldtype.php строка 211
◆ setDocumentType()
| setDocumentType |
( |
array | $documentType | ) |
|
- Аргументы
-
| array | $documentType | Document type. |
- Возвращает
- $this
См. определение в файле fieldtype.php строка 193
◆ setMultiple()
◆ setOptions()
- Аргументы
-
| mixed | $options | Options data. |
- Возвращает
- $this
См. определение в файле fieldtype.php строка 255
◆ 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 строка 278
◆ setTypeClass()
| setTypeClass |
( |
| $typeClass | ) |
|
Set type class manager.
- Аргументы
-
| string | $typeClass | Type class name. |
- Возвращает
- $this
- Исключения
-
ArgumentException
См. определение в файле fieldtype.php строка 169
◆ setValue()
◆ $documentId
◆ $documentType
◆ $property
◆ $typeClass
◆ 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_JN_MOBILE
| const RENDER_MODE_JN_MOBILE = 16 |
Control render mode - Native mobile controls
См. определение в файле fieldtype.php строка 97
◆ 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
◆ VALUE_CONTEXT_DOCUMENT
| const VALUE_CONTEXT_DOCUMENT = 'Document' |
◆ VALUE_CONTEXT_JN_MOBILE
| const VALUE_CONTEXT_JN_MOBILE = 'jn_mobile' |
◆ VALUE_CONTEXT_REST
| const VALUE_CONTEXT_REST = 'rest' |
Объявления и описания членов класса находятся в файле: