Свойство | Тип | Описание | |
---|---|---|---|
$_icon | Layout changes in response to adding more elements before / after | ||
$_use_cells | Will enable field wrappin inside a atk-cells/atk-cell block | ||
$app | App_Web | ||
$attr | |||
$button_append | |||
$button_prepend | |||
$caption | template used to mark mandatory fields | ||
$comment | |||
$default_value | |||
$error_template | Description of the field shown next to it on the form. | ||
$form | |||
$mandatory_template | template used to put errors on the field line | ||
$no_save | |||
$readonly | |||
$short_name | use $this->get(), ->set(). | ||
$show_input_only |
Свойство | Тип | Описание | |
---|---|---|---|
$disabled | |||
$mandatory | |||
$value |
Метод | Описание | |
---|---|---|
_cutField ( ) | ||
_validateField ( $caller, $condition, $msg ) | ||
_validateNotNull ( $field ) | ||
aboveField ( ) : View | ||
addButton ( $label, $options = [] ) | Position can be either 'before' or 'after' | |
addClass ( $class ) | ||
addComment ( $text = '' ) | ||
addIcon ( $icon, $link = null ) | Wraps input field into a to align icon correctly | |
afterField ( ) : View | ||
beforeField ( ) : View | ||
belowField ( ) : View | ||
defaultTemplate ( ) | ||
destroy ( ) | ||
disable ( ) | ||
displayFieldError ( $msg = null ) | ||
get ( ) | ||
getInput ( $attr = [] ) | ||
getTag ( $tag, $attr = null, $value = null ) | ||
init ( ) | }}} | |
isDisabled ( ) | ||
isMandatory ( ) | ||
loadPOST ( ) | ||
normalize ( ) | ||
performValidation ( ) | Used to be called validate(), this method is called when field should do some of it's basic validation done. | |
render ( ) | ||
set ( $value ) | ||
setAttr ( $attr, $value = UNDEFINED ) | ||
setCaption ( $_caption ) | ||
setClass ( $class ) | ||
setComment ( $text = '' ) | ||
setFieldHint ( $var_args = null ) | ||
setForm ( $form ) | ||
setMandatory ( $mandatory = true ) | ||
setNoSave ( ) | ||
setProperty ( $property, $value ) | synonym, setAttr is preferred | |
setReadonly ( $readonly = true ) | ||
setSeparator ( $separator ) | ||
validate ( $rule = null ) | This method has been refactored to integrate with Controller_Validator. | |
validateField ( $condition, $msg = null ) | Executes a callback. If callback returns string, shows it as error message. | |
validateNotNULL ( $msg = null ) | Adds "X is a mandatory field" message |
public addButton ( $label, $options = [] ) |
public addIcon ( $icon, $link = null ) |
public performValidation ( ) |
public setProperty ( $property, $value ) |
public validate ( $rule = null ) |
public validateField ( $condition, $msg = null ) |
public validateNotNULL ( $msg = null ) |
public $_icon |
public $_use_cells |
public $error_template |
public $mandatory_template |