core/MY_Model.php
public function delete_by()
    {
        $where = func_get_args();

	    $where = $this->trigger('before_delete', $where);

        $this->_set_where($where);


        if ($this->soft_delete)
        {
            $result = $this->_database->update($this->_table, array( $this->soft_delete_key => TRUE ));
        }
        else
        {
            $result = $this->_database->delete($this->_table);
        }

        $this->trigger('after_delete', $result);

        return $result;
    }
public function delete_by()
    {
        $where = func_get_args();

	    $where = $this->trigger('before_delete', $where);

        $this->_set_where($where);


        if ($this->soft_delete)
        {
            $result = $this->_database->update($this->_table, array( $this->soft_delete_key => TRUE ));
        }
        else
        {
            $result = $this->_database->delete($this->_table);
        }

        $this->trigger('after_delete', $result);

        return $result;
    }
public function delete_by ( ) { $ where = func_get_args ( ) ; $ where = $ this -> trigger ( 'before_delete' , $ where ) ; $ this -> _set_where ( $ where ) ; if ( $ this -> soft_delete ) { $ result = $ this -> _database -> update ( $ this -> _table , array ( $ this -> soft_delete_key => TRUE ) ) ; } else { $ result = $ this -> _database -> delete ( $ this -> _table ) ; } $ this -> trigger ( 'after_delete' , $ result ) ; return $ result ; }
Delete a row from the database table by an arbitrary WHERE clause
Delete a row from the database table by an arbitrary WHERE clause