original_string: protected function _setRequest($segments = array()){
  		$segments = $this->_validateRequest($segments);
  		if (count($segments) == 0){
  			return $this->uri->_reindex_segments();
  		}
  
  		$this->setClass($segments[0]);
  
  		if (isset($segments[1]))
  		{
  			// A standard method request
  			$this->method = $segments[1];
  		}
  		else
  		{
  			// This lets the "routed" segment array identify that the default
  			// index method is being used.
  			$segments[1] = 'index';
  		}
  
  		// Update our "routed" segment array to contain the segments.
  		// Note: If there is no custom routing, this array will be
  		// identical to $this->uri->segments
  		$this->uri->rsegments = $segments;
  	}
code: protected function _setRequest($segments = array()){
  		$segments = $this->_validateRequest($segments);
  		if (count($segments) == 0){
  			return $this->uri->_reindex_segments();
  		}
  
  		$this->setClass($segments[0]);
  
  		if (isset($segments[1]))
  		{
  			// A standard method request
  			$this->method = $segments[1];
  		}
  		else
  		{
  			// This lets the "routed" segment array identify that the default
  			// index method is being used.
  			$segments[1] = 'index';
  		}
  
  		// Update our "routed" segment array to contain the segments.
  		// Note: If there is no custom routing, this array will be
  		// identical to $this->uri->segments
  		$this->uri->rsegments = $segments;
  	}
code_tokens: protected function _setRequest ( $ segments = array ( ) ) { $ segments = $ this -> _validateRequest ( $ segments ) ; if ( count ( $ segments ) == 0 ) { return $ this -> uri -> _reindex_segments ( ) ; } $ this -> setClass ( $ segments [ 0 ] ) ; if ( isset ( $ segments [ 1 ] ) ) { // A standard method request $ this -> method = $ segments [ 1 ] ; } else { // This lets the "routed" segment array identify that the default // index method is being used. $ segments [ 1 ] = 'index' ; } // Update our "routed" segment array to contain the segments. // Note: If there is no custom routing, this array will be // identical to $this->uri->segments $ this -> uri -> rsegments = $ segments ; }
docstring: Set the Route
  
  This function takes an array of URI segments as
  input, and sets the current class/method
  
  @access	private
  @param	array
  @param	bool
  @return	void
docstring_tokens: Set the Route