TYPO3 CMS  TYPO3_6-2
OptgroupElement.php
Go to the documentation of this file.
1 <?php
3 
23 
29  protected $allowedAttributes = array(
30  'class' => '',
31  'disabled' => '',
32  'id' => '',
33  'label' => 'optgroup',
34  'lang' => '',
35  'style' => '',
36  'title' => ''
37  );
38 
44  protected $mandatoryAttributes = array();
45 
53  public function setParentName($parentName) {
55  foreach ($this->elements as $element) {
56  $element->setParentName($parentName);
57  }
58  return $this;
59  }
60 
67  public function addElement(\TYPO3\CMS\Form\Domain\Model\Element\OptionElement $element) {
68  $this->elements[] = $element;
69  return $this;
70  }
71 
72 }
addElement(\TYPO3\CMS\Form\Domain\Model\Element\OptionElement $element)