aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 7ce4047bb..674a6a8fe 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -22,6 +22,7 @@
abstract class ElggEntity implements
Exportable, // Allow export of data
Importable, // Allow import of data
+ Loggable, // Can events related to this object class be logged
Iterator, // Override foreach behaviour
ArrayAccess // Override for array access
{
@@ -533,6 +534,21 @@
return true;
}
+
+ // SYSTEM LOG INTERFACE ////////////////////////////////////////////////////////////
+
+ /**
+ * Return an identification for the object for storage in the system log.
+ * This id must be an integer.
+ *
+ * @return int
+ */
+ public function getSystemLogID() { return $this->getGUID(); }
+
+ /**
+ * Return the class name of the object.
+ */
+ public function getClassName() { return get_class($this); }
// ITERATOR INTERFACE //////////////////////////////////////////////////////////////
/*