diff options
Diffstat (limited to 'engine/lib/relationships.php')
-rw-r--r-- | engine/lib/relationships.php | 10 |
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. |