aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/objects.php4
-rw-r--r--index.php3
2 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index 7cf58a848..29441b67c 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -97,7 +97,6 @@
return false;
}
-
/**
* Creates an object
@@ -326,13 +325,12 @@
}
return true;
}
-
/**
* This class represents an Elgg object.
*
*/
- class ElggObject {
+ class ElggObject extends stdClass {
private $attributes = array();
diff --git a/index.php b/index.php
index 7057aadb1..aeea7ff62 100644
--- a/index.php
+++ b/index.php
@@ -23,4 +23,7 @@
get_objects(3,"blog","mammals","are lovely", 7, 2, 1);
+ $obj = new stdClass;
+ $obj->id = 3;
+
?> \ No newline at end of file