Exemple #1
0
 /**
  * Deletes the current record from the DB.
  */
 public function delete()
 {
     if (!$this->id) {
         return false;
     }
     $this->beforeDelete();
     $this->_zendDb->delete($this->tableName(), 'id = ' . $this->id);
     $this->_afterCommand('delete');
     $this->afterDelete();
     return true;
 }
Exemple #2
0
 /**
  * Enter description here ...
  * @param array $cid
  */
 public function deleteIntro($cid)
 {
     $listid = implode("','", $cid);
     $result = $this->db->delete('intro', "id in ('" . $listid . "')");
 }