ElggAnnotation::delete PHP Méthode

delete() public méthode

Delete the annotation.
public delete ( ) : boolean
Résultat boolean
    public function delete()
    {
        $result = _elgg_delete_metastring_based_object_by_id($this->id, 'annotation');
        if ($result) {
            _elgg_delete_river(array('annotation_id' => $this->id));
        }
        return $result;
    }