public function __construct($params = null) { parent::__construct($params); if (!waRequest::isXMLHttpRequest()) { $this->setLayout(new shopFrontendLayout()); } }
public function __construct($params = null) { parent::__construct($params); $this->hash = $this->getHash(); if (!$this->hash) { if (waRequest::get('sort')) { $this->getUser()->setSettings('shop', 'all:sort', waRequest::get('sort') . ' ' . waRequest::get('order', 'desc')); } else { $sort = $this->getUser()->getSettings('shop', 'all:sort'); if ($sort) { $sort = explode(' ', $sort); $this->sort = $_GET['sort'] = $sort[0]; $this->order = $_GET['order'] = $sort[1]; } } } $this->collection = $this->getCollection($this->hash ? implode('/', $this->hash) : ''); $info = $this->collection->getInfo(); list($this->sort, $this->order) = $this->collection->getOrderBy(); if ($info['hash'] == 'category' && empty($info['id'])) { throw new waException("Unkown category", 404); } if ($info['hash'] == 'set' && empty($info['id'])) { throw new waException("Unknown list", 404); } }
public function __construct($params = null) { parent::__construct($params); if (!waRequest::isXMLHttpRequest()) { $this->setLayout(new photosDefaultFrontendLayout()); } $this->view->getHelper()->globals($this->getRequest()->param()); return $this; }
function __construct() { $this->user = $this->getUser(); $this->app_id = waSystem::getInstance()->getApp(); if (!$this->user->isAdmin($this->app_id) && !$this->user->getRights($this->app_id)) { throw new waException(null, 403); } parent::__construct(); }
function __construct() { $this->user = $this->getUser(); $this->app_id = waSystem::getInstance()->getApp(); if (!$this->user->isAdmin($this->app_id) && !$this->user->getRights($this->app_id)) { throw new waException(null, 403); } $this->allow_add = $this->user->getRights($this->app_id, 'add_sheet'); $this->cache_time = wa()->getConfig()->isDebug() ? 0 : 1800; $this->cache_id = $this->allow_add ? 'Y' : 'N'; parent::__construct(); }
public function __construct($params = null) { $this->settings_model = new waContactSettingsModel(); parent::__construct($params); }
public function __construct($params = null) { $this->order_model = new shopOrderModel(); return parent::__construct($params); }
public function __construct($params = null) { $this->product_pages_model = new shopProductPagesModel(); parent::__construct($params); }
public function __construct($params = null) { parent::__construct($params); $this->product_model = new shopProductModel(); }
public function __construct($params = null) { parent::__construct($params); $this->model = new shopOrderModel(); $this->collection = new shopOrdersCollection($this->getHash()); }
public function __construct($params = null) { parent::__construct($params); $this->template = 'templates/actions/dialog/DialogConfirm.html'; }