Public Member Functions | |
| __construct ($id=null) | |
| Construct a metadata object. | |
| canEdit ($user_guid=0) | |
| Determines whether or not the user can edit this piece of metadata. | |
| save () | |
| Save metadata object. | |
| delete () | |
| Delete the metadata. | |
| disable () | |
| Disable the metadata. | |
| enable () | |
| Enable the metadata. | |
| getURL () | |
| Get a url for this item of metadata. | |
| getObjectFromID ($id) | |
| For a given ID, return the object associated with it. | |
Protected Member Functions | |
| initializeAttributes () | |
| (non-PHPdoc) | |
Definition at line 14 of file ElggMetadata.php.
| ElggMetadata::__construct | ( | $ | id = null |
) |
Construct a metadata object.
| mixed | $id ID of metadata or a database row as stdClass object |
Definition at line 34 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 61 of file ElggMetadata.php.
| ElggMetadata::delete | ( | ) |
Delete the metadata.
Reimplemented from ElggData.
Definition at line 95 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 155 of file ElggMetadata.php.
| ElggMetadata::getURL | ( | ) |
Get a url for this item of metadata.
Reimplemented from ElggData.
Definition at line 140 of file ElggMetadata.php.
| ElggMetadata::initializeAttributes | ( | ) | [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 75 of file ElggMetadata.php.
1.6.3