[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13430] cache: new function
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [13430] cache: new function |
Date: |
Sun, 14 Jun 2015 17:33:37 +0000 |
Revision: 13430
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13430
Author: sigurdne
Date: 2015-06-14 17:33:35 +0000 (Sun, 14 Jun 2015)
Log Message:
-----------
cache: new function
Modified Paths:
--------------
trunk/phpgwapi/inc/class.cache.inc.php
Modified: trunk/phpgwapi/inc/class.cache.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.cache.inc.php 2015-06-13 18:30:54 UTC (rev
13429)
+++ trunk/phpgwapi/inc/class.cache.inc.php 2015-06-14 17:33:35 UTC (rev
13430)
@@ -596,4 +596,20 @@
return !!self::session_set('phpgwapi',
'phpgw_messages', $receipt);
}
+
+ /**
+ * GET system message from the session cache
+ *
+ * @param bool clear flag
+ * @return array containing messages
+ */
+ public static function message_get($clear = false)
+ {
+ $messages = self::session_get('phpgwapi',
'phpgw_messages');
+ if($clear)
+ {
+ self::session_clear('phpgwapi',
'phpgw_messages');
+ }
+ return $messages;
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13430] cache: new function,
Sigurd Nes <=