Elgg
Version 6.2
|
Public Member Functions | ||||
__set ($name, $value) | ||||
Set an attribute. More... | ||||
setValue ($value, string $value_type='') | ||||
Set the value of the extender. More... | ||||
__get ($name) | ||||
Gets an attribute. More... | ||||
getOwnerGUID () | ||||
Get the GUID of the extender's owner entity. More... | ||||
getOwnerEntity () | ||||
Get the entity that owns this extender. More... | ||||
getEntity () | ||||
Get the entity this describes. More... | ||||
canEdit (int $user_guid=0) | ||||
Returns if a user can edit this entity extender. More... | ||||
toObject (array $params=[]) | ||||
{Get a plain old object copy for public consumption.
| ||||
getSystemLogID () | ||||
{Return an identification for the object for storage in the system log.This id must be an integer. Unsaved implementations should return 0.
| ||||
getType () | ||||
Return a type of extension. More... | ||||
getSubtype () | ||||
Return a subtype. More... | ||||
getURL () | ||||
Get a url for this extender. More... | ||||
![]() | ||||
__isset ($name) | ||||
Test if property is set either as an attribute or metadata. More... | ||||
__unset ($name) | ||||
Unset a property from metadata or attribute. 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... | ||||
getObjectFromID (int $id) | ||||
For a given ID, return the object associated with it. More... | ||||
rewind () | ||||
Iterator interface. More... | ||||
current () | ||||
Iterator interface. More... | ||||
key () | ||||
Iterator interface. More... | ||||
next () | ||||
Iterator interface. More... | ||||
valid () | ||||
Iterator interface. More... | ||||
offsetSet ($offset, $value) | ||||
Array access interface. More... | ||||
offsetGet ($offset) | ||||
Array access interface. More... | ||||
offsetUnset ($offset) | ||||
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 () | ||||
Called during serialization. More... | ||||
__unserialize (array $data) | ||||
Called during unserialization. More... | ||||
Static Public Member Functions | |
static | detectValueType ($value, string $value_type='') |
Detect the value_type for a value to be stored as metadata or an annotation. More... | |
Protected Member Functions | |
initializeAttributes () | |
{Initialize the attributes array.This is vital to distinguish between metadata and base parameters.
| |
![]() | |
getDatabase () | |
Provides a pointer to the database object. More... | |
Protected Attributes | |
const | INTEGER_ATTR_NAMES |
![]() | |
$attributes = [] | |
$valid = false | |
Definition at line 27 of file ElggExtender.php.
ElggExtender::__get | ( | $name | ) |
Gets an attribute.
string | $name | Name |
Definition at line 97 of file ElggExtender.php.
ElggExtender::__set | ( | $name, | |
$value | |||
) |
Set an attribute.
string | $name | Name |
mixed | $value | Value |
Definition at line 61 of file ElggExtender.php.
|
abstract |
Returns if a user can edit this entity extender.
int | $user_guid | The GUID of the user doing the editing (defaults to currently logged in user) |
Reimplemented in ElggMetadata, and ElggAnnotation.
|
static |
Detect the value_type for a value to be stored as metadata or an annotation.
mixed | $value | The value |
string | $value_type | If specified as "text" or "integer", overrides the detection. |
Definition at line 234 of file ElggExtender.php.
ElggExtender::getEntity | ( | ) |
Get the entity this describes.
Definition at line 146 of file ElggExtender.php.
ElggExtender::getOwnerEntity | ( | ) |
Get the entity that owns this extender.
Definition at line 137 of file ElggExtender.php.
ElggExtender::getOwnerGUID | ( | ) |
Get the GUID of the extender's owner entity.
Definition at line 128 of file ElggExtender.php.
ElggExtender::getSubtype | ( | ) |
Return a subtype.
For metadata & annotations this is the 'name' and for relationship this is the relationship type.
Reimplemented from ElggData.
Definition at line 205 of file ElggExtender.php.
ElggExtender::getSystemLogID | ( | ) |
{Return an identification for the object for storage in the system log.This id must be an integer. Unsaved implementations should return 0.
Reimplemented from ElggData.
Definition at line 186 of file ElggExtender.php.
ElggExtender::getType | ( | ) |
Return a type of extension.
Reimplemented from ElggData.
Definition at line 195 of file ElggExtender.php.
ElggExtender::getURL | ( | ) |
Get a url for this extender.
Plugins can register for the 'extender:url', '<type>' event to customize the url for an annotation or metadata.
Reimplemented from ElggData.
Definition at line 217 of file ElggExtender.php.
|
protected |
{Initialize the attributes array.This is vital to distinguish between metadata and base parameters.
Reimplemented from ElggData.
Reimplemented in ElggMetadata, and ElggAnnotation.
Definition at line 43 of file ElggExtender.php.
ElggExtender::setValue | ( | $value, | |
string | $value_type = '' |
||
) |
Set the value of the extender.
mixed | $value | The value being set |
string | $value_type | The type of the : 'integer' or 'text' |
Definition at line 84 of file ElggExtender.php.
ElggExtender::toObject | ( | array | $params = [] | ) |
{Get a plain old object copy for public consumption.
array | $params | Export parameters |
Reimplemented from ElggData.
Definition at line 163 of file ElggExtender.php.
|
protected |
Definition at line 32 of file ElggExtender.php.