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