-
Notifications
You must be signed in to change notification settings - Fork 34
classes_lib_controls_form_form.class
Wraps an HTML <form> element.
Extends: Control » Renderable
SHORTCUT Form::AddInput('checkbox',$name,$value)
SHORTCUT Form::AddInput('file',$name,$value)
SHORTCUT Form::AddInput('hidden',$name,$value)
Creates a set of hidden inputs from data.
Definition: public function addHiddenData($data)
Returns: static
Parameters:
-
array $data
name-value pairs of data
Creates and adds an input control $type may be one of: 'text' 'password' 'hidden' 'file' 'checkbox' returns objects of type TextInput PasswordInput HiddenInput FileInput CheckBox
Definition: public function AddInput($type, $name, $value)
Returns: Input|Control
The created control
Parameters:
-
string $type
See above for valid values -
string $name
name for the element created -
string $value
Value to be assigned (may be any valuetype)
SHORTCUT Form::AddInput('password',$name,$value)
SHORTCUT Form::AddInput('file',$name,$value)
Creates and adds a SubmitButton.
Definition: public function AddSubmit($label)
Returns: SubmitButton The created button
Parameters:
-
string $label
Label of the button
SHORTCUT Form::AddInput('text',$name,$value)
SHORTCUT Form::AddInput('textarea',$name,$value)
Creates a standard AJAX submit action Will create everything needed to post this form via AJAX to a PHP-side handler.
Definition: public function AjaxSubmitTo($controller, $event)
Returns: static
Parameters:
-
mixed $controller
Handler object -
string $event
Handler method name
SHORTCUT Control::attr