55 if (!is_array($this->attributes)) {
56 $this->attributes = array();
59 $this->attributes[
'time_created'] = null;
81 return $this->
$name !== null;
92 abstract protected function get(
$name);
110 abstract public function getURL();
117 abstract public function save();
124 abstract public function delete();
140 abstract public function toObject();
154 return get_class($this);
182 $this->
valid = (
false !== reset($this->attributes));
193 return current($this->attributes);
204 return key($this->attributes);
215 $this->
valid = (
false !==
next($this->attributes));
244 if (array_key_exists(
$key, $this->attributes)) {
259 if (array_key_exists(
$key, $this->attributes)) {
260 return $this->attributes[
$key];
275 if (array_key_exists(
$key, $this->attributes)) {
277 $this->attributes[
$key] =
"";
291 return array_key_exists(
$offset, $this->attributes);
getObjectOwnerGUID()
Return the GUID of the owner of this object.
getDatabase()
Provides a pointer to the database object.
getClassName()
Return the class name of the object.
offsetSet($key, $value)
Array access interface.
valid()
Iterator interface.
getTimeCreated()
Returns the UNIX epoch time that this entity was created.
next()
Iterator interface.
if($guid==elgg_get_logged_in_user_guid()) $name
offsetUnset($key)
Array access interface.
__isset($name)
Test if property is set either as an attribute or metadata.
initialise_attributes($pre18_api=true)
Initialise the attributes array.
initializeAttributes()
Initialize the attributes array.
toObject()
Get a plain old object copy for public consumption.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Sends a notice about deprecated use of a function, view, etc.
$attributes
The main attributes of an entity.
current()
Iterator interface.
offsetGet($key)
Array access interface.
save()
Save this data to the appropriate database table.
offsetExists($offset)
Array access interface.
getURL()
Get a URL for this object.
rewind()
Iterator interface.