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')); }
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(); }
/** * 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)); } }
function __construct() { $this->_config = config('system'); $this->_http = http::getInstance(); $this->_log = new log(); }