marcus: server/kolab-webadmin/kolab-webadmin/php/admin/include form.class.php, 1.28, 1.29
cvs at kolab.org
cvs at kolab.org
Wed Jan 10 13:25:45 CET 2007
Author: marcus
Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/php/admin/include
In directory doto:/tmp/cvs-serv31927/php/admin/include
Modified Files:
form.class.php
Log Message:
added __toString() method (see issue1558 for details)
Index: form.class.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/php/admin/include/form.class.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- form.class.php 8 Dec 2006 22:02:35 -0000 1.28
+++ form.class.php 10 Jan 2007 12:25:43 -0000 1.29
@@ -45,6 +45,14 @@
}
}
+ /*
+ * 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'])){
More information about the commits
mailing list