Documentation

Formulario
in package

Table of Contents

$action  : mixed
$dom  : mixed
$form  : mixed
$formAttributes  : mixed
$tags  : mixed
__construct()  : mixed
button()  : Formulario
checkbox()  : Formulario
exibir()  : string
input()  : Formulario
inputFile()  : Formulario
inputHidden()  : Formulario
inputPassword()  : Formulario
radio()  : Formulario
radioPlus()  : Formulario
select()  : Formulario
textarea()  : Formulario
adicionarAoFormulario()  : void
adicionarTag()  : DOMElement
criarTag()  : DOMElement
tagHelp()  : DOMElement

Properties

Methods

__construct()

public __construct([string $action = null ][, array<string|int, mixed> $formAttributes = [] ][, string $method = 'post' ][, string $id = 'save' ]) : mixed
Parameters
$action : string = null
$formAttributes : array<string|int, mixed> = []
$method : string = 'post'
$id : string = 'save'
Return values
mixed

button()

public button(string $value[, string $type = 'submit' ][, string $btnClass = null ][, array<string|int, mixed> $buttonAttr = null ][, array<string|int, mixed> $divAttr = null ]) : Formulario
Parameters
$value : string
$type : string = 'submit'
$btnClass : string = null
$buttonAttr : array<string|int, mixed> = null
$divAttr : array<string|int, mixed> = null
Return values
Formulario

checkbox()

public checkbox(string $label, string $name[, string $value = null ][, array<string|int, mixed> $divAttr = null ][, string $helper = null ]) : Formulario
Parameters
$label : string
$name : string
$value : string = null
$divAttr : array<string|int, mixed> = null
$helper : string = null
Return values
Formulario

exibir()

public exibir([string $return = null ]) : string
Parameters
$return : string = null
Return values
string

input()

public input(string $label[, string $name = null ][, string $value = null ][, array<string|int, mixed> $inputAttr = null ][, array<string|int, mixed> $divAttr = null ][, string $helper = null ]) : Formulario
Parameters
$label : string
$name : string = null
$value : string = null
$inputAttr : array<string|int, mixed> = null
$divAttr : array<string|int, mixed> = null
$helper : string = null
Return values
Formulario

inputHidden()

public inputHidden(string $name[, string $value = null ]) : Formulario
Parameters
$name : string
$value : string = null
Return values
Formulario

inputPassword()

public inputPassword(string $label, string $name[, string $value = null ][, array<string|int, mixed> $inputAttr = null ][, array<string|int, mixed> $divAttr = null ][, string $helper = null ]) : Formulario
Parameters
$label : string
$name : string
$value : string = null
$inputAttr : array<string|int, mixed> = null
$divAttr : array<string|int, mixed> = null
$helper : string = null
Return values
Formulario

radio()

public radio(string $label, string $name[, string $value = null ][, array<string|int, mixed> $divAttr = null ][, string $helper = null ]) : Formulario
Parameters
$label : string
$name : string
$value : string = null
$divAttr : array<string|int, mixed> = null
$helper : string = null
Return values
Formulario

radioPlus()

public radioPlus(string $label, string $name[, string $value = null ][, array<string|int, mixed> $options = null ][, array<string|int, mixed> $divAttr = null ][, string $helper = null ]) : Formulario
Parameters
$label : string
$name : string
$value : string = null
$options : array<string|int, mixed> = null
$divAttr : array<string|int, mixed> = null
$helper : string = null
Return values
Formulario

select()

public select(string $label, string $name[, string $value = null ][, array<string|int, mixed> $options = null ][, array<string|int, mixed> $inputAttr = null ][, array<string|int, mixed> $divAttr = null ][, string $helper = null ]) : Formulario
Parameters
$label : string
$name : string
$value : string = null
$options : array<string|int, mixed> = null
$inputAttr : array<string|int, mixed> = null
$divAttr : array<string|int, mixed> = null
$helper : string = null
Return values
Formulario

textarea()

public textarea(string $label, string $name[, string $value = null ][, array<string|int, mixed> $inputAttr = null ][, array<string|int, mixed> $divAttr = null ][, string $helper = null ]) : Formulario
Parameters
$label : string
$name : string
$value : string = null
$inputAttr : array<string|int, mixed> = null
$divAttr : array<string|int, mixed> = null
$helper : string = null
Return values
Formulario

adicionarAoFormulario()

private adicionarAoFormulario(DOMElement $tag) : void
Parameters
$tag : DOMElement
Return values
void

adicionarTag()

private adicionarTag(DOMElement $continente, DOMElement $conteudo) : DOMElement
Parameters
$continente : DOMElement
$conteudo : DOMElement
Return values
DOMElement

criarTag()

private criarTag(string $name[, string $value = null ][, array<string|int, mixed> $attributes = null ]) : DOMElement
Parameters
$name : string
$value : string = null
$attributes : array<string|int, mixed> = null
Return values
DOMElement

tagHelp()

private tagHelp(DOMElement $div[, string $helper = null ]) : DOMElement
Parameters
$div : DOMElement
$helper : string = null
Return values
DOMElement

Search results