Example #1
0
 /**
  * @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);
 }
Example #2
0
 public function haltForm(Object $Object, $method = 'edit')
 {
     if ($method == 'add') {
         if ($Object->Id) {
             $Object->send();
         }
     }
     return parent::haltForm($Object, $method);
 }
Example #3
0
 /**
  * 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');
 }