Esempio n. 1
0
 /**
  * Connects a component with the form handler instance
  * @param Component $component The form component to add
  */
 public function addComponent(Component $component)
 {
     $component->setParentComponent($this);
     $component->setFormComponent($this->formComponent);
     $this->components[$component->getName()] = $component;
     // Set value if there is one
     $component->setRequestData(is_array($this->inputData) && array_key_exists($component->getName(), $this->inputData) ? $this->inputData[$component->getName()] : null);
 }