Ejemplo n.º 1
0
 /**
  * Overwrite of the get_iterated() function to add filters to the search.
  * Refer to DataMapper ORM for get_iterated() function details.
  *
  * @author	Woxxy
  * @param	integer|NULL $limit Limit the number of results.
  * @param	integer|NULL $offset Offset the results when limiting.
  * @return	DataMapper Returns self for method chaining.
  */
 public function get_iterated($limit = NULL, $offset = NULL)
 {
     // Get the CodeIgniter instance, since it isn't set in this file.
     $CI =& get_instance();
     // Check if the user is allowed to see protected chapters.
     if (!$CI->tank_auth->is_allowed()) {
         $this->where('hidden', 0);
     }
     /**
      * @todo figure out why those variables don't get unset... it would be
      * way better to use the iterated in almost all cases in FoOlSlide
      */
     return parent::get_iterated($limit, $offset);
 }
Ejemplo n.º 2
0
 public function get_iterated_slim($limit = NULL, $offset = NULL)
 {
     return parent::get_iterated($limit, $offset);
 }