Esempio n. 1
0
 /**
  * Delete a list of aliases from their ids,
  * passed as params
  *
  * @param array of integer $ids the list of aliases id to delete
  * @return boolean true if success
  */
 public function deleteByIds($ids = array())
 {
     if (empty($ids)) {
         return false;
     }
     try {
         Sh404sefHelperDb::deleteIn($this->_getTableName(), 'id', $ids, Sh404sefHelperDb::INTEGER);
     } catch (Sh404sefExceptionDefault $e) {
         $this->setError('Internal database error # ' . $e->getMessage());
         return false;
     }
     return true;
 }