35 $this->attributes[
'time_created'] = null;
57 return $this->
$name !== null;
78 abstract public function getURL(): string;
85 abstract public function save(): bool;
92 abstract public function delete():
bool;
100 return (
int) $this->attributes[
'time_created'];
129 abstract public function getType(): string;
137 abstract public function getSubtype(): string;
166 #[\ReturnTypeWillChange] 168 $this->
valid = (reset($this->attributes) !==
false);
178 #[\ReturnTypeWillChange] 180 return current($this->attributes);
190 #[\ReturnTypeWillChange] 192 return key($this->attributes);
202 #[\ReturnTypeWillChange] 204 $this->
valid = (
next($this->attributes) !==
false);
214 #[\ReturnTypeWillChange] 233 #[\ReturnTypeWillChange] 235 if (array_key_exists(
$offset, $this->attributes)) {
249 #[\ReturnTypeWillChange] 251 if (array_key_exists(
$offset, $this->attributes)) {
252 return $this->$offset;
267 #[\ReturnTypeWillChange] 269 if (array_key_exists(
$offset, $this->attributes)) {
284 #[\ReturnTypeWillChange] 286 return array_key_exists(
$offset, $this->attributes);
324 $this->attributes =
$data;
offsetGet($offset)
Array access interface.
getDatabase()
Provides a pointer to the database object.
getTimeCreated()
Returns the UNIX epoch time that this entity was created.
next()
Iterator interface.
$params
Saves global plugin settings.
getSystemLogID()
Return an identification for the object for storage in the system log.
if(!$user||!$user->canDelete()) $name
getType()
Return the type of the object - eg.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
valid()
Iterator interface.
Collection item interface.
getID()
{Get unique item identifier within a collection.string|int}
getObjectFromID(int $id)
For a given ID, return the object associated with it.
getSubtype()
Return a subtype.
trait TimeUsing
Adds methods for setting the current time (for testing)
__isset($name)
Test if property is set either as an attribute or metadata.
if(!$entity instanceof\ElggUser) $data
getPriority()
{Get priority (weight) of the item within a collection.int}
offsetUnset($offset)
Array access interface.
__serialize()
Called during serialization.
initializeAttributes()
Initialize the attributes array.
current()
Iterator interface.
A generic class that contains shared code among , , and .
offsetSet($offset, $value)
Array access interface.
save()
Save this data to the appropriate database table.
__unset($name)
Unset a property from metadata or attribute.
_elgg_services()
Get the global service provider.
toObject(array $params=[])
Get a plain old object copy for public consumption.
offsetExists($offset)
Array access interface.
__unserialize(array $data)
Called during unserialization.
getURL()
Get a URL for this object.
$id
Generic annotation delete action.
rewind()
Iterator interface.