MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mcompoundform.class
Ir para a documentação deste ficheiro.
1
<?php
2
class
MCompoundForm
extends
MForm
3
{
4
var
$_info
= array();
5
var
$_panel
= array();
6
var
$_form
= array();
7
8
function
__construct
(
$title
=
''
,
$action
=
''
, $close =
'backContext'
, $icon =
''
)
9
{
10
parent::__construct(
$title
,
$action
, $close, $icon);
11
$this->defaultButton =
false
;
12
$this->
CompoundFields
();
13
}
14
15
function
CompoundFields
()
16
{
17
$this->ClearControls();
18
$this->fields = array
19
(
20
);
21
22
foreach
($this->_info as $f)
23
{
24
$this->
AddField
($f);
25
}
26
27
$this->
AddField
(
new
Spacer
());
28
29
foreach
($this->_panel as $f)
30
{
31
$this->
AddField
($f);
32
$this->
AddField
(
new
Spacer
());
33
}
34
35
foreach
($this->_form as $f)
36
{
37
$this->
AddField
($f);
38
$this->
AddField
(
new
Spacer
());
39
}
40
}
41
42
function
Generate
()
43
{
44
if
(!isset($this->buttons))
45
{
46
if
($this->defaultButton)
47
{
48
$this->buttons[] =
new
FormButton
(
FORM_SUBMIT_BTN_NAME
,
'Enviar'
,
'SUBMIT'
);
49
}
50
}
51
52
$body = $this->
GenerateBody
();
53
$footer
= $this->
GenerateFooter
();
54
$this->box->SetBoxClass(
'm-form-body panel-body card-body'
);
55
56
$this->box->SetControls(array($body,
$footer
));
57
return
$this->box->Generate();
58
}
59
}
60
?>
FormButton
Definição
compatibility.class:72
MCompoundForm
Definição
mcompoundform.class:3
MCompoundForm\$_info
$_info
Definição
mcompoundform.class:4
MCompoundForm\Generate
Generate()
Definição
mcompoundform.class:42
MCompoundForm\CompoundFields
CompoundFields()
Definição
mcompoundform.class:15
MCompoundForm\$_form
$_form
Definição
mcompoundform.class:6
MCompoundForm\__construct
__construct($title='', $action='', $close='backContext', $icon='')
Definição
mcompoundform.class:8
MCompoundForm\$_panel
$_panel
Definição
mcompoundform.class:5
MForm
Definição
mform.class:9
MForm\$action
$action
Definição
mform.class:18
MForm\$footer
$footer
Definição
mform.class:58
MForm\GenerateFooter
GenerateFooter()
Definição
mform.class:1954
MForm\AddField
AddField($field, $hint=false)
Definição
mform.class:932
MForm\$title
$title
Definição
mform.class:13
MForm\GenerateBody
GenerateBody()
Definição
mform.class:1897
Spacer
Definição
compatibility.class:69
FORM_SUBMIT_BTN_NAME
const FORM_SUBMIT_BTN_NAME
Definição
mform.class:2
classes
ui
controls
mcompoundform.class
Gerado por
1.10.0