/** * @see parent::haltForm() */ protected function haltForm(Object $Object, $method = 'edit') { if ($method == 'add') { return $this->halt('edit/' . $Object->Id, true); } return parent::haltForm($Object, $method); }
public function haltForm(Object $Object, $method = 'edit') { if ($method == 'add') { if ($Object->Id) { $Object->send(); } } return parent::haltForm($Object, $method); }
/** * The editing gallery item handler. * * @access public * @param int $id The gallery item id. * @return string The HTML code. */ public function editi($id = null) { $Item = new Gallery_Item(); $Item = $Item->findItem(array('Id = ' . $id)); if (!$Item->Id) { return $this->halt(); } return parent::initForm($Item, 'editi'); }