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)); }
public function __construct($tableau) { $this->nombre = 1; parent::__construct($tableau); }
public function __construct($arr) { $this->quantites = 1; parent::__construct($arr); }