当前位置: 首页>>代码示例>>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;未经允许,请勿转载。