label = $fieldLabel; $this->type = $fieldType; $this->value = $fieldValue; $this->defaultValue = $this->value; $this->name = $fieldName; $this->class = ($fieldClass) ? $fieldClass : 'elem_'.$this->type; $this->info = $fieldInfo; $this->validIf = $fieldValidIf; $this->okValues = $fieldOkValues; $this->required = $fieldRequired; $this->disabled = $fieldDisabled; $this->toBeSaved = $toBeSaved; $this->infobulle = $fieldInfobulle; $this->status = 'off'; } /*#*/ function add(FormositeComponent $comp) { return $comp; } function remove(FormositeComponent $comp) { return true; } function number() { return 1; } function nextChildId() { return 0; } function getId() { return $this->id; } function getPath() { return $this->path; } function output($level = 0) { $pad = $this->pad($level); echo "{$pad} [niv. {$level} / leaf] "; if (!is_null($this->id)) { print "{$this->id} ({$this->label})\n
"; } } function accept(FormositeVisitor $visitor, $level = 1) { $visitor->visit($this, $level); } } ?>