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(); }
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)); }
/** * 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); }
/** * 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; }