Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
01 Aug 2002 13:46:32postnuke_official/html/includespnException.php,1.6,1.7Mike
 add procedural functions to retrieve exception value in string or HTML format

Update of /home/cvsroot/postnuke_official/html/includes
In directory ns7.hostnuke.net:/tmp/cvs-serv27140

Modified Files:
	pnException.php 
Log Message:
add procedural functions to retrieve exception value in string or HTML format


Index: pnException.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/includes/pnException.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pnException.php	21 Jul 2002 22:53:04 -0000	1.6
--- pnException.php	1 Aug 2002 13:46:30 -0000	1.7
***************
*** 173,176 ****
--- 173,212 ----
  
  /**
+  * get exception value in String format
+  * @returns string
+  * @return a string containing the value information for an exception. If
+  *         invoked when no exception or an exception for which there is no
+  *         associated information was raised, an empty string is returned.
+  */
+ function pnExceptionValueString()
+ {
+     global $pnException_Param;
+     if (isset($pnException_Param) && is_object($pnException_Param) &&
+         method_exists($pnException_Param,'toString')) {
+         return $pnException_Param->toString();
+     } else {
+         return '';
+     }
+ }
+ 
+ /**
+  * get exception value in HTML format
+  * @returns string
+  * @return a string containing the value information for an exception. If
+  *         invoked when no exception or an exception for which there is no
+  *         associated information was raised, an empty string is returned.
+  */
+ function pnExceptionValueHTML()
+ {
+     global $pnException_Param;
+     if (isset($pnException_Param) && is_object($pnException_Param) &&
+         method_exists($pnException_Param,'toHTML')) {
+         return $pnException_Param->toHTML();
+     } else {
+         return '';
+     }
+ }
+ 
+ /**
   * reset current exception status, it's a shortcut for pnExceptionSet(PN_NO_EXCEPTION, NULL, NULL)
   * @note you must always call this function when you handle a catched exception or equivalently you don't throw the exception back to the caller


Directory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3