lib/components/web/form/Generator.php
public function setItems($items)
    {
        $this->_items = $items;
        if (isset($this->_items[0]) && is_array($this->_items[0])) {
            $this->_items = $this->_items[0];
        }
        foreach ($this->_items as $item) {
            $item->owner = $this;
            if (!$item->isValid) {
                $this->isValid = false;
            }
        }
    }
public function setItems($items)
    {
        $this->_items = $items;
        if (isset($this->_items[0]) && is_array($this->_items[0])) {
            $this->_items = $this->_items[0];
        }
        foreach ($this->_items as $item) {
            $item->owner = $this;
            if (!$item->isValid) {
                $this->isValid = false;
            }
        }
    }
Set items.

@param [[@doctodo param_type:items]] $items [[@doctodo param_description:items]]