예제 #1
0
 /**
  * Allows custom REQUEST_METHOD's instead of limiting developers to
  * standard HTTP request types by using a magic PHP function for routing.
  *
  * @param string
  * @param mixed
  */
 public static function __callStatic($type, $args = array())
 {
     // Configure on initialization
     if (!isset(io::$_developers['paths'])) {
         // Run initialization
         io::_init(true);
     }
     // Check route against self::match()
     if (self::_match(strtoupper($type), $args[0])) {
         // Closure
         $args[1]();
     }
     // Discontinue processing on TRUE
     isset($args[2]) && $args[2] ? exit : 0;
 }