public function __construct() { parent::__construct(); $this->_session = JFactory::getSession(); $this->_user = KSUsers::getUser(); $this->context = 'com_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(); }
/** * 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); }
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; } }
/** * KsenMartModelProfile::__construct() * * @return */ public function __construct() { $this->_params = JComponentHelper::getParams('com_ksenmart'); parent::__construct(); $this->_limit = $this->_params->get('site_product_limit', 30); }
public function __construct($config = array()) { parent::__construct($config); }