summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
Diffstat (limited to 'php')
-rw-r--r--php/admin/include/form.class.php8
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'])){