Exemple #1
0
 /**
  * @return bool
  */
 public function delete(&$obj, $force = false)
 {
     $sql = 'ALTER TABLE %s DROP `' . $obj->get('field_name') . '`';
     $this->_alterPage($sql);
     $this->_alterRevision($sql);
     return parent::delete($obj, $force);
 }
Exemple #2
0
 public function delete(&$obj, $force = false)
 {
     //delete page tree
     $tree = $this->getTree($obj->get('page_id'));
     foreach ($tree as $page) {
         if (!parent::delete($page, $force)) {
             return XCCK_FRAME_VIEW_ERROR;
         }
     }
     $this->_deleteSubtable($obj);
     $this->_deleteRevision($obj);
     return XCCK_FRAME_VIEW_SUCCESS;
 }