From f5c0093da9c466df97e0049b4dc4251e12f04faf Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 23 May 2008 10:38:02 +0000 Subject: Marcus Povey * System log event code git-svn-id: https://code.elgg.org/elgg/trunk@691 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/extender.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'engine/lib/extender.php') diff --git a/engine/lib/extender.php b/engine/lib/extender.php index 5858d6432..a4e8af879 100644 --- a/engine/lib/extender.php +++ b/engine/lib/extender.php @@ -20,6 +20,7 @@ */ abstract class ElggExtender implements Exportable, + Loggable, // Can events related to this object class be logged Iterator, // Override foreach behaviour ArrayAccess // Override for array access { @@ -130,6 +131,21 @@ return $meta; } + // 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. -- cgit v1.2.3