Пример #1
0
 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
0
 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
0
 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
0
 public function __construct($params = array(), $get_assoc = true, $get_attached = true)
 {
     parent::__construct($params, $get_assoc, $get_attached);
     $this->price = '';
 }
Пример #5
0
 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;
     }
 }