R30474 - in /branches/etemplate2/etemplate/inc: class.etemplate_input.inc.php class.etemplate_widget.inc.php

Author: nathangray
New Revision: 30474

URL: http://www.egroupware.org/viewvc/egroupware?rev=30474&view=rev
Log:
Add __toString() to help with debugging

Modified:
branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php
branches/etemplate2/etemplate/inc/class.etemplate_widget.inc.php

Modified: branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php?rev=30474&r1=30473&r2=30474&view=diff

— branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php (original)
+++ branches/etemplate2/etemplate/inc/class.etemplate_input.inc.php Tue Jun 1 12:09:25 2010
@@ -246,6 +246,16 @@
}
}
return $this->form_name;

  • }
  • /**
    • Get a string representation for debugging
    • @return string
  • */
  • public function __toString()
  • {
  •   return parent::__toString() . ' Name=' . $this->name . ' Value=' . $this->value;
    
    }
    }

Modified: branches/etemplate2/etemplate/inc/class.etemplate_widget.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/branches/etemplate2/etemplate/inc/class.etemplate_widget.inc.php?rev=30474&r1=30473&r2=30474&view=diff

— branches/etemplate2/etemplate/inc/class.etemplate_widget.inc.php (original)
+++ branches/etemplate2/etemplate/inc/class.etemplate_widget.inc.php Tue Jun 1 12:09:25 2010
@@ -724,6 +724,16 @@
{
return $this->form_name = $this->parent ? $this->parent->formName() : ‘’;
}
+

  • /**
    • Get a string representation for debugging
    • @return string
  • */
  • public function __toString()
  • {
  •   return get_class($this) . '[' . $this->type . '] ID=' . $this->id;
    
  • }
    }

/**



eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs