[Jaws-commits] r9758 - trunk/jaws/html/include/Jaws

afz at jaws-project.com afz at jaws-project.com
Fri Oct 31 20:16:26 UTC 2008


Author: afz
Date: 2008-10-31 20:16:26 +0000 (Fri, 31 Oct 2008)
New Revision: 9758

Modified:
   trunk/jaws/html/include/Jaws/Session.php
Log:
extend Push/Pop simple message

Modified: trunk/jaws/html/include/Jaws/Session.php
===================================================================
--- trunk/jaws/html/include/Jaws/Session.php	2008-10-31 20:15:29 UTC (rev 9757)
+++ trunk/jaws/html/include/Jaws/Session.php	2008-10-31 20:16:26 UTC (rev 9758)
@@ -523,9 +523,9 @@
      * @access  public
      * @param   string  $msg    Response's message
      */
-    function PushSimpleResponse($msg)
+    function PushSimpleResponse($msg, $resource = 'SimpleResponse')
     {
-        $this->SetAttribute('SimpleResponse', $msg);
+        $this->SetAttribute($resource, $msg);
     }
 
     /**
@@ -534,10 +534,10 @@
      * @access  public
      * @return  string  Last simple response
      */
-    function PopSimpleResponse()
+    function PopSimpleResponse($resource = 'SimpleResponse')
     {
-        $response = $this->GetAttribute('SimpleResponse');
-        $this->DeleteAttribute('SimpleResponse');
+        $response = $this->GetAttribute($resource);
+        $this->DeleteAttribute($resource);
         if (empty($response)) {
             return false;
         }



More information about the Jaws-commits mailing list