Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- class JsfilterHelper
- {
- private $_cfg = null;
- private $_errors = array( );
- private $_types = array( );
- private $_fields = array( );
- private $_sort_fields = array(
- 'price' => array(
- 'name' => 'price',
- 'label' => 'MJSF_CFG_SORT_PRICE_LABEL',
- 'title' => 'MJSF_CFG_SORT_PRICE_TITLE'
- ),
- 'name' => array(
- 'name' => 'name',
- 'label' => 'MJSF_CFG_SORT_NAME_LABEL',
- 'title' => 'MJSF_CFG_SORT_NAME_TITLE'
- ),
- 'hits' => array(
- 'name' => 'hits',
- 'label' => 'MJSF_CFG_SORT_HITS_LABEL',
- 'title' => 'MJSF_CFG_SORT_HITS_TITLE'
- ),
- 'date' => array(
- 'name' => 'date',
- 'label' => 'MJSF_CFG_SORT_DATE_LABEL',
- 'title' => 'MJSF_CFG_SORT_DATE_TITLE'
- ),
- 'mnf' => array(
- 'name' => 'mnf',
- 'label' => 'MJSF_CFG_SORT_MNF_LABEL',
- 'title' => 'MJSF_CFG_SORT_MNF_TITLE'
- ),
- 'qnty' => array(
- 'name' => 'qnty',
- 'label' => 'MJSF_CFG_SORT_QNTY_LABEL',
- 'title' => 'MJSF_CFG_SORT_QNTY_TITLE'
- )
- );
- public function __construct()
- {
- $db = JFactory::getDbo( );
- $lang = JFactory::getLanguage( );
- $lang->load( 'mod_jsfilter', JPATH_ROOT );
- $fields = JFolder::files( JPATH_ROOT . '/modules/mod_jsfilter/helper/fields', '.*\\.php' );
- foreach ($fields as $f) {
- $tmp = explode( '.', $f );
- $field = $tmp[0];
- $classname = 'JsfilterField' . ucfirst( $field );
- require_once JPATH_ROOT . '/modules/mod_jsfilter/helper/fields/' . $field . '.php';
- $this->_fields[$field] = new $classname( );
- }
- $types = JFolder::files( JPATH_ROOT . '/modules/mod_jsfilter/helper/types', '.*\\.php' );
- foreach ($types as $t) {
- $tmp = explode( '.', $t );
- $type = $tmp[0];
- $classname = 'JsfilterType' . ucfirst( $type );
- require_once JPATH_ROOT . '/modules/mod_jsfilter/helper/types/' . $type . '.php';
- $this->_types[$type] = new $classname( );
- }
- }
- public function loadConfig(&$cfg)
- {
- $this->_cfg = $cfg;
- }
- public function buildForm()
- {
- $sf = self::getParamsFromRequest( );
- ..................................................................
- ..............................
- ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement