HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/administrator/components/com_jevents/fields/jeveventaccess.php
<?php

use Joomla\CMS\Form\FormField;

defined('JPATH_BASE') or die;

jimport('joomla.html.html');
jimport('joomla.form.formfield');

class FormFieldJeveventaccess extends FormField
{

	/**
	 * The form field type.
	 *
	 * @var        string
	 * @since    1.6
	 */
	protected $type = 'Jeveventaccess';

	protected function getLabel()
	{

		$row   = $this->form->jevdata[$this->name]["event"];
		$glist = JEventsHTML::buildAccessSelect(intval($row->access()), 'class="inputbox" size="1"');

		if ($this->getInput() && $glist && strpos($glist, "<input ") === false)
		{
			return parent::getLabel();
		}

		return "";
	}

	/**
	 * Method to get the field input markup.
	 *
	 * @return    string    The field input markup.
	 * @since    1.6
	 */
	protected function getInput()
	{

		$row   = $this->form->jevdata[$this->name]["event"];
		$glist = JEventsHTML::buildAccessSelect(intval($row->access()), 'class="inputbox" size="1"');

		JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
		JEVHelper::ConditionalFields($this->element, $this->form->getName());

		if ($glist)
		{
			return $glist;
		}

		return "";

	}

}

class_alias("FormFieldJeveventaccess", "JFormFieldJeveventaccess");