API Documentação da API
Lançado Adianti Framework 8.0!
Clique aqui para saber mais
Pacote Dominando o Adianti Framework
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de Exemplo.
API
API do Framework
Documentation

Documentation

TModalForm
in package
implements AdiantiFormInterface

Modal form constructor for Adianti Framework

Tags
version
8.0
author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

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

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

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

getName()

Get form name

public getName() : 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

validate()

Validate form data

public validate() : mixed

        
On this page

Search results