Exemple #1
0
 /**
  * Basic delete. It returns false if the keys from $where doesn't
  * match with the fields defined in the construct
  * 
  * @access public
  * @since unknown
  * @param array $where
  * @return mixed It returns the number of affected rows if the delete has been 
  * correct or false if an error happended
  */
 function delete($where)
 {
     if (!$this->checkFieldKeys(array_keys($where))) {
         return false;
     }
     $this->dao->from($this->getTableName());
     $this->dao->where($where);
     return $this->dao->delete();
 }
Exemple #2
0
 function seo_delete_item($itemID)
 {
     $conn = DBConnectionClass::newInstance();
     $c_db = $conn->getOsclassDb();
     $comm = new DBCommandClass($c_db);
     $where = array('fk_i_item_id' => $itemID);
     $comm->delete(SEO_PLUGIN_ITEM_META_TABLE, $where);
 }
 function youtube_delete_item($itemID)
 {
     $conn = DBConnectionClass::newInstance();
     $c_db = $conn->getOsclassDb();
     $comm = new DBCommandClass($c_db);
     $where = array('fk_i_item_id' => $itemID);
     $comm->delete(YOUTUBE_TABLE, $where);
 }