source: Dev/trunk/rdfapi/util/Object.php @ 12

Last change on this file since 12 was 12, checked in by basvannuland, 14 years ago

Added RAP RDF API
Added RDF reader writer for save and load survey

File size: 836 bytes
Line 
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: Object.php 295 2006-06-23 06:45:53Z tgauss $
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?>
Note: See TracBrowser for help on using the repository browser.