/** * Performs the search query using the Database object and returns the total number of results. * * @return integer */ function delete() { list($query, $data) = $this->buildDelete(); return (int) Database::PreparedQuery($query, $data, DB_QQ_NONE); }