Elgg
Version 3.0
|
Public Member Functions | |
__isset ($name) | |
Test if property is set either as an attribute or metadata. More... | |
__unset ($name) | |
Unset a property from metadata or attribute. More... | |
getURL () | |
Get a URL for this object. More... | |
save () | |
Save this data to the appropriate database table. More... | |
delete () | |
Delete this data. More... | |
getTimeCreated () | |
Returns the UNIX epoch time that this entity was created. More... | |
toObject (array $params=[]) | |
Get a plain old object copy for public consumption. More... | |
rewind () | |
Iterator interface. More... | |
current () | |
Iterator interface. More... | |
key () | |
Iterator interface. More... | |
next () | |
Iterator interface. More... | |
valid () | |
Iterator interface. More... | |
offsetSet ($key, $value) | |
Array access interface. More... | |
offsetGet ($key) | |
Array access interface. More... | |
offsetUnset ($key) | |
Array access interface. More... | |
offsetExists ($offset) | |
Array access interface. More... | |
getId () | |
{Get unique item identifier within a collection.
| |
getPriority () | |
{Get priority (weight) of the item within a collection.
| |
serialize () | |
{} More... | |
unserialize ($serialized) | |
{} More... | |
Protected Member Functions | |
initializeAttributes () | |
Initialize the attributes array. More... | |
getDatabase () | |
Provides a pointer to the database object. More... | |
Protected Attributes | |
$attributes = [] | |
The main attributes of an entity. More... | |
$valid = false | |
Definition at line 12 of file ElggData.php.
ElggData::__isset | ( | $name | ) |
Test if property is set either as an attribute or metadata.
Use isset($entity->property)
string | $name | The name of the attribute or metadata. |
Definition at line 63 of file ElggData.php.
ElggData::__unset | ( | $name | ) |
Unset a property from metadata or attribute.
string | $name | The name of the attribute or metadata. |
Definition at line 76 of file ElggData.php.
ElggData::current | ( | ) |
Iterator interface.
Definition at line 143 of file ElggData.php.
|
abstract |
Delete this data.
|
protected |
Provides a pointer to the database object.
Definition at line 50 of file ElggData.php.
ElggData::getId | ( | ) |
{Get unique item identifier within a collection.
Implements Elgg\Collections\CollectionItemInterface.
Definition at line 249 of file ElggData.php.
ElggData::getPriority | ( | ) |
{Get priority (weight) of the item within a collection.
Implements Elgg\Collections\CollectionItemInterface.
Definition at line 256 of file ElggData.php.
ElggData::getTimeCreated | ( | ) |
Returns the UNIX epoch time that this entity was created.
Definition at line 106 of file ElggData.php.
|
abstract |
Get a URL for this object.
|
protected |
Initialize the attributes array.
This is vital to distinguish between metadata and base parameters.
Definition at line 36 of file ElggData.php.
ElggData::key | ( | ) |
Iterator interface.
Definition at line 154 of file ElggData.php.
ElggData::next | ( | ) |
Iterator interface.
Definition at line 165 of file ElggData.php.
ElggData::offsetExists | ( | $offset | ) |
Array access interface.
int | $offset | Offset |
Definition at line 242 of file ElggData.php.
ElggData::offsetGet | ( | $key | ) |
Array access interface.
mixed | $key | Name |
Definition at line 209 of file ElggData.php.
ElggData::offsetSet | ( | $key, | |
$value | |||
) |
Array access interface.
mixed | $key | Name |
mixed | $value | Value |
Definition at line 194 of file ElggData.php.
ElggData::offsetUnset | ( | $key | ) |
Array access interface.
mixed | $key | Name |
Definition at line 226 of file ElggData.php.
ElggData::rewind | ( | ) |
Iterator interface.
Definition at line 132 of file ElggData.php.
|
abstract |
Save this data to the appropriate database table.
ElggData::serialize | ( | ) |
{}
Definition at line 263 of file ElggData.php.
|
abstract |
Get a plain old object copy for public consumption.
array | $params | Export parameters |
ElggData::unserialize | ( | $serialized | ) |
{}
Definition at line 270 of file ElggData.php.
ElggData::valid | ( | ) |
Iterator interface.
Definition at line 176 of file ElggData.php.
|
protected |
The main attributes of an entity.
Holds attributes to save to database Blank entries for all database fields should be created by the constructor. Subclasses should add to this in their constructors. Any field not appearing in this will be viewed as metadata
Definition at line 27 of file ElggData.php.
|
protected |
Definition at line 123 of file ElggData.php.