original_string: function GetAll($where = null, $orderby = null, $limit = null, $offset = null) {
  		$this->LoadSchema();
  		if ($this->UseCache('getall')) {
  			$params = func_get_args();
  			$cacheid = md5(json_encode($params));
  
  			if ($value = $this->GetCache('getall', $cacheid))
  				return $value;
  		}
  
  		$this->ResetQuery(array(
  			'method' => 'getall',
  			'table' => $this->table,
  			'where' => $where,
  			'orderby' => $orderby,
  			'limit' => $limit,
  			'offset' => $offset,
  		));
  
  		$this->Trigger('access', $where);
  		if (!$this->continue)
  			return array();
  
  		$this->Trigger('pull', $where);
  		if (!$this->continue)
  			return array();
  
  		$this->Trigger('getall', $where, $orderby, $limit, $offset);
  		if (!$this->continue)
  			return array();
  
  		$this->db->from($this->table);
  
  		if ($where = $this->FilterFields($where, 'where'))
  			$this->db->where($where);
  		if ($orderby)
  			$this->db->order_by($orderby);
  		if ($limit || $offset)
  			$this->db->limit($limit,$offset);
  
  		$out = array();
  		foreach ($this->db->get()->result_array() as $row) {
  			$this->ApplyRow($row);
  			if (!$this->continue)
  				return array();
  			$out[] = $row;
  		}
  
  		$this->Trigger('rows', $out);
  		if (!$this->continue)
  			return array();
  
  		return isset($cacheid) ? $this->SetCache('getall', $cacheid, $out) : $out;
  	}
code: function GetAll($where = null, $orderby = null, $limit = null, $offset = null) {
  		$this->LoadSchema();
  		if ($this->UseCache('getall')) {
  			$params = func_get_args();
  			$cacheid = md5(json_encode($params));
  
  			if ($value = $this->GetCache('getall', $cacheid))
  				return $value;
  		}
  
  		$this->ResetQuery(array(
  			'method' => 'getall',
  			'table' => $this->table,
  			'where' => $where,
  			'orderby' => $orderby,
  			'limit' => $limit,
  			'offset' => $offset,
  		));
  
  		$this->Trigger('access', $where);
  		if (!$this->continue)
  			return array();
  
  		$this->Trigger('pull', $where);
  		if (!$this->continue)
  			return array();
  
  		$this->Trigger('getall', $where, $orderby, $limit, $offset);
  		if (!$this->continue)
  			return array();
  
  		$this->db->from($this->table);
  
  		if ($where = $this->FilterFields($where, 'where'))
  			$this->db->where($where);
  		if ($orderby)
  			$this->db->order_by($orderby);
  		if ($limit || $offset)
  			$this->db->limit($limit,$offset);
  
  		$out = array();
  		foreach ($this->db->get()->result_array() as $row) {
  			$this->ApplyRow($row);
  			if (!$this->continue)
  				return array();
  			$out[] = $row;
  		}
  
  		$this->Trigger('rows', $out);
  		if (!$this->continue)
  			return array();
  
  		return isset($cacheid) ? $this->SetCache('getall', $cacheid, $out) : $out;
  	}
code_tokens: function GetAll ( $ where = null , $ orderby = null , $ limit = null , $ offset = null ) { $ this -> LoadSchema ( ) ; if ( $ this -> UseCache ( 'getall' ) ) { $ params = func_get_args ( ) ; $ cacheid = md5 ( json_encode ( $ params ) ) ; if ( $ value = $ this -> GetCache ( 'getall' , $ cacheid ) ) return $ value ; } $ this -> ResetQuery ( array ( 'method' => 'getall' , 'table' => $ this -> table , 'where' => $ where , 'orderby' => $ orderby , 'limit' => $ limit , 'offset' => $ offset , ) ) ; $ this -> Trigger ( 'access' , $ where ) ; if ( ! $ this -> continue ) return array ( ) ; $ this -> Trigger ( 'pull' , $ where ) ; if ( ! $ this -> continue ) return array ( ) ; $ this -> Trigger ( 'getall' , $ where , $ orderby , $ limit , $ offset ) ; if ( ! $ this -> continue ) return array ( ) ; $ this -> db -> from ( $ this -> table ) ; if ( $ where = $ this -> FilterFields ( $ where , 'where' ) ) $ this -> db -> where ( $ where ) ; if ( $ orderby ) $ this -> db -> order_by ( $ orderby ) ; if ( $ limit || $ offset ) $ this -> db -> limit ( $ limit , $ offset ) ; $ out = array ( ) ; foreach ( $ this -> db -> get ( ) -> result_array ( ) as $ row ) { $ this -> ApplyRow ( $ row ) ; if ( ! $ this -> continue ) return array ( ) ; $ out [ ] = $ row ; } $ this -> Trigger ( 'rows' , $ out ) ; if ( ! $ this -> continue ) return array ( ) ; return isset ( $ cacheid ) ? $ this -> SetCache ( 'getall' , $ cacheid , $ out ) : $ out ; }
docstring: Retrieves multiple items filtered by where conditions
  Calls the 'getall' trigger to apply additional filters
  Calls the 'get' trigger on each retrieved row
  @param array $where Additional where conditions to apply
  @param string $orderby The ordering criteria to use
  @param int $limit The limit of records to retrieve
  @param int $offset The offset of records to retrieve
  @return array All found database rows
docstring_tokens: Retrieves multiple items filtered by where conditions Calls the getall trigger to apply additional filters Calls the get trigger on each retrieved row