diff options
author | Marcus Hüwe <suse-tux@gmx.de> | 2007-01-10 12:25:43 (GMT) |
---|---|---|
committer | Marcus Hüwe <suse-tux@gmx.de> | 2007-01-10 12:25:43 (GMT) |
commit | be6d85b89882630b23401ecdf4f7a646a2e58234 (patch) | |
tree | 068007af5eaae80f91ed2b0355556d7c0ac57b51 /php/admin | |
parent | 1c441d310c7d6f26467b733a68792da576dc1be7 (diff) | |
download | kolab-webadmin-be6d85b89882630b23401ecdf4f7a646a2e58234.tar.gz |
added __toString() method (see issue1558 for details)
Diffstat (limited to 'php/admin')
-rw-r--r-- | php/admin/include/form.class.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/php/admin/include/form.class.php b/php/admin/include/form.class.php index a24a1c9..5185093 100644 --- a/php/admin/include/form.class.php +++ b/php/admin/include/form.class.php @@ -45,6 +45,14 @@ class KolabForm { } } + /* + * this function will be called if an instance of KolabForm will be treated + * as a string + */ + function __toString() { + return sprintf("Debuginformation for class: %s; name: %s; template: %s;", get_class($this), $this->name, $this->template); + } + /*private*/function comment_helper( &$value ) { $ast = ''; if( isset($value['validation'])){ |