diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-02-16 16:35:34 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-02-16 16:35:34 +0000 |
commit | adb80b0288b9e3c7c4576056d5e1d0dc77bcb842 (patch) | |
tree | 5a4c1720f941756cd7bfc3027c0f4686c2554abd /inc/events.php | |
parent | b95f73d374c43006a82eddd35b630bd10a9fbb5f (diff) | |
download | rpg-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.php | 4 |
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 * |