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.  *
  12.  * @version  $Id: fsource_utility__utilObject.php.html 443 2007-06-01 16:25:38Z cax $
  13.  * @author Chris Bizer <chris@bizer.de>
  14.  *
  15.  * @abstract
  16.  * @package utility
  17.  *
  18.  ***/
  19.  class Object {
  20.  
  21.   /**
  22.    * Serializes a object into a string
  23.    *
  24.    * @access    public
  25.    * @return    string 
  26.    */    
  27.     function toString({
  28.         $objectvars get_object_vars($this);
  29.         foreach($objectvars as $key => $value
  30.             $content .= $key ."='"$value"'; ";
  31.         return "Instance of " get_class($this."; Properties: "$content;
  32.     }
  33.  
  34.  }
  35.  
  36.  
  37. ?>

Documentation generated on Fri, 1 Jun 2007 16:50:04 +0200 by phpDocumentor 1.3.2