library/core/class.dispatcher.php
private function _MapParts($Parts, $ControllerKey) {
      $Length = count($Parts);
      if ($Length > $ControllerKey)
         $this->ControllerName = ucfirst(strtolower($Parts[$ControllerKey]));

      if ($Length > $ControllerKey + 1)
         list($this->ControllerMethod, $this->_DeliveryMethod) = $this->_SplitDeliveryMethod($Parts[$ControllerKey + 1]);

      if ($Length > $ControllerKey + 2) {
         for ($i = $ControllerKey + 2; $i < $Length; ++$i) {
            if ($Parts[$i] != '')
               $this->_ControllerMethodArgs[] = $Parts[$i];
         }
      }
   }
private function _MapParts($Parts, $ControllerKey) {
      $Length = count($Parts);
      if ($Length > $ControllerKey)
         $this->ControllerName = ucfirst(strtolower($Parts[$ControllerKey]));

      if ($Length > $ControllerKey + 1)
         list($this->ControllerMethod, $this->_DeliveryMethod) = $this->_SplitDeliveryMethod($Parts[$ControllerKey + 1]);

      if ($Length > $ControllerKey + 2) {
         for ($i = $ControllerKey + 2; $i < $Length; ++$i) {
            if ($Parts[$i] != '')
               $this->_ControllerMethodArgs[] = $Parts[$i];
         }
      }
   }
private function _MapParts ( $ Parts , $ ControllerKey ) { $ Length = count ( $ Parts ) ; if ( $ Length > $ ControllerKey ) $ this -> ControllerName = ucfirst ( strtolower ( $ Parts [ $ ControllerKey ] ) ) ; if ( $ Length > $ ControllerKey + 1 ) list ( $ this -> ControllerMethod , $ this -> _DeliveryMethod ) = $ this -> _SplitDeliveryMethod ( $ Parts [ $ ControllerKey + 1 ] ) ; if ( $ Length > $ ControllerKey + 2 ) { for ( $ i = $ ControllerKey + 2 ; $ i < $ Length ; ++ $ i ) { if ( $ Parts [ $ i ] != '' ) $ this -> _ControllerMethodArgs [ ] = $ Parts [ $ i ] ; } } }
An internal method used to map parts of the request to various properties
of this object that represent the controller, controller method, and
controller method arguments.

@param array $Parts An array of parts of the request.
@param int $ControllerKey An integer representing the key of the controller in the $Parts array.
An internal method used to map parts of the request to various properties of this object that represent the controller controller method and controller method arguments .