id = 'Formosite#'.self::$obj_count; $this->path = 'Formosite#'.self::$obj_count; $this->name = $name; $this->pageCount = 0; $this->title = $title; $this->action = ($action == 'self') ? "" : $action; } /* Ajout d'un élément */ function add(FormositeComponent $comp) { if ($comp instanceof Page) { $this->pageCount++; } parent::add($comp); return $comp; } /* Set title */ public function setTitle($title='') { $this->title = $title; return true; } /* Set name */ public function setName($name='') { $this->name = $name; return true; } } ?>