/** * Delete object and drop content from search table * * @param void * @return boolean */ function delete() { if ($this->isCommentable()) { $comments = $this->getComments(true); if ($comments && count($comments) > 0) { foreach ($comments as $comment) { $comment->clearEverything(); $comment->delete(); } } } return $this->getObject()->delete() && parent::delete(); }
/** * Delete object and drop content from search table * * @param void * @return boolean */ function delete() { if ($this->isTaggable()) { $this->clearTags(); } // if if ($this->isSearchable()) { $this->clearSearchIndex(); } // if if ($this->isCommentable()) { $this->clearComments(); } // if if ($this->isFileContainer()) { $this->clearAttachedFiles(); } // if return parent::delete(); }
/** * Delete object and drop content from search table * * @param void * @return boolean */ function delete() { return parent::delete(); }