aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/relationships.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/relationships.php')
-rw-r--r--engine/lib/relationships.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php
index 519f28566..5b9627860 100644
--- a/engine/lib/relationships.php
+++ b/engine/lib/relationships.php
@@ -21,6 +21,7 @@
class ElggRelationship implements
Importable,
Exportable,
+ Loggable, // Can events related to this object class be logged
Iterator, // Override foreach behaviour
ArrayAccess // Override for array access
{
@@ -168,6 +169,21 @@
}
}
+ // 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->id; }
+
+ /**
+ * Return the class name of the object.
+ */
+ public function getClassName() { return get_class($this); }
+
// ITERATOR INTERFACE //////////////////////////////////////////////////////////////
/*
* This lets an entity's attributes be displayed using foreach as a normal array.