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


PHP Connect::__construct方法代碼示例

本文整理匯總了PHP中Connect::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Connect::__construct方法的具體用法?PHP Connect::__construct怎麽用?PHP Connect::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Connect的用法示例。


在下文中一共展示了Connect::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Users

 function Users($email = null, $cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->email = $email;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:7,代碼來源:Users.php

示例2: PaymentMethods

 function PaymentMethods($paymentMethId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->paymentMethId = $paymentMethId;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:7,代碼來源:PaymentMethods.php

示例3: Products

 function Products($productId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->productId = $productId;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:7,代碼來源:Products.php

示例4: Sessions

 function Sessions($sessionId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->sessionId = $sessionId;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:7,代碼來源:Sessions.php

示例5: OrderToProds

 function OrderToProds($orderId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->orderId = $orderId;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:7,代碼來源:OrderToProds.php

示例6: putenv

 function __construct(Auth $auth)
 {
     parent::__construct();
     $this->auth = $auth;
     putenv('LD_LIBRARY_PATH=/home/grilledc/lib');
     putenv('PKG_CONFIG_PATH=/home/grilledc/lib/pkgconfig');
 }
開發者ID:grldchz,項目名稱:grldservice,代碼行數:7,代碼來源:Utils.php

示例7: Categories

 function Categories($categId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->categId = $categId;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:7,代碼來源:Categories.php

示例8: Discounts

 function Discounts($discountId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->discountId = $discountId;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:7,代碼來源:Discounts.php

示例9: Stores

 function Stores($cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->storeName = STORE_NAME;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:7,代碼來源:Stores.php

示例10: CategsToProds

 function CategsToProds($categId = 0, $prodId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->categId = $categId;
     $this->prodId = $prodId;
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:8,代碼來源:CategsToProds.php

示例11: StoreSessionDB

 function StoreSessionDB($cache = 0, $cacheTime = 0, $persistent = 0)
 {
     parent::__construct($persistent);
     $this->cache = $cache;
     $this->cacheTime = $cacheTime;
     if (!session_set_save_handler(array(&$this, 'open'), array(&$this, 'close'), array(&$this, 'read'), array(&$this, 'write'), array(&$this, 'destroy'), array(&$this, 'gc'))) {
         print "Session Handler Failed <br>";
     }
 }
開發者ID:nateirwin,項目名稱:custom-historic,代碼行數:9,代碼來源:StoreSessionDB.php

示例12: __construct2

 public function __construct2(Auth $auth, $content_id)
 {
     parent::__construct();
     $this->auth = $auth;
     $this->content_id = $content_id;
     $this->sortParams = '[{"property":"id","direction":"desc"}]';
     $this->start = "0";
     $this->limit = "10";
 }
開發者ID:grldchz,項目名稱:grldservice,代碼行數:9,代碼來源:Posts.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     if (PHP_SAPI === 'cli') {
         $this->cookie_gcotd = $argv[1];
     } else {
         if (isset($_COOKIE["gcotd"]) && $_COOKIE["gcotd"] != null) {
             $this->cookie_gcotd = $_COOKIE["gcotd"];
         }
     }
 }
開發者ID:grldchz,項目名稱:grldservice,代碼行數:11,代碼來源:Auth.php

示例14: __construct1

 public function __construct1($inId)
 {
     parent::__construct();
     $sql = "select * from contents where id=:inId";
     $stmt = $this->getDb()->prepare($sql);
     $stmt->bindValue(':inId', intval($inId), PDO::PARAM_INT);
     $stmt->execute();
     if ($stmt->rowCount() == 1) {
         $stmtResult = $stmt->fetch(PDO::FETCH_ASSOC);
         $this->populateThis($stmtResult);
     }
 }
開發者ID:grldchz,項目名稱:grldservice,代碼行數:12,代碼來源:Comment.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     if (isset($_POST["username"])) {
         $this->postedusername = strtolower(trim($_POST["username"]));
     }
     if (isset($_POST["email"])) {
         $this->postedemail = strtolower(trim($_POST["email"]));
     }
     if (isset($_POST['g-recaptcha-response']) && $_POST["g-recaptcha-response"] != "") {
         $this->captcha = $_POST["g-recaptcha-response"];
     }
 }
開發者ID:grldchz,項目名稱:grldservice,代碼行數:13,代碼來源:Forgot.php


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