本文整理汇总了PHP中product::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP product::__construct方法的具体用法?PHP product::__construct怎么用?PHP product::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类product
的用法示例。
在下文中一共展示了product::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($params = array(), $get_assoc = false, $get_attached = true)
{
global $db;
parent::__construct($params, $get_assoc, $get_attached);
//if (!empty($this->id)) $this->extra_fields = expUnserialize($this->extra_fields);
$this->price = $this->getBasePrice();
}
示例2: __construct
public function __construct($params = array(), $get_assoc = false, $get_attached = true)
{
global $db;
parent::__construct($params, $get_assoc, $get_attached);
$this->price = $this->getBasePrice();
/*if (!empty($this->product_type))
{
$product_type = $this->product_type;
$this->product = new $product_type($this->crosssell_product_id, false, false);
}*/
}
示例3: __construct
public function __construct($params = array(), $get_assoc = true, $get_attached = true)
{
parent::__construct($params, $get_assoc, $get_attached);
// trick this record into looking to the eventregistration table
// and adding it to our data as if it were in the product table with the rest
// of the product data.
$origid = $this->id;
// save the id from the product table
$this->table = $this->product_type;
parent::__construct($this->product_type_id, false, false);
$this->id = $origid;
// put the product table id back.
$this->table = 'product';
$this->tablename = 'product';
}
示例4: __construct
public function __construct($params = array(), $get_assoc = true, $get_attached = true)
{
parent::__construct($params, $get_assoc, $get_attached);
$this->price = '';
}
示例5: __construct
public function __construct(int $pid, string $c_drink, float $size, bool $w_ice)
{
if (check($c_drink) == FALSE) {
die("|| error: invalid parameter(s) (drink) ||");
} else {
parent::__construct(get_price($c_drink, $size, $w_ice), $c_drink);
$this->size = $size;
$this->w_ice = $w_ice;
$this->c_drink = $c_drink;
}
}