Class ElggMetadata
ElggMetadata This class describes metadata that can be attached to
ElggEntities.
-
ElggData
implements
Loggable,
Iterator,
ArrayAccess,
Exportable
-
ElggExtender
-
ElggMetadata
Methods summary
protected
|
|
public
|
#
__construct( mixed $id = null )
Construct a metadata object
Construct a metadata object
Parameters
- $id
mixed $id ID of metadata or a database row as stdClass object
|
public
boolean
|
#
canEdit( integer $user_guid = 0 )
Determines whether or not the user can edit this piece of metadata
Determines whether or not the user can edit this piece of metadata
Parameters
- $user_guid
integer $user_guid The GUID of the user (defaults to currently logged in user)
Returns
boolean Depending on permissions
Overrides
|
public
integer|boolean
|
#
save( )
Save metadata object
Returns
integer|boolean the metadata object id or true if updated
Throws
|
public
boolean
|
#
delete( )
Delete the metadata
Returns
boolean
|
public
boolean
|
#
disable( )
Disable the metadata
Returns
boolean
Since
1.8
|
public
boolean
|
#
enable( )
Enable the metadata
Returns
boolean
Since
1.8
|
public
string
|
#
getURL( )
Get a url for this item of metadata.
Get a url for this item of metadata.
Returns
string
|
public
ElggMetadata
|
#
getObjectFromID( integer $id )
For a given ID, return the object associated with it. This is used by the
river functionality primarily. This is useful for checking access permissions
etc on objects.
For a given ID, return the object associated with it. This is used by the
river functionality primarily. This is useful for checking access permissions
etc on objects.
Parameters
- $id
integer $id Metadata ID
Returns
|
Methods inherited from ElggData
__get(),
__isset(),
__set(),
current(),
getClassName(),
getTimeCreated(),
key(),
next(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
rewind(),
valid()
|