aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggData.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 23:53:57 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 23:53:57 +0000
commit09f229f4664ed51dfd06d545db2f32bca3b9acf2 (patch)
tree5e4e745bc103068b1769ab673c84ddf4c5a653fd /engine/classes/ElggData.php
parent1ebe92a96d5543e5d2ddcb1b7ca6e735962aaaef (diff)
downloadelgg-09f229f4664ed51dfd06d545db2f32bca3b9acf2.tar.gz
elgg-09f229f4664ed51dfd06d545db2f32bca3b9acf2.tar.bz2
Refs #2597: Pulled Loggable functions with identical implementations into ElggData
git-svn-id: http://code.elgg.org/elgg/trunk@7155 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggData.php')
-rw-r--r--engine/classes/ElggData.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/engine/classes/ElggData.php b/engine/classes/ElggData.php
index f200a7c21..a206964fa 100644
--- a/engine/classes/ElggData.php
+++ b/engine/classes/ElggData.php
@@ -1,8 +1,34 @@
<?php
abstract class ElggData implements
+ Loggable, // Can events related to this object class be logged
Iterator, // Override foreach behaviour
ArrayAccess // Override for array access
{
+
+
+
+ /*
+ * SYSTEM LOG INTERFACE
+ */
+
+ /**
+ * Return the class name of the object.
+ *
+ * @return string
+ */
+ public function getClassName() {
+ return get_class($this);
+ }
+
+ /**
+ * Return the GUID of the owner of this object.
+ *
+ * @return int
+ */
+ public function getObjectOwnerGUID() {
+ return $this->owner_guid;
+ }
+
/**
* The main attributes of an entity.
* Holds attributes to save to database