eyemaginesrobbins

magento-b2b-session

Aug 7th, 2013
110
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * EYEMAGINE - The leading Magento Solution Partner
  4.  *
  5.  * B2B Customer Restrictions
  6.  *
  7.  * @author    EYEMAGINE <magento@eyemaginetech.com>
  8.  * @category  Eyemagine
  9.  * @package   Eyemagine_B2b
  10.  * @copyright Copyright (c) 2013 EYEMAGINE Technology, LLC (http://www.eyemaginetech.com)
  11.  * @license   http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  12.  */
  13.  
  14. class Eyemagine_B2b_Model_Session extends Mage_Core_Model_Session
  15. {
  16.     /**
  17.      * @var bool|null $_isErrorMessageAdded
  18.      */
  19.     protected $_isErrorMessageAdded = null;
  20.     /**
  21.      * Getter/Setter
  22.      *
  23.      * @param bool|null $val
  24.      *
  25.      * @return bool
  26.      */
  27.     public function isErrorMessageAdded($val = null)
  28.     {
  29.         if (!is_null($val)) {
  30.             $this->_isErrorMessageAdded = $val;
  31.         }
  32.         return $this->_isErrorMessageAdded;
  33.     }
  34.     /**
  35.      * Unset all data associated with object
  36.      */
  37.     public function unsetAll()
  38.     {
  39.         parent::unsetAll();
  40.         $this->_isErrorMessageAdded = null;
  41.     }
  42. }
RAW Paste Data