Source for file Object.php

Documentation is available at Object.php

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

Documentation generated on Fri, 17 Dec 2004 16:16:24 +0100 by phpDocumentor 1.3.0RC3