Class ElggExtender
The base class for ElggEntity extenders.
Extenders allow you to attach extended information to an ElggEntity. Core supports two: ElggAnnotation and ElggMetadata.
Saving the extender data to database is handled by the child class.
- ElggData implements Loggable, Iterator, ArrayAccess, Exportable
- ElggExtender
Package: Elgg\Core\DataModel\Extender
See:
ElggAnnotation
See:
ElggMetadata
Link: http://docs.elgg.org/DataModel/Extenders
Tip: Plugin authors would probably want to extend either ElggAnnotation or ElggMetadata instead of this class.
Located at ElggExtender.php
protected
|
|
protected
mixed
|
|
protected
boolean
|
|
public
integer
|
|
public
|
|
public
|
|
public
boolean
|
|
public
array
|
|
public
array
|
|
public
integer
|
#
getSystemLogID( )
Return an identification for the object for storage in the system log. This id must be an integer. |
public
string
|
|
public
string
|
#
getSubtype( )
Return a subtype. For metadata & annotations this is the 'name' and for relationship this is the relationship type. |
__get(),
__isset(),
__set(),
current(),
delete(),
getClassName(),
getTimeCreated(),
getURL(),
key(),
next(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
rewind(),
save(),
valid()
|
getObjectFromID()
|
$attributes,
$valid
|
public
string
|
$type |
#
annotation or metadata (read-only after save) |
public
integer
|
$id |
#
The unique identifier (read-only) |
public
integer
|
$entity_guid |
#
The GUID of the entity that this extender describes |
public
integer
|
$access_id |
#
Specifies the visibility level of this extender |
public
string
|
$name |
#
The name of this extender |
public
mixed
|
$value |
#
The value of the extender (int or string) |
public
integer
|
$time_created |
#
A UNIX timestamp of when the extender was created (read-only, set on first save) |
$owner_guid
|