| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/rescommittee/modules/mod_aridatatables/includes/fields/ |
Upload File : |
<?php
/*
* ARI Framework Lite
*
* @package ARI Framework Lite
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('_JEXEC') or die ('Restricted access');
require_once dirname(__FILE__) . '/../kernel/class.AriKernel.php';
AriKernel::import('Utils.Utils');
AriKernel::import('Parameters.ParametersHelper');
jimport('joomla.html.html');
jimport('joomla.form.formfield');
class JFormFieldFixvalidators extends JFormField
{
protected $type = 'Fixvalidators';
function getInput()
{
$this->_includeAssets();
}
public function getLabel()
{
return '';
}
function _includeAssets()
{
static $loaded;
if ($loaded)
return ;
$uri = $this->_getRootAssetsUri();
$document = JFactory::getDocument();
$document->addScript($uri . 'fixvalidators.js');
$loaded = true;
}
function _getRootAssetsUri()
{
static $uri;
if (!is_null($uri))
return $uri;
$filePath = str_replace(DS == '\\' ? '/' : '\\', DS, dirname(__FILE__));
if (strlen(JPATH_ROOT) > 1)
$filePath = str_replace(JPATH_ROOT, '', $filePath);
$uri = JURI::root(true) . str_replace(DS, '/', $filePath) . '/fixvalidators/';
return $uri;
}
}