Пример #1
0
 /**
  * Set the attributes according to the allowed attributes of this element
  *
  * @param array $parameters Configuration array
  * @return void
  */
 protected function setAttributes(array $parameters)
 {
     // preserve backward compatibility by rewriting data to text
     if (isset($parameters['data'])) {
         $this->configuration['attributes']['text'] = $parameters['data'];
     }
     parent::setAttributes($parameters);
 }
Пример #2
0
 /**
  * Set all the parameters for this object
  *
  * @param array $parameters Configuration array
  * @return void
  * @see \TYPO3\CMS\Form\Domain\Model\Json\AbstractJsonElement::setParameters()
  */
 public function setParameters(array $parameters)
 {
     parent::setParameters($parameters);
     $this->setVarious($parameters);
 }
 /**
  * Add child object to this element
  *
  * @param AbstractJsonElement $parentElement The parent object
  * @param string $class Type of element
  * @param array $arguments Configuration array
  * @return void
  */
 public function addElement(AbstractJsonElement $parentElement, $class, array $arguments)
 {
     $element = $this->createElement($class, $arguments);
     $parentElement->addElement($element);
 }
 /**
  * Add child object to this element
  *
  * @param \TYPO3\CMS\Form\Domain\Model\Json\AbstractJsonElement $parentElement The parent object
  * @param string $class Type of element
  * @param array $arguments Configuration array
  * @return void
  */
 public function addElement(\TYPO3\CMS\Form\Domain\Model\Json\AbstractJsonElement $parentElement, $class, array $arguments)
 {
     try {
         $element = $this->createElement($class, $arguments);
         $parentElement->addElement($element);
     } catch (\RuntimeException $exception) {
         // Catch missing classes or element types
         // There are elements that can be used the
         // TypoScript-like declaration, which don't
         // have a counterpart in the ExtJS wizard.
     }
 }
 /**
  * Set the attributes according to the allowed attributes of this element
  *
  * @param array $parameters Configuration array
  * @return void
  */
 protected function setAttributes(array $parameters)
 {
     parent::setAttributes($parameters);
 }
 /**
  * Add child object to this element
  *
  * @param \TYPO3\CMS\Form\Domain\Model\Json\AbstractJsonElement $parentElement The parent object
  * @param string $class Type of element
  * @param array $arguments Configuration array
  * @return void
  */
 public function addElement(\TYPO3\CMS\Form\Domain\Model\Json\AbstractJsonElement $parentElement, $class, array $arguments)
 {
     $element = $this->createElement($class, $arguments);
     $parentElement->addElement($element);
 }