'user'), null, array('placeholders' => 'User_')); protected $_loginPageQuery = array(null, array('type' => 'User_Login_')); protected $_role = 'user'; /** * Return auth object * @return App_User_Auth */ public static function getInstance() { if (null === self::$_instance) { self::$_instance = new self(); } return self::$_instance; } public function getSuMode() { return (bool) $this->getSessionValue('suModeEnabled'); } public function setSuMode($flag = true) { $this->setSessionValue('suModeEnabled', (bool) $flag); } public function initECommerce() { if (Qs_SiteMap::getAliasByItem('ECommerce_Cart_')) { $cartObj = new App_ECommerce_Cart_Obj(); $cartObj->setPrimaryKey($cartObj->getCartId()); $cartObj->mergeCart(); } return $this; } }