Exemplo n.º 1
0
 /**
  * delete all rows from this table matching where clause
  * @param array $where
  *	@see dbHelper::joinWhere() for $where formatting
  * @param mixed $andor
  * 	@see dbHelper::andOr() for more info on $setor formatting
  * @param string $bypasswhere this is a flag to prevent delete all if you pass an empty $where array
  *	@see dbHelper::deleteQry() for more info
  *
  * @return bool or int (affected rows)
  */
 public function deleteRowsWhere($where, $andor = 'AND', $bypassWhere = 'DONT_DELETE_EVERYTHING')
 {
     $ret = dbHelper::deleteQry($this->tableName, $where, $andor, $bypassWhere);
     if ($ret) {
         dbData::emptyTable($this->tableName);
     }
     return $ret;
 }