Свойство | Тип | Описание | |
---|---|---|---|
$isCached | Is the form cached? |
Свойство | Тип | Описание | |
---|---|---|---|
$accessor | Property accessor | ||
$cache | * Cache system | ||
$constraints | Form constraints | ||
$content | HTML contents of the form | ||
$factory | Factory | ||
$originalParserData | Parser raw data | ||
$parserData | |||
$path | File path | ||
$position | Current position for iterator | ||
$variables | File variables |
Метод | Описание | |
---|---|---|
__construct ( $pathOrContent = '', $variables = null, $cache = false, $factory = null ) | ||
__get ( $name ) | Get a field's value | |
__set ( $var, $val ) | Set a field value | |
__toString ( ) | Convert to HTML | |
addConstraint ( $name, $closure = null ) | Add a constraint on a field | |
check ( ) | Error checking | |
getAttribute ( $name, $attribute ) | Get a field attribute | |
getContent ( ) | Get the form contents | |
getData ( $entity = [] ) | Gets the data using mapping | |
getFactory ( ) | ||
getField ( $name ) | Get a field | |
getFields ( ) | ||
getHtml ( ) | Convert to HTML | |
getJs ( ) | Get the JavaScript code to embed | |
getParserData ( ) | Gets the parser data | |
getPostIndicator ( ) | Get the CSRF manager | |
getToken ( ) | Gets the post indicator | |
getValue ( $name ) | Gets a field value | |
getValues ( ) | Get all the values | |
handle ( $callback = null, $errorsCallback = null ) | Check a form, helper function | |
hookNames ( Closure $hook ) | ||
posted ( $method = 'post' ) | Check if the form was posted | |
reset ( ) | Resets the form | |
setAttribute ( $name, $attribute, $value ) | Defines an attribute value | |
setData ( $entity ) | Define the values using mapping | |
setLanguage ( |
Sets the language | |
setOptionClass ( $select, $val, $class ) | Sets the class of an option field | |
setPlaceholder ( $name, $value ) | Defines a placeholder value | |
setValue ( $name, $value ) | Defines a field value | |
setValues ( $values, array $files = [] ) | Define the values | |
source ( $source, $data ) | Values sourcing |
Метод | Описание | |
---|---|---|
parse ( ) | Parses the form contents to build objects | |
pushLanguage ( ) | Push the language to all the fields |
public __construct ( $pathOrContent = '', $variables = null, $cache = false, $factory = null ) |
public addConstraint ( $name, $closure = null ) |
public handle ( $callback = null, $errorsCallback = null ) |
public setAttribute ( $name, $attribute, $value ) |
public setLanguage ( |
||
$language |
public setOptionClass ( $select, $val, $class ) |
public setPlaceholder ( $name, $value ) |