<?php
abstract class ElggData implements
+ Loggable, // Can events related to this object class be logged
Iterator, // Override foreach behaviour
ArrayAccess // Override for array access
{
+
+
+
+ /*
+ * SYSTEM LOG INTERFACE
+ */
+
+ /**
+ * Return the class name of the object.
+ *
+ * @return string
+ */
+ public function getClassName() {
+ return get_class($this);
+ }
+
+ /**
+ * Return the GUID of the owner of this object.
+ *
+ * @return int
+ */
+ public function getObjectOwnerGUID() {
+ return $this->owner_guid;
+ }
+
/**
* The main attributes of an entity.
* Holds attributes to save to database
Notable, // Calendar interface
Locatable, // Geocoding interface
Exportable, // Allow export of data
- Importable, // Allow import of data
- Loggable // Can events related to this object class be logged
+ Importable // Allow import of data
{
/**
return $this->getGUID();
}
- /**
- * Return the class name of the object.
- *
- * @return string
- */
- public function getClassName() {
- return get_class($this);
- }
-
/**
* For a given ID, return the object associated with it.
* This is used by the river functionality primarily.
return get_entity($id);
}
- /**
- * Returns the GUID of the owner of this entity.
- *
- * @return int Owner guid
- */
- public function getObjectOwnerGUID() {
- return $this->owner_guid;
- }
-
/**
* Returns tags for this entity.
*
* @see ElggMetadata
*/
abstract class ElggExtender extends ElggData implements
- Exportable,
- Loggable // Can events related to this object class be logged
+ Exportable
{
/**
return $this->id;
}
- /**
- * Return the class name of the object.
- *
- * @return string
- */
- public function getClassName() {
- return get_class($this);
- }
-
- /**
- * Return the GUID of the owner of this object.
- *
- * @return int
- */
- public function getObjectOwnerGUID() {
- return $this->owner_guid;
- }
-
/**
* Return a type of extension.
*
*/
class ElggRelationship extends ElggData implements
Importable,
- Exportable,
- Loggable // Can events related to this object class be logged
+ Exportable
{
/**
return $this->id;
}
- /**
- * Return the class name of the object.
- *
- * @return string
- */
- public function getClassName() {
- return get_class($this);
- }
-
/**
* For a given ID, return the object associated with it.
* This is used by the river functionality primarily.
return get_relationship($id);
}
- /**
- * Return the GUID of the owner of this object.
- *
- * @return int
- */
- public function getObjectOwnerGUID() {
- return $this->owner_guid;
- }
-
/**
* Return a type of the object - eg. object, group, user, relationship, metadata, annotation etc
*