Browse Source

#2099 add get function for BxDolInformer

RomanL 7 years ago
parent
commit
65b5508ebd
1 changed files with 9 additions and 0 deletions
  1. 9 0
      inc/classes/BxDolInformer.php

+ 9 - 0
inc/classes/BxDolInformer.php

@@ -94,6 +94,15 @@ class BxDolInformer extends BxDolFactory implements iBxDolSingleton
     {
         unset($this->_aMessages[$sId]);
     }
+    
+    /**
+     * Get message from informer.
+     * @param $sId - message id
+     */
+    public function get ($sId)
+    {
+        return $this->_aMessages[$sId];
+    }
 
     /**
      * Add permanent messages which are displayed on every page.