parentId = $parentId; $this->id = get_class($this).'#'.$id; $this->path = $parentPath.'_'.get_class($this).'#'.$id; } public function pad($level) { $ret = ""; if ($level > 0) { for ($x = 0; $x < $level; $x++) { $ret .= "       "; } $ret .= "\____"; } return $ret; } public function accept(FormositeVisitor $visitor, $level = 1) { $visitor->visit($this, $level); } } ?>