Ejemplo n.º 1
0
 /**
  * Add session param
  *
  * @return Mage_Core_Model_Url
  */
 public function addSessionParam()
 {
     $session = Mage::getSingleton('core/session');
     if (!self::$_encryptedSessionId) {
         $helper = Mage::helper('core');
         if (!$helper) {
             return $this;
         }
         self::$_encryptedSessionId = $session->getEncryptedSessionId();
     }
     $this->setQueryParam($session->getSessionIdQueryParam(), self::$_encryptedSessionId);
     return $this;
 }
Ejemplo n.º 2
0
 public function addSessionParam()
 {
     $session = Mage::getSingleton('core/session');
     if (!self::$_encryptedSessionId) {
         $helper = Mage::helper('core');
         if (!$helper) {
             return $this;
         }
         self::$_encryptedSessionId = $session->getEncryptedSessionId();
     }
     $this->setQueryParam(Mage_Core_Model_Session_Abstract::SESSION_ID_QUERY_PARAM, self::$_encryptedSessionId);
     return $this;
 }