MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mcompoundform.class
Ir para a documentação deste ficheiro.
1<?php
2class 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?>
__construct($title='', $action='', $close='backContext', $icon='')
Definição mform.class:9
$action
Definição mform.class:18
$footer
Definição mform.class:58
GenerateFooter()
Definição mform.class:1954
AddField($field, $hint=false)
Definição mform.class:932
$title
Definição mform.class:13
GenerateBody()
Definição mform.class:1897
const FORM_SUBMIT_BTN_NAME
Definição mform.class:2