library/core/class.dispatcher.php
protected function _SplitDeliveryMethod($Name, $AllowAll = FALSE) {
      $Parts = explode('.', $Name);
      if (count($Parts) >= 2) {
         $DeliveryPart = array_pop($Parts);
         $MethodPart = implode('.', $Parts);
         
         if ($AllowAll || in_array(strtoupper($DeliveryPart), array(DELIVERY_METHOD_JSON, DELIVERY_METHOD_XHTML, DELIVERY_METHOD_XML, DELIVERY_METHOD_TEXT, DELIVERY_METHOD_RSS))) {
            return array($MethodPart, strtoupper($DeliveryPart));
         } else {
            return array($Name, $this->_DeliveryMethod);
         }
      } else {
         return array($Name, $this->_DeliveryMethod);
      }
   }
protected function _SplitDeliveryMethod($Name, $AllowAll = FALSE) {
      $Parts = explode('.', $Name);
      if (count($Parts) >= 2) {
         $DeliveryPart = array_pop($Parts);
         $MethodPart = implode('.', $Parts);
         
         if ($AllowAll || in_array(strtoupper($DeliveryPart), array(DELIVERY_METHOD_JSON, DELIVERY_METHOD_XHTML, DELIVERY_METHOD_XML, DELIVERY_METHOD_TEXT, DELIVERY_METHOD_RSS))) {
            return array($MethodPart, strtoupper($DeliveryPart));
         } else {
            return array($Name, $this->_DeliveryMethod);
         }
      } else {
         return array($Name, $this->_DeliveryMethod);
      }
   }
protected function _SplitDeliveryMethod ( $ Name , $ AllowAll = FALSE ) { $ Parts = explode ( '.' , $ Name ) ; if ( count ( $ Parts ) >= 2 ) { $ DeliveryPart = array_pop ( $ Parts ) ; $ MethodPart = implode ( '.' , $ Parts ) ; if ( $ AllowAll || in_array ( strtoupper ( $ DeliveryPart ) , array ( DELIVERY_METHOD_JSON , DELIVERY_METHOD_XHTML , DELIVERY_METHOD_XML , DELIVERY_METHOD_TEXT , DELIVERY_METHOD_RSS ) ) ) { return array ( $ MethodPart , strtoupper ( $ DeliveryPart ) ) ; } else { return array ( $ Name , $ this -> _DeliveryMethod ) ; } } else { return array ( $ Name , $ this -> _DeliveryMethod ) ; } }
Parses methods that may be using dot-syntax to express a delivery type

For example, /controller/method.json
method.json should be split up and return array('method', 'JSON')

@param type $Name Name of method to search for forced delivery types
@param type $AllowAll Whether to allow delivery types that don't exist
@return type
Parses methods that may be using dot - syntax to express a delivery type