TModalForm
in package
implements
AdiantiFormInterface
Modal form constructor for Adianti Framework
Tags
Table of Contents
Interfaces
- AdiantiFormInterface
- Form Interface
Properties
- $actions : mixed
- $decorated : mixed
- $footer_actions : mixed
- $id : mixed
- $modal : mixed
- $modal_class : mixed
- $rows : mixed
- $title : mixed
Methods
- __call() : mixed
- Redirect calls to decorated object
- __construct() : mixed
- Constructor method
- __set() : mixed
- Redirect assigns to decorated object
- addAction() : mixed
- Add a form action
- addField() : mixed
- Add form field
- addFooterAction() : mixed
- Add a form action
- addFooterActionLink() : mixed
- Add a form action
- addRowContent() : mixed
- Add a row content
- addRowField() : mixed
- Add row
- clear() : mixed
- Clear form
- delField() : mixed
- Del form field
- getActions() : mixed
- Return form actions
- getData() : mixed
- Get form data
- getField() : mixed
- Return form field
- getFields() : mixed
- Return form fields
- getFormTitle() : mixed
- Return the form title
- getId() : mixed
- Returns form id
- getName() : mixed
- Get form name
- render() : mixed
- Render DOM
- setData() : mixed
- Set form data
- setFields() : mixed
- Set form fields
- setFormTitle() : mixed
- Add a form title
- setModalClass() : mixed
- Set modal class
- setName() : mixed
- Set form name
- show() : mixed
- Show form
- validate() : mixed
- Validate form data
Properties
$actions
private
mixed
$actions
$decorated
private
mixed
$decorated
$footer_actions
private
mixed
$footer_actions
$id
private
mixed
$id
$modal
private
mixed
$modal
$modal_class
private
mixed
$modal_class
$rows
private
mixed
$rows
$title
private
mixed
$title
Methods
__call()
Redirect calls to decorated object
public
__call(mixed $method, mixed $parameters) : mixed
Parameters
- $method : mixed
- $parameters : mixed
__construct()
Constructor method
public
__construct([mixed $name = 'my_form' ]) : mixed
Parameters
- $name : mixed = 'my_form'
-
form name
__set()
Redirect assigns to decorated object
public
__set(mixed $property, mixed $value) : mixed
Parameters
- $property : mixed
- $value : mixed
addAction()
Add a form action
public
addAction(mixed $label, mixed $action[, mixed $icon = 'fa:save' ][, mixed $name = null ]) : mixed
Parameters
- $label : mixed
-
Button label
- $action : mixed
-
Button action
- $icon : mixed = 'fa:save'
-
Button icon
- $name : mixed = null
addField()
Add form field
public
addField(mixed $field) : mixed
Parameters
- $field : mixed
-
Form field
addFooterAction()
Add a form action
public
addFooterAction(mixed $label, mixed $action[, mixed $icon = 'fa:save' ][, mixed $name = null ]) : mixed
Parameters
- $label : mixed
-
Button label
- $action : mixed
-
Button action
- $icon : mixed = 'fa:save'
-
Button icon
- $name : mixed = null
addFooterActionLink()
Add a form action
public
addFooterActionLink(mixed $label, mixed $action[, mixed $icon = 'fa:save' ]) : mixed
Parameters
- $label : mixed
-
Button label
- $action : mixed
-
Button action
- $icon : mixed = 'fa:save'
-
Button icon
addRowContent()
Add a row content
public
addRowContent(mixed $content) : mixed
Parameters
- $content : mixed
addRowField()
Add row
public
addRowField(mixed $label_string, mixed $field[, mixed $floating = false ]) : mixed
Parameters
- $label_string : mixed
-
Field label
- $field : mixed
-
Field object
- $floating : mixed = false
-
turn on/off floating labels
clear()
Clear form
public
clear([mixed $keepDefaults = FALSE ]) : mixed
Parameters
- $keepDefaults : mixed = FALSE
delField()
Del form field
public
delField(mixed $field) : mixed
Parameters
- $field : mixed
-
Form field
getActions()
Return form actions
public
getActions() : mixed
getData()
Get form data
public
getData([mixed $class = 'StdClass' ]) : mixed
Parameters
- $class : mixed = 'StdClass'
-
Object type of return data
getField()
Return form field
public
getField(mixed $name) : mixed
Parameters
- $name : mixed
-
Field name
getFields()
Return form fields
public
getFields() : mixed
getFormTitle()
Return the form title
public
getFormTitle() : mixed
getId()
Returns form id
public
getId() : mixed
getName()
Get form name
public
getName() : mixed
render()
Render DOM
public
render() : mixed
setData()
Set form data
public
setData(mixed $object) : mixed
Parameters
- $object : mixed
-
Data object
setFields()
Set form fields
public
setFields(mixed $fields) : mixed
Parameters
- $fields : mixed
-
Array of Form fields
setFormTitle()
Add a form title
public
setFormTitle(mixed $title) : mixed
Parameters
- $title : mixed
-
Form title
setModalClass()
Set modal class
public
setModalClass(mixed $class) : mixed
Parameters
- $class : mixed
setName()
Set form name
public
setName(mixed $name) : mixed
Parameters
- $name : mixed
-
Form name
show()
Show form
public
show() : mixed
validate()
Validate form data
public
validate() : mixed