/**
  * Transform the current request parameters into an array
  * 
  * @param $request_method optional, the request method to get the parameters from
  * @return array
  */
 public function toArray($request_method = null)
 {
     if ($request_method != null) {
         if (key_exists($request_method, $this->_requested_parameters)) {
             $return_value = $this->_requested_parameters[$request_method];
         } else {
             throw __ExceptionFactory::createException('Unknow request method: ' . $request_method);
         }
     } else {
         $return_value = $this->_requested_parameters[REQMETHOD_ALL];
     }
     return $return_value;
 }