ElggAnnotation::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 ) : ElggAnnotation
$id integer An annotation ID.
return ElggAnnotation
    public function getObjectFromID($id)
    {
        return elgg_get_annotation_from_id($id);
    }