Beispiel #1
0
 /**
  * @param array $options
  * @return JO_Request
  */
 public static function getInstance($options = array())
 {
     if (self::$_instance == null) {
         self::$_instance = new self($options);
     }
     return self::$_instance;
 }
Beispiel #2
0
 public function _initCMD()
 {
     $args = JO_Shell::getArgv();
     if ($args && is_array($args)) {
         $request = JO_Request::getInstance();
         foreach ($args as $key => $data) {
             if ($key) {
                 $request->setParams($key, (string) $data);
             }
         }
     }
 }
Beispiel #3
0
 public function _initCMD()
 {
     $request = JO_Request::getInstance();
     $args = JO_Shell::getArgv();
     if ($args && is_array($args)) {
         foreach ($args as $key => $data) {
             if ($key) {
                 $request->setParams($key, (string) $data);
             }
         }
     }
     //		JO_Registry::set('config_cache_live',120);
 }
Beispiel #4
0
 public function setArgv($argv)
 {
     JO_Shell::setArgv($argv);
 }