本文整理匯總了PHP中cookie::getInstance方法的典型用法代碼示例。如果您正苦於以下問題:PHP cookie::getInstance方法的具體用法?PHP cookie::getInstance怎麽用?PHP cookie::getInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類cookie
的用法示例。
在下文中一共展示了cookie::getInstance方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
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();
}
示例2: __construct
public function __construct()
{
$this->registry = registry::getInstance();
$this->path = $this->registry["path"];
$this->html = html::getInstance();
$this->session = session::getInstance();
$this->cookie = cookie::getInstance();
$this->ajax = new ajax();
$this->l10n = l10n::getInstance();
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->cookie = cookie::getInstance();
if (!defined('GESHI_VERSION') and file_exists(Absolute_Path . "app/plugins/geshi/GeSHi.php")) {
require_once Absolute_Path . "app/plugins/geshi/GeSHi.php";
}
$this->addAction('index_comment_added', 'usersNotify');
$this->addAction('index_comment_added', 'adminNotify');
$this->addAction('comment_approbed', 'notify');
}
示例4: checkConfig
function checkConfig()
{
$this->cookie = cookie::getInstance();
if (!$this->cookie->check("logged")) {
return;
}
$conf = new configuration();
$row = $conf->findBy('name', 'blog_feedburner_rssLink');
$setupMsg = "<p style=\"border:1px solid #f00;background-color:#ff0;padding:10px;font-size:15px;\">Please <a href=\"{$this->registry->path}admin/config#blog_feedburner_rssLink\">setup</a> the feedburner plugin.</p>";
if (!$row) {
echo $setupMsg;
} else {
if (!preg_match(VALID_URL, $row['value'])) {
echo $setupMsg;
}
}
}
示例5: substr
$path = substr(Path, strlen(Path) - strlen("/")) == "/" ? Path : Path . "/";
$registry->path = $path;
if (!defined('requiresBD')) {
$db = new dbFactory(strtolower(DB_Engine));
} else {
if (requiresBD) {
$db = new dbFactory(strtolower(DB_Engine));
} else {
$db = null;
}
}
$registry->db = $db;
$views = new appviews();
$registry->views = $views;
$themes = new themes();
$registry->themes = $themes;
$session = session::getInstance();
$registry->session = $session;
$cookie = cookie::getInstance();
$registry->cookie = $cookie;
$router = new router();
$registry->router = $router;
$debug = debug::getInstance();
$registry->debug = $debug;
$registry->validateErrors = array();
$router->dispatch();
// Here starts the party
} catch (Exception $e) {
echo $e->getMessage();
exit;
}