public function delete($table, array $conditions)
    {
        $table = $this->getTable($table);
        $where = $this->buildSqlObject($conditions, ' AND ');

        $query = "DELETE FROM $table WHERE " . $where;
        return $this->executeUpdate($query, array_values($conditions));
    }
public function delete($table, array $conditions)
    {
        $table = $this->getTable($table);
        $where = $this->buildSqlObject($conditions, ' AND ');

        $query = "DELETE FROM $table WHERE " . $where;
        return $this->executeUpdate($query, array_values($conditions));
    }
public function delete ( $ table , array $ conditions ) { $ table = $ this -> getTable ( $ table ) ; $ where = $ this -> buildSqlObject ( $ conditions , ' AND ' ) ; $ query = "DELETE FROM $table WHERE " . $ where ; return $ this -> executeUpdate ( $ query , array_values ( $ conditions ) ) ; }
Executes a DELETE query

@param string $table The name of table
@param array $conditions The conditions to search records
@return int The number of affected rows
Executes a DELETE query