TYPO3 CMS  TYPO3_6-2
SelectJsonElement.php
Go to the documentation of this file.
1 <?php
3 
23 
29  public $xtype = 'typo3-form-wizard-elements-basic-select';
30 
36  public $configuration = array(
37  'attributes' => array(),
38  'filters' => array(),
39  'label' => array(
40  'value' => ''
41  ),
42  'layout' => 'front',
43  'options' => array(),
44  'validation' => array()
45  );
46 
52  protected $allowedAttributes = array(
53  'class',
54  'disabled',
55  'id',
56  'lang',
57  'multiple',
58  'name',
59  'size',
60  'style',
61  'tabindex',
62  'title'
63  );
64 
65  protected $childElementsAllowed = FALSE;
66 
74  public function setParameters(array $parameters) {
75  parent::setParameters($parameters);
76  $this->setOptions($parameters);
77  }
78 
85  protected function setOptions(array $parameters) {
86  if (is_array($parameters)) {
88  foreach ($keys as $key) {
89  $class = $parameters[$key];
90  if ((int)$key && strpos($key, '.') === FALSE) {
91  if (isset($parameters[$key . '.']) && $class === 'OPTION') {
92  $childElementArguments = $parameters[$key . '.'];
93  if (isset($childElementArguments['selected'])) {
94  $childElementArguments['attributes']['selected'] = $childElementArguments['selected'];
95  unset($childElementArguments['selected']);
96  }
97  $this->configuration['options'][] = $childElementArguments;
98  }
99  }
100  }
101  }
102  }
103 
104 }
$parameters
Definition: FileDumpEID.php:15
static sortedKeyList($setupArr, $acceptOnlyProperties=FALSE)