core/MY_Model.php
public function count_by()
    {
        if ($this->soft_delete && $this->_temporary_with_deleted !== TRUE)
        {
            $this->_database->where($this->soft_delete_key, (bool)$this->_temporary_only_deleted);
        }

        $where = func_get_args();
        $this->_set_where($where);

        return $this->_database->count_all_results($this->_table);
    }
public function count_by()
    {
        if ($this->soft_delete && $this->_temporary_with_deleted !== TRUE)
        {
            $this->_database->where($this->soft_delete_key, (bool)$this->_temporary_only_deleted);
        }

        $where = func_get_args();
        $this->_set_where($where);

        return $this->_database->count_all_results($this->_table);
    }
public function count_by ( ) { if ( $ this -> soft_delete && $ this -> _temporary_with_deleted !== TRUE ) { $ this -> _database -> where ( $ this -> soft_delete_key , ( bool ) $ this -> _temporary_only_deleted ) ; } $ where = func_get_args ( ) ; $ this -> _set_where ( $ where ) ; return $ this -> _database -> count_all_results ( $ this -> _table ) ; }
Fetch a count of rows based on an arbitrary WHERE call.
Fetch a count of rows based on an arbitrary WHERE call .