Beispiel #1
0
 function __construct()
 {
     $this->session = session::getInstance();
     $this->post = post::getInstance();
     $this->get = get::getInstance();
     $this->http = http::getInstance();
     $this->file = new file();
     $this->cookie = new cookie(config('cookie'));
 }
Beispiel #2
0
 function __construct()
 {
     $this->session = session::getInstance();
     $this->post = post::getInstance();
     $this->get = get::getInstance();
     $this->http = http::getInstance();
     $this->file = file::getInstance();
     $this->cookie = cookie::getInstance();
 }
Beispiel #3
0
 /**
  * url生成
  * @param unknown $parameter
  * @return mixed
  */
 function url($parameter)
 {
     $http = http::getInstance();
     $c = isset($parameter['c']) ? $parameter['c'] : '';
     $a = isset($parameter['a']) ? $parameter['a'] : '';
     $urlencode = false;
     if (isset($parameter['urlencode'])) {
         $urlencode = $parameter['urlencode'];
         unset($parameter['urlencode']);
     }
     unset($parameter['c']);
     unset($parameter['a']);
     $array = array('c' => $c, 'a' => $a, 'array' => $parameter);
     if (!$urlencode) {
         return call_user_func_array(array($http, 'url'), $array);
     } else {
         return urlencode(call_user_func_array(array($http, 'url'), $array));
     }
 }
Beispiel #4
0
 function __construct()
 {
     $this->_config = config('system');
     $this->_http = http::getInstance();
     $this->_log = new log();
 }