/** * @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); }
/** * @see parent::haltForm() */ protected function haltForm($Object, $method = 'edit') { if ($method == 'editi' || $method == 'addi') { return $this->halt('items/' . $Object->GalleryId, 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); }