Exemplo n.º 1
0
 /**
  * Initialize the request. If adapter is null,
  * Pfw_Request_Standard will be used.
  * 
  * @param string $adapter the adapter class
  */
 public static function init($adapter = null)
 {
     if (!is_null($adapter)) {
         self::$adapter = $adapter;
     } else {
         $adapter_class = "Pfw_Request_Standard";
         Pfw_Loader::loadClass($adapter_class);
         self::$adapter = new $adapter_class();
     }
 }