/** * @param mixed $offset * @param Miao_Form_Control $value * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->_items[] = null; $keys = array_keys($this->_items); $offset = array_pop($keys); } $this->_items[$offset] = $value; $controlKey = $offset; if (!$this->getForceKeyEnable()) { $controlKey = ''; } $name = $this->_makeName($controlKey); $value->setName($name); }