diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-23 10:38:02 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-23 10:38:02 +0000 |
commit | f5c0093da9c466df97e0049b4dc4251e12f04faf (patch) | |
tree | c7ae28f30c3d112192b973ffc9c480d7bd0a8568 /engine/lib/relationships.php | |
parent | d28d94b3a8e19ba3cbf79db042d6f786f50e27b2 (diff) | |
download | elgg-f5c0093da9c466df97e0049b4dc4251e12f04faf.tar.gz elgg-f5c0093da9c466df97e0049b4dc4251e12f04faf.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* System log event code
git-svn-id: https://code.elgg.org/elgg/trunk@691 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/relationships.php')
-rw-r--r-- | engine/lib/relationships.php | 16 |
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. |