|
From: <cw...@us...> - 2007-06-20 21:19:10
|
Revision: 453
http://rdfapi-php.svn.sourceforge.net/rdfapi-php/?rev=453&view=rev
Author: cweiske
Date: 2007-06-20 14:19:09 -0700 (Wed, 20 Jun 2007)
Log Message:
-----------
Adding string magic
Modified Paths:
--------------
trunk/rdfapi-php/api/model/Blanknode.php
trunk/rdfapi-php/api/model/Literal.php
trunk/rdfapi-php/api/model/Resource.php
Modified: trunk/rdfapi-php/api/model/Blanknode.php
===================================================================
--- trunk/rdfapi-php/api/model/Blanknode.php 2007-06-20 10:33:05 UTC (rev 452)
+++ trunk/rdfapi-php/api/model/Blanknode.php 2007-06-20 21:19:09 UTC (rev 453)
@@ -104,6 +104,16 @@
return false;
}
+
+ /**
+ * Doing string magic in PHP5
+ * @return string String representation of this Blank Node
+ */
+ function __toString()
+ {
+ return $this->toString();
+ }
+
} // end: BlankNode
Modified: trunk/rdfapi-php/api/model/Literal.php
===================================================================
--- trunk/rdfapi-php/api/model/Literal.php 2007-06-20 10:33:05 UTC (rev 452)
+++ trunk/rdfapi-php/api/model/Literal.php 2007-06-20 21:19:09 UTC (rev 453)
@@ -167,6 +167,17 @@
}
+
+ /**
+ * Doing string magic in PHP5
+ * @return string String representation of this Literal
+ */
+ function __toString()
+ {
+ return $this->toString();
+ }
+
+
} // end: Literal
?>
\ No newline at end of file
Modified: trunk/rdfapi-php/api/model/Resource.php
===================================================================
--- trunk/rdfapi-php/api/model/Resource.php 2007-06-20 10:33:05 UTC (rev 452)
+++ trunk/rdfapi-php/api/model/Resource.php 2007-06-20 21:19:09 UTC (rev 453)
@@ -126,6 +126,17 @@
}
+
+
+ /**
+ * Doing string magic in PHP5
+ * @return string String representation of this Resource
+ */
+ function __toString()
+ {
+ return $this->toString();
+ }
+
}
?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|