/** * Gibt den vorhandenen oder durch die Callback gesetzten Index zurück * @param string $index * @return mixed */ public function offsetGet($index) { if (!parent::offsetExists($index)) { if (!isset($this->_callbacks[$index])) { throw new Dragon_Application_Exception_System('incorrect index'); } parent::offsetSet($index, $this->_callbacks[$index]()); } return parent::offsetGet($index); }
public function offsetSet($index, $newval) { if (isset($this->_map[$index])) { $index = $this->_map[$index]; } return parent::offsetSet($index, $newval); }
public function __set($name, $value) { $this->_parameters->offsetSet($name, $value); return $this; }