aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/relationships.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-06 15:06:42 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-06 15:06:42 +0000
commit29dac199c057827876374038993da55c8c35267f (patch)
tree8409cc062309fdddaf14c7f49ab819daf71323a8 /engine/lib/relationships.php
parentcd536030453e7390573d16bca824e6edd8d0bfa4 (diff)
downloadelgg-29dac199c057827876374038993da55c8c35267f.tar.gz
elgg-29dac199c057827876374038993da55c8c35267f.tar.bz2
Refs #402 and #407: Extra fields added to system_log
git-svn-id: https://code.elgg.org/elgg/trunk@2188 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/relationships.php')
-rw-r--r--engine/lib/relationships.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php
index 28f8b81f7..485732a59 100644
--- a/engine/lib/relationships.php
+++ b/engine/lib/relationships.php
@@ -211,6 +211,16 @@
*/
public function getObjectOwnerGUID() { return $this->owner_guid; }
+ /**
+ * Return a type of the object - eg. object, group, user, relationship, metadata, annotation etc
+ */
+ public function getType() { return 'relationship'; }
+
+ /**
+ * Return a subtype. For metadata & annotations this is the 'name' and for relationship this is the relationship type.
+ */
+ public function getSubtype() { return $this->relationship; }
+
// ITERATOR INTERFACE //////////////////////////////////////////////////////////////
/*
* This lets an entity's attributes be displayed using foreach as a normal array.