Delete
bool CBlogUser::Delete( int ID );
The method deletes a blog user profile with the ID. Static method.
Method parameters
Parameter | Description |
---|---|
ID | SIte user ID. |
Returned value
The method returns true on success, otherwise returns false, and exceptions will contain errors.
Note
If the user has a blog, then it must be deleted first. When deleting the user of the blog, all his/her messages in all blogs are deleted as well. In addition, all the comments become anonymous.
Examples of use
<? $ID = $USER->GetID(); if(!CBlogUser::Delete($ID)) { if ($ex = $APPLICATION->GetException()) echo $ex->GetString(); } else { echo 'Profile of the blog user ['.$ID.'] is deleted'; } ?>
© «Bitrix24», 2001-2024