當前位置: 首頁>>代碼示例>>PHP>>正文


PHP cookie::getInstance方法代碼示例

本文整理匯總了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();
 }
開發者ID:jin123456bat,項目名稱:Framework2.0,代碼行數:9,代碼來源:base.php

示例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();
 }
開發者ID:vyk2rr,項目名稱:FlavorPHP-2.0,代碼行數:10,代碼來源:views.class.php

示例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');
 }
開發者ID:ravenlp,項目名稱:CodiceCMS,代碼行數:11,代碼來源:commentNotify.plugin.php

示例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;
         }
     }
 }
開發者ID:ravenlp,項目名稱:CodiceCMS,代碼行數:17,代碼來源:feedburner.plugin.php

示例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;
}
開發者ID:vyk2rr,項目名稱:FlavorPHP-2.0,代碼行數:31,代碼來源:index.php


注:本文中的cookie::getInstance方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。