Source for file Object.php

Documentation is available at Object.php

  1. <?php
  2.  
  3. // ----------------------------------------------------------------------------------
  4. // Class: Object
  5. // ----------------------------------------------------------------------------------
  6.  
  7. /**
  8. * An abstract object.
  9. * Root object with some general methods, that should be overloaded.
  10. *
  11. * <BR><BR>
  12. * History:<UL>
  13. * <li>09-10-2002 : First version of this class.</li>
  14. * </UL>
  15. *
  16. *
  17. * @version V0.9.3
  18. * @author Chris Bizer <chris@bizer.de>
  19. *
  20. * @abstract
  21. * @package utility
  22. *
  23. */
  24. class Object {
  25.  
  26. /**
  27. * Serializes a object into a string
  28. *
  29. * @access public
  30. * @return string
  31. */
  32. function toString() {
  33. $objectvars = get_object_vars($this);
  34. foreach($objectvars as $key => $value)
  35. $content .= $key ."=''". $value. "''; ";
  36. return "Instance of " . get_class($this) ."; Properties: ". $content;
  37. }
  38.  
  39. }
  40.  
  41.  
  42. ?>

Documentation generated on Fri, 13 Jan 2006 07:48:44 +0100 by phpDocumentor 1.3.0RC4