Method |
Description |
|
_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 |
|