public function setup(&$element, $value, $group = null) { parent::setup($element, $value, $group); $this->joomla_field = new RokCommon_Form_JoomlaFieldWrapper($element, $group, $value, $this->name, $this->id); if ($this->joomla_field === false) { return false; } $this->joomla_field->setRokCommonForm($this->form); return true; }
public function getLabel() { if ($this->container->hasParameter('roksprocket.current_provider')) { /** @var RokSprocket_IProvider $provider */ $provider = $this->container->getParameter('roksprocket.current_provider'); if (!$provider->allowFieldRender($this->type, $this->fieldname, $this->value)) { return ''; } } return parent::getLabel(); }
public function __construct($form = null) { parent::__construct($form); }
/** * Method to get the field name used. * * @param string $fieldName The field element name. * * @return string The field name * * @since 11.1 */ protected function getFieldName($fieldName) { if ($fieldName) { return $fieldName; } else { self::$count = self::$count + 1; return self::$generated_fieldname . self::$count; } }