/** * @param boolean load/or just return collection */ protected function _load($load = true) { $this->collection->clear(); if ($this->_where) { $this->collection->set_where($this->_where); } if ($this->_order) { $this->collection->set_order($this->_order); } return $load ? $this->collection->load() : $this->collection; }