/**
  * Method to get the field input markup for check boxes.
  *
  * @return string The field input markup.
  *
  * @since       1.0.0
  */
 protected function getInput()
 {
     // Get the field options.
     $options = $this->getOptions();
     if (empty($options)) {
         return '<span class="readonly">' . JText::_('COM_FIELDSANDFILTERS_ERROR_FIELD_VALUES_EMPTY') . '</span>';
     }
     return parent::getInput();
 }
Ejemplo n.º 2
0
 /**
  * Get the rendering of this field type for static display, e.g. in a single
  * item view (typically a "read" task).
  *
  * @since 2.0
  *
  * @return  string  The field HTML
  */
 public function getInput()
 {
     // Used for J! 2.5 compatibility
     $this->value = !is_array($this->value) ? explode(',', $this->value) : $this->value;
     return parent::getInput();
 }
Ejemplo n.º 3
0
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     return parent::getInput();
 }