|
| static | loadTemplate ($type, $file) |
| |
| static | setDefaults ($settings, $defaults) |
| |
| static | applyPatternChanges ($settings, $params, $defaults=[]) |
| |
| static | generateWrapper ($settings, $params=array()) |
| |
| static | generateCaption ($settings, $text, $params=array()) |
| |
| static | generateFieldError ( $settings, $errors=[], $params=array()) |
| |
| static | parseInput ($type, $pattern, Fields\BaseField $field, $params=array()) |
| |
| static | parseTextArea ($pattern, Fields\BaseField $field, $params=array()) |
| |
| static | parseSelect ($pattern, Fields\BaseField $field, $params=array()) |
| |
| static | parseRadio ($pattern, Fields\BaseField $field, $params=array()) |
| |
| static | getAttrs ($_attrs, $field, $params=[]) |
| |
| static | mergeAttributes ($patternAttrs, $paramAttrs=[]) |
| |
Vygenerovani formularoveho pole na zaklade templatu vzhledu
- Author
- Vitezslav Jahn jahn@.nosp@m.izon.nosp@m..cz
◆ applyPatternChanges()
| static applyPatternChanges |
( |
|
$settings, |
|
|
|
$params, |
|
|
|
$defaults = [] |
|
) |
| |
|
staticprotected |
Aplikuje defaultni hodnoty a zmeny predane pres parametr vykreslovaci fce oproti vzoru
- Parameters
-
| array | $settings | |
| array | $params | |
| array | $defaults | |
- Returns
- string
◆ clearString()
| static clearString |
( |
|
$string | ) |
|
|
static |
ocisti/nahradi string o skarede znaky
- Parameters
-
◆ generateCaption()
| static generateCaption |
( |
|
$settings, |
|
|
|
$text, |
|
|
|
$params = array() |
|
) |
| |
|
staticprotected |
- Parameters
-
| array | $settings | |
| string | $text | |
| array | $params | |
- Returns
- string
◆ generateFieldError()
| static generateFieldError |
( |
|
$settings, |
|
|
|
$errors = [], |
|
|
|
$params = array() |
|
) |
| |
|
staticprotected |
◆ generateWrapper()
| static generateWrapper |
( |
|
$settings, |
|
|
|
$params = array() |
|
) |
| |
|
staticprotected |
◆ getAttrs()
| static getAttrs |
( |
|
$_attrs, |
|
|
|
$field, |
|
|
|
$params = [] |
|
) |
| |
|
staticprotected |
- Parameters
-
| array | $attrs | atributy z definice formulare |
| Fields\BaseField | $field | |
| array | $params | parametry/atributy, ktere byly predany fci getField |
- Returns
- string
◆ getFiled()
| static getFiled |
( |
|
$templateFile, |
|
|
|
$type, |
|
|
Fields\BaseField |
$field, |
|
|
|
$params = array() |
|
) |
| |
|
static |
Vrati vygenerovany input s labelem podle definice a parametru
- Parameters
-
| \IZON\Forms\Fields\BaseField | $field | |
| string | $fieldType | typ formularoveho pole |
| array | $params | pole parametru |
- Returns
- string
◆ loadTemplate()
| static loadTemplate |
( |
|
$type, |
|
|
|
$file |
|
) |
| |
|
staticprotected |
◆ mergeAttributes()
| static mergeAttributes |
( |
|
$patternAttrs, |
|
|
|
$paramAttrs = [] |
|
) |
| |
|
staticprotected |
◆ parseInput()
| static parseInput |
( |
|
$type, |
|
|
|
$pattern, |
|
|
Fields\BaseField |
$field, |
|
|
|
$params = array() |
|
) |
| |
|
staticprotected |
- Parameters
-
| string | $type | [text|checkbox|number|password] |
| array | $pattern | |
| \IZON\Forms\Fields\BaseField | $field | |
| array | $params | |
- Returns
- string
◆ parseRadio()
- Parameters
-
| array | $pattern | |
| \IZON\Forms\Fields\BaseField | $field | |
| array | $params | |
- Returns
- string
◆ parseSelect()
- Parameters
-
| array | $pattern | |
| \IZON\Forms\Fields\BaseField | $field | |
| array | $params | |
- Returns
- string
◆ parseTextArea()
- Parameters
-
| array | $pattern | |
| \IZON\Forms\Fields\BaseField | $field | |
| array | $params | |
- Returns
- string
◆ renderField()
| static renderField |
( |
|
$fieldType, |
|
|
|
$type, |
|
|
|
$templateFile, |
|
|
|
$params |
|
) |
| |
|
static |
- Parameters
-
| type | $fieldType | |
| type | $type | |
| type | $templateFile | |
| type | $params | |
- Todo:
- Dosud nedoimplementovano - nepouzivat
◆ setDefaults()
| static setDefaults |
( |
|
$settings, |
|
|
|
$defaults |
|
) |
| |
|
staticprotected |
- Parameters
-
| array | $settings | |
| array | $defaults | |
- Returns
- array
◆ LABEL_TEXT_AFTER_FIELD
| const LABEL_TEXT_AFTER_FIELD = 'after' |
◆ LABEL_TEXT_BEFORE_FIELD
| const LABEL_TEXT_BEFORE_FIELD = 'before' |
◆ TYPE_BACKEND
| const TYPE_BACKEND = 'admin' |
◆ TYPE_FRONTEND
| const TYPE_FRONTEND = 'web' |
The documentation for this class was generated from the following file: