ElggMetadata::getObjectFromID PHP Method

getObjectFromID() public method

This is used by the river functionality primarily. This is useful for checking access permissions etc on objects.
public getObjectFromID ( integer $id ) : ElggMetadata
$id integer Metadata ID
return ElggMetadata
    public function getObjectFromID($id)
    {
        return elgg_get_metadata_from_id($id);
    }