示例#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
 protected function populateState($ordering = null, $direction = null)
 {
     $this->onExecuteBefore('populateState', array(&$this));
     parent::populateState($ordering, $direction);
     if (empty($this->_params)) {
         $this->_params = JComponentHelper::getParams('com_ksenmart');
         $this->setState('params', $this->_params);
     }
     $limit = JRequest::getVar('limit', $this->_params->get('site_product_limit', 20));
     $this->setState('list.limit', $limit);
     $limitstart = JRequest::getVar('limitstart', 0);
     $this->setState('list.start', $limitstart);
     $this->onExecuteAfter('populateState', array(&$this));
 }
示例#4
0
 /**
  * KsenMartModelProfile::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     $this->_params = JComponentHelper::getParams('com_ksenmart');
     parent::__construct();
     $this->_limit = $this->_params->get('site_product_limit', 30);
 }
示例#5
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
示例#6
0
 /**
  * KsenMartModelcatalog::getItems()
  * 
  * @return
  */
 public function getItems()
 {
     $this->onExecuteBefore('getItems');
     $items = parent::getItems();
     foreach ($items as &$item) {
         $item = KSMProducts::getProduct($item->id);
     }
     $this->onExecuteAfter('getItems', array(&$items));
     return $items;
 }