Пример #1
0
 /**
  * @inheritdoc
  */
 protected function normaliseRenderOptions()
 {
     $renderOptions = parent::normaliseRenderOptions();
     if ($this->getField()->isMultiple()) {
         $renderOptions[self::RENDER_OPTION_KEY_ATTRIBUTES]['multiple'] = 'multiple';
     } elseif (isset($attributes['multiple'])) {
         unset($renderOptions[self::RENDER_OPTION_KEY_ATTRIBUTES]['multiple']);
     }
     return $renderOptions;
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 protected function normaliseRenderOptions()
 {
     return ArrayUtilities::combine(parent::normaliseRenderOptions(), array(self::RENDER_OPTION_KEY_ATTRIBUTES => array('type' => $this->getField()->getType() ?: 'text')));
 }
Пример #3
0
 protected function normaliseRenderOptions()
 {
     return ArrayUtilities::combine(array(self::RENDER_OPTION_KEY_ERROR_WRAPPER_ELEMENT_NAME => 'div', self::RENDER_OPTION_KEY_ERROR_WRAPPER_ATTRIBUTES => array()), parent::normaliseRenderOptions());
 }
 /**
  * @inheritdoc
  */
 protected function normaliseRenderOptions()
 {
     return ArrayUtilities::combine(array(self::RENDER_OPTION_KEY_OUTER_WRAPPER_ELEMENT_NAME => 'div', self::RENDER_OPTION_KEY_OUTER_WRAPPER_ATTRIBUTES => array('id' => sprintf('%s-container', $this->getField()->getName()), 'class' => sprintf('multiple-input-container %s-container', $this->getField()->getType())), self::RENDER_OPTION_KEY_INNER_WRAPPER_ELEMENT_NAME => 'div', self::RENDER_OPTION_KEY_INNER_WRAPPER_ATTRIBUTES => array(), self::RENDER_OPTION_KEY_INNER_WRAPPER_ID_PREFIX => 'value', self::RENDER_OPTION_KEY_LABELS_FIRST => false), parent::normaliseRenderOptions());
 }
Пример #5
0
 /**
  * @inheritdoc
  */
 protected function normaliseRenderOptions()
 {
     return ArrayUtilities::combine(array(self::RENDER_OPTION_KEY_MARKER_SEPARATOR => ''), parent::normaliseRenderOptions());
 }
Пример #6
0
 /**
  * @inheritdoc
  */
 protected function normaliseRenderOptions()
 {
     return ArrayUtilities::combine(parent::normaliseRenderOptions(), array(self::RENDER_OPTION_KEY_ATTRIBUTES => array('rows' => $this->getField()->getRows(), 'cols' => $this->getField()->getCols())));
 }