fix: Интерфейсы
This commit is contained in:
parent
36c81135f3
commit
5474090f85
5 changed files with 90 additions and 44 deletions
|
|
@ -16,8 +16,8 @@ use ctiso\Form\Field,
|
|||
* Форма для ввода
|
||||
*/
|
||||
class Form {
|
||||
public $field = array(); //Поля формы
|
||||
public $fieldsets = array(); //Группы полей (fieldset). Некоторые поля могут не принадлежать никаким группам
|
||||
public $field = []; //Поля формы
|
||||
public $fieldsets = []; //Группы полей (fieldset). Некоторые поля могут не принадлежать никаким группам
|
||||
|
||||
public $action = "";
|
||||
public $method = 'post';
|
||||
|
|
@ -26,9 +26,9 @@ class Form {
|
|||
protected $replace;
|
||||
protected $before;
|
||||
|
||||
public $_title = array();
|
||||
public $alias = array();
|
||||
private $constructor = array();
|
||||
public $_title = [];
|
||||
public $alias = [];
|
||||
private $constructor = [];
|
||||
|
||||
/**
|
||||
* Строим форму по ее структуре. Каждому типу соответствует определенный класс.
|
||||
|
|
@ -183,7 +183,7 @@ class Form {
|
|||
{
|
||||
$this->field[$name]->setValue($value);
|
||||
}
|
||||
|
||||
|
||||
function execute()
|
||||
{
|
||||
return $this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue