Delete
bool CBlogComment::Delete( int ID );
The method deletes comment with ID. Non-static method.
Method parameters
Parameter | Description |
---|---|
ID | Comment ID. |
Returned value
The method returns true if the comment is deleted successfully, otherwise returns false.Note
When deleting a comment that has PARENT_ID equal to zero, all its comments will be attached to one level higher.Examples of use
<? $DB->StartTransaction(); if(!CBlogComment::Delete($ID)) { echo 'Comment deletion error'.$ID; $DB->Rollback(); } else $DB->Commit(); ?>
© «Bitrix24», 2001-2024