public function __construct($id = 0) { parent::__construct(); if ($id) { $this->charger_id($id); } $this->extends[] = new AttachementAdmin(); $this->setAttachement("image", new ImageFile('rubrique', $this->id)); $this->setAttachement("document", new DocumentFile('rubrique', $this->id)); }