Delete
bool CBlogPost::Delete( int ID );
The method deletes a blog post with ID and all objects associated with it. Static method.
Method parameters
Parameter | Description |
---|---|
ID | Blog post ID. |
Returned value
The method returns true if the blog post is deleted successfully, otherwise returns false.Examples of use
<? $DB->StartTransaction(); if(!CBlogPost::Delete($ID)) { echo 'Error while deleting blog post'.$ID; $DB->Rollback(); } else $DB->Commit(); ?>
© «Bitrix24», 2001-2024