diff options
Diffstat (limited to 'engine/classes/ElggData.php')
-rw-r--r-- | engine/classes/ElggData.php | 26 |
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 |