Current Path :
/
home
/
develito
/
public_html
/
modules
/
mod_jevents_filter
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/public_html/modules/mod_jevents_filter/helper.php
<?php /** * JEvents Component for Joomla! 3.x * * @version $Id: helper.php 941 2010-05-20 13:21:57Z geraintedwards $ * @package JEvents * @subpackage Module JEvents Filter * @copyright Copyright (C) 2008-2025 GWESystems Ltd * @license GNU/GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html * @link http://www.gwesystems.com */ // no direct access defined('_JEXEC') or die('Restricted access'); #[\AllowDynamicProperties] class modJeventsFilterHelper { private $params = null; public function __construct($params) { $this->params = $params; // setup for all required function and classes $file = JPATH_SITE . '/components/com_jevents/mod.defines.php'; if (file_exists($file)) { include_once($file); include_once(JEV_LIBS . "/modfunctions.php"); } else { die ("JEvents Calendar\n<br />This module needs the JEvents component"); } // load language constants JEVHelper::loadLanguage('modfilter'); } public function getFilters() { JLoader::register('jevFilterProcessing', JEV_PATH . "/libraries/filters.php"); $pluginsDir = JPATH_ROOT . '/' . 'plugins' . '/' . 'jevents'; $filterlist = explode(",", str_replace(" ", "", $this->params->get('filters', "search"))); foreach ( $filterlist as $index => $filterlistitem ) { if (strpos($filterlistitem, "Customfield:") === 0) { if (in_array("Customfield", $filterlist)) { unset($filterlist[$index]); } else { $filterlist[$index] = "Customfield"; } } } //$filters = jevFilterProcessing::getInstance(array("artist","category","reset"),$pluginsDir.'/'."filters".'/'); $filters = jevFilterProcessing::getInstance($filterlist, $pluginsDir . '/' . "filters" . '/'); return $filters; } }