public function __construct($id = 0, $ref = '')
 {
     parent::__construct();
     if ($id > 0) {
         $this->charger_id($id);
     } else {
         if ($ref != '') {
             $this->charger($ref);
         }
     }
     $this->extends[] = new AttachementAdmin();
     $this->setAttachement("image", new ImageFile('produit', $this->id));
     $this->setAttachement("document", new DocumentFile('produit', $this->id));
 }
示例#2
0
文件: Achat.php 项目: Tri125/LogiKek
 public function __construct($tableau)
 {
     $this->nombre = 1;
     parent::__construct($tableau);
 }
示例#3
0
文件: Achat.php 项目: maxeber/eshop
 public function __construct($arr)
 {
     $this->quantites = 1;
     parent::__construct($arr);
 }