Revision abcc2dc5
Added by Sjon Hortensius over 10 years ago
usr/local/www/classes/Form.class.php | ||
---|---|---|
45 | 45 |
protected $_global = array(); |
46 | 46 |
protected $_labelWidth = 2; |
47 | 47 |
|
48 |
public function __construct(Form_Button $submit = null)
|
|
48 |
public function __construct($submit = null) |
|
49 | 49 |
{ |
50 | 50 |
if (!isset($submit)) |
51 | 51 |
$submit = new Form_Button( |
... | ... | |
53 | 53 |
'Save' |
54 | 54 |
); |
55 | 55 |
|
56 |
$this->addGlobal($submit); |
|
56 |
if (false !== $submit) |
|
57 |
$this->addGlobal($submit); |
|
57 | 58 |
} |
58 | 59 |
|
59 | 60 |
public function add(Form_Section $section) |
Also available in: Unified diff
make construct less strict to allow hiding submit button