예제 #1
0
파일: order.php 프로젝트: JexyRu/Ksenmart
 public function __construct()
 {
     parent::__construct();
     $this->_session = JFactory::getSession();
     $this->_user = KSUsers::getUser();
     $this->context = 'com_ksenmart';
 }
예제 #2
0
파일: cart.php 프로젝트: JexyRu/Ksenmart
 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();
 }
예제 #3
0
파일: catalog.php 프로젝트: JexyRu/Ksenmart
 /**
  * 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);
 }
예제 #4
0
파일: search.php 프로젝트: JexyRu/Ksenmart
 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;
     }
 }
예제 #5
0
파일: profile.php 프로젝트: JexyRu/Ksenmart
 /**
  * KsenMartModelProfile::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     $this->_params = JComponentHelper::getParams('com_ksenmart');
     parent::__construct();
     $this->_limit = $this->_params->get('site_product_limit', 30);
 }
예제 #6
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }