TYPO3 CMS  TYPO3_6-2
HeaderJsonElement.php
Go to the documentation of this file.
1 <?php
3 
23 
29  public $xtype = 'typo3-form-wizard-elements-content-header';
30 
36  public $configuration = array(
37  'attributes' => array(),
38  'various' => array(
39  'headingSize' => 'h1',
40  'content' => ''
41  )
42  );
43 
49  protected $allowedAttributes = array(
50  'class',
51  'dir',
52  'id',
53  'lang',
54  'style',
55  'title'
56  );
57 
65  public function setParameters(array $parameters) {
66  parent::setParameters($parameters);
67  $this->setVarious($parameters);
68  }
69 
78  protected function setVarious(array $parameters) {
79  if (isset($parameters['headingSize'])) {
80  if (preg_match('#^h[1-5]$#', $parameters['headingSize'])) {
81  $this->configuration['various']['headingSize'] = $parameters['headingSize'];
82  }
83  }
84  if (isset($parameters['content'])) {
85  $this->configuration['various']['content'] = $parameters['content'];
86  }
87  }
88 
89 }
$parameters
Definition: FileDumpEID.php:15