[Openfirst-cvscommit] SF.net SVN: openfirst: [222] trunk/src/includes/Module.php
Brought to you by:
xtimg
|
From: <ast...@us...> - 2007-06-23 21:36:10
|
Revision: 222
http://svn.sourceforge.net/openfirst/?rev=222&view=rev
Author: astronouth7303
Date: 2007-06-23 14:36:08 -0700 (Sat, 23 Jun 2007)
Log Message:
-----------
Added __toString() for PHP 5.2
Modified Paths:
--------------
trunk/src/includes/Module.php
Modified: trunk/src/includes/Module.php
===================================================================
--- trunk/src/includes/Module.php 2007-04-06 21:53:42 UTC (rev 221)
+++ trunk/src/includes/Module.php 2007-06-23 21:36:08 UTC (rev 222)
@@ -159,6 +159,11 @@
$ogDB->freeResult($res);
}
+ # For PHP 5.2
+ function __toString() {
+ return '<'.get_class($this).' '.$this->mID.' v'.$this->mVersion.' in '.$this->mDir.'>';
+ }
+
/*** STATIC FUNCTIONS ***/
/*static*/ function createFromDir($Dir) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|