本文整理汇总了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;
}
示例2: PaymentMethods
function PaymentMethods($paymentMethId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
{
parent::__construct($persistent);
$this->paymentMethId = $paymentMethId;
$this->cache = $cache;
$this->cacheTime = $cacheTime;
}
示例3: Products
function Products($productId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
{
parent::__construct($persistent);
$this->productId = $productId;
$this->cache = $cache;
$this->cacheTime = $cacheTime;
}
示例4: Sessions
function Sessions($sessionId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
{
parent::__construct($persistent);
$this->sessionId = $sessionId;
$this->cache = $cache;
$this->cacheTime = $cacheTime;
}
示例5: OrderToProds
function OrderToProds($orderId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
{
parent::__construct($persistent);
$this->orderId = $orderId;
$this->cache = $cache;
$this->cacheTime = $cacheTime;
}
示例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');
}
示例7: Categories
function Categories($categId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
{
parent::__construct($persistent);
$this->categId = $categId;
$this->cache = $cache;
$this->cacheTime = $cacheTime;
}
示例8: Discounts
function Discounts($discountId = 0, $cache = 0, $cacheTime = 0, $persistent = 0)
{
parent::__construct($persistent);
$this->discountId = $discountId;
$this->cache = $cache;
$this->cacheTime = $cacheTime;
}
示例9: Stores
function Stores($cache = 0, $cacheTime = 0, $persistent = 0)
{
parent::__construct($persistent);
$this->storeName = STORE_NAME;
$this->cache = $cache;
$this->cacheTime = $cacheTime;
}
示例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;
}
示例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>";
}
}
示例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";
}
示例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"];
}
}
}
示例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);
}
}
示例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"];
}
}