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