| 
    Elgg
    Version 1.12
    
   | 
 
  
Public Member Functions | |
| __construct ($row=null) | |
| Construct a metadata object.  More... | |
| canEdit ($user_guid=0) | |
| Determines whether or not the user can edit this piece of metadata.  More... | |
| save () | |
| Save metadata object.  More... | |
| delete () | |
| Delete the metadata.  More... | |
| disable () | |
| Disable the metadata.  More... | |
| enable () | |
| Enable the metadata.  More... | |
| getObjectFromID ($id) | |
| For a given ID, return the object associated with it.  More... | |
  Public Member Functions inherited from ElggExtender | |
| __set ($name, $value) | |
| Set an attribute.  More... | |
| setValue ($value, $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... | |
| getOwner () | |
| Return the guid of the entity's owner.  More... | |
| getOwnerEntity () | |
| Get the entity that owns this extender.  More... | |
| getEntity () | |
| Get the entity this describes.  More... | |
| toObject () | |
{Get a plain old object copy for public consumption.
  | |
| getExportableValues () | |
| Return an array of fields which can be exported.  More... | |
| export () | |
| Export this object.  More... | |
| getSystemLogID () | |
| Return an identification for the object for storage in the system log.  More... | |
| getType () | |
| Return a type of extension.  More... | |
| getSubtype () | |
| Return a subtype.  More... | |
| getURL () | |
| Get a url for this extender.  More... | |
  Public Member Functions inherited from ElggData | |
| __isset ($name) | |
| Test if property is set either as an attribute or metadata.  More... | |
| getTimeCreated () | |
| Returns the UNIX epoch time that this entity was created.  More... | |
| getClassName () | |
| Return the class name of the object.  More... | |
| getObjectOwnerGUID () | |
| Return the GUID of the owner of this object.  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... | |
Protected Member Functions | |
| initializeAttributes () | |
| (non-PHPdoc)  More... | |
  Protected Member Functions inherited from ElggExtender | |
| set ($name, $value, $value_type='') | |
| Set an attribute.  More... | |
| get ($name) | |
| Returns an attribute.  More... | |
  Protected Member Functions inherited from ElggData | |
| initialise_attributes ($pre18_api=true) | |
| Initialise the attributes array.  More... | |
| getDatabase () | |
| Provides a pointer to the database object.  More... | |
| set ($name, $value) | |
| Set the specified attribute.  More... | |
Additional Inherited Members | |
  Protected Attributes inherited from ElggData | |
| $attributes = array() | |
| The main attributes of an entity.  More... | |
| $valid = false | |
Definition at line 14 of file ElggMetadata.php.
| ElggMetadata::__construct | ( | $row = null | ) | 
Construct a metadata object.
Plugin developers will probably never need to use this API. See \ElggEntity for its API for setting and getting metadata.
| \stdClass | $row | Database row as \stdClass object | 
Definition at line 37 of file ElggMetadata.php.
| ElggMetadata::canEdit | ( | $user_guid = 0 | ) | 
Determines whether or not the user can edit this piece of metadata.
| int | $user_guid | The GUID of the user (defaults to currently logged in user) | 
Reimplemented from ElggExtender.
Definition at line 66 of file ElggMetadata.php.
| ElggMetadata::delete | ( | ) | 
Delete the metadata.
Reimplemented from ElggData.
Definition at line 100 of file ElggMetadata.php.
| ElggMetadata::disable | ( | ) | 
| ElggMetadata::enable | ( | ) | 
| ElggMetadata::getObjectFromID | ( | $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.
| int | $id | Metadata ID | 
Implements Loggable.
Definition at line 147 of file ElggMetadata.php.
      
  | 
  protected | 
(non-PHPdoc)
Reimplemented from ElggExtender.
Definition at line 23 of file ElggMetadata.php.
| ElggMetadata::save | ( | ) | 
Save metadata object.
| IOException | 
Reimplemented from ElggData.
Definition at line 80 of file ElggMetadata.php.