code/libraries/joomlatools/library/database/adapter/abstract.php
public function delete(KDatabaseQueryDelete $query)
    {
        $context = $this->getContext();
        $context->query = $query;

        //Execute the delete operation
        if ($this->invokeCommand('before.delete', $context) !== false)
        {
            //Execute the query
            $context->result = $this->execute($context->query);
            $context->affected = $this->_affected_rows;

            $this->invokeCommand('after.delete', $context);
        }

        return $context->affected;
    }
public function delete(KDatabaseQueryDelete $query)
    {
        $context = $this->getContext();
        $context->query = $query;

        //Execute the delete operation
        if ($this->invokeCommand('before.delete', $context) !== false)
        {
            //Execute the query
            $context->result = $this->execute($context->query);
            $context->affected = $this->_affected_rows;

            $this->invokeCommand('after.delete', $context);
        }

        return $context->affected;
    }
public function delete ( KDatabaseQueryDelete $ query ) { $ context = $ this -> getContext ( ) ; $ context -> query = $ query ; //Execute the delete operation if ( $ this -> invokeCommand ( 'before.delete' , $ context ) !== false ) { //Execute the query $ context -> result = $ this -> execute ( $ context -> query ) ; $ context -> affected = $ this -> _affected_rows ; $ this -> invokeCommand ( 'after.delete' , $ context ) ; } return $ context -> affected ; }
Delete rows from the table.

@param  KDatabaseQueryDelete $query The query object.
@return integer     Number of rows affected, or -1 if an error occurred.
Delete rows from the table .