TYPO3 CMS  TYPO3_6-2
NameJsonElement.php
Go to the documentation of this file.
1 <?php
3 
23 
29  public $xtype = 'typo3-form-wizard-elements-predefined-name';
30 
36  public $configuration = array(
37  'attributes' => array(),
38  'legend' => array(
39  'value' => ''
40  ),
41  'various' => array(
42  'prefix' => FALSE,
43  'suffix' => FALSE,
44  'middleName' => FALSE
45  )
46  );
47 
53  protected $allowedAttributes = array(
54  'class',
55  'dir',
56  'id',
57  'lang',
58  'style'
59  );
60 
68  public function setParameters(array $parameters) {
69  parent::setParameters($parameters);
70  $this->setVarious($parameters);
71  }
72 
82  protected function setVarious(array $parameters) {
83  if (is_array($parameters)) {
85  foreach ($keys as $key) {
86  $class = $parameters[$key];
87  if ((int)$key && strpos($key, '.') === FALSE) {
88  if (isset($parameters[$key . '.'])) {
89  $childElementArguments = $parameters[$key . '.'];
90  if (in_array($childElementArguments['name'], array('prefix', 'suffix', 'middleName'))) {
91  $this->configuration['various'][$childElementArguments['name']] = TRUE;
92  }
93  }
94  }
95  }
96  }
97  }
98 
99 }
$parameters
Definition: FileDumpEID.php:15
static sortedKeyList($setupArr, $acceptOnlyProperties=FALSE)