anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00215
[Branch ~uws/anewt/anewt.uws] Rev 1755: [core] Rename AnewtDateTime::render into __toString()
------------------------------------------------------------
revno: 1755
committer: Wouter Bolsterlee <uws@xxxxxxxxx>
branch nick: anewt.uws
timestamp: Tue 2010-02-16 01:06:07 +0100
message:
[core] Rename AnewtDateTime::render into __toString()
This is more generic and hence more useful.
modified:
core/datetime.lib.php
--
lp:anewt
https://code.launchpad.net/~uws/anewt/anewt.uws
Your team Anewt developers is subscribed to branch lp:anewt.
To unsubscribe from this branch go to https://code.launchpad.net/~uws/anewt/anewt.uws/+edit-subscription.
=== modified file 'core/datetime.lib.php'
--- core/datetime.lib.php 2009-10-20 21:34:36 +0000
+++ core/datetime.lib.php 2010-02-16 00:06:07 +0000
@@ -106,13 +106,12 @@
}
/**
- * Renders this object to a string. This method makes AnewtDateTimeAtom conform
- * to the "renderable" interface.
+ * Renders this object to a string.
*
* \return
* A formatted string.
*/
- function render()
+ function __toString()
{
return AnewtDateTime::iso8601($this);
}