예제 #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
파일: search.php 프로젝트: JexyRu/Ksenmart
 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
파일: 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);
 }
예제 #5
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
예제 #6
0
파일: catalog.php 프로젝트: JexyRu/Ksenmart
 /**
  * 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;
 }