Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->_session = JFactory::getSession();
     $this->_user = KSUsers::getUser();
     $this->context = 'com_ksenmart';
 }
Esempio n. 2
0
 public function __construct()
 {
     $this->_session = JFactory::getSession();
     $this->order_id = $this->_session->get('shop_order_id', 0);
     $this->_user = KSUsers::getUser();
     parent::__construct();
     $this->context = 'com_ksenmart';
     $this->getDefaultStates();
 }
Esempio n. 3
0
 /**
  * KsenMartModelcatalog::__construct()
  * 
  * @param mixed $config
  * @return
  */
 public function __construct($config = array())
 {
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array();
     }
     parent::__construct($config);
     $this->getDefaultStates();
     $this->setState('params', $this->_params);
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
     $ajax_search = JRequest::getVar('ajax_search', 0);
     if ($ajax_search) {
         $this->params = new JRegistry();
         $module = JModuleHelper::getModule('km_simple_search');
         if (!empty($module->params)) {
             $this->params->loadString($module->params);
         }
         $this->_limit_relevant = $this->params->get('count_relevants', 3);
         $this->_limit_categories = $this->params->get('count_categories', 1);
         $this->_limit_manufacture = $this->params->get('count_manufactured', 1);
         $this->_limit_products = $this->params->get('count_result', 5);
     } else {
         $this->_limit_relevant = $this->params->get('count_relevants', 3);
         $this->_limit_categories = $this->params->get('count_categories', 1);
         $this->_limit_manufacture = $this->params->get('count_manufactured', 1);
         $this->_limit_products = 0;
     }
 }
Esempio n. 5
0
 /**
  * KsenMartModelProfile::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     $this->_params = JComponentHelper::getParams('com_ksenmart');
     parent::__construct();
     $this->_limit = $this->_params->get('site_product_limit', 30);
 }
Esempio n. 6
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }