summaryrefslogtreecommitdiff
path: root/inc/events.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-02-16 16:35:34 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-02-16 16:35:34 +0000
commitadb80b0288b9e3c7c4576056d5e1d0dc77bcb842 (patch)
tree5a4c1720f941756cd7bfc3027c0f4686c2554abd /inc/events.php
parentb95f73d374c43006a82eddd35b630bd10a9fbb5f (diff)
downloadrpg-adb80b0288b9e3c7c4576056d5e1d0dc77bcb842.tar.gz
rpg-adb80b0288b9e3c7c4576056d5e1d0dc77bcb842.tar.bz2
An event object used as a string will return its name - the event name
Diffstat (limited to 'inc/events.php')
-rw-r--r--inc/events.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/events.php b/inc/events.php
index 9c3169b34..44ccdb8a6 100644
--- a/inc/events.php
+++ b/inc/events.php
@@ -32,6 +32,10 @@ class Doku_Event {
}
+ function __toString() {
+ return $this->name;
+ }
+
/**
* advise functions
*