IsBlogOwner
bool CBlog::IsBlogOwner( int ID, int userID );
The method verifies whether the userID is the blog ID owner. Non-static method.
Method parameters
Parameter | Description |
---|---|
ID | Blog ID. |
userID | User ID. |
Returned value
The method returns true if the user is the blog owner, otherwise returns false.Examples of use
<? if(CBlog::IsBlogOwner(1, $USER->GetID())) echo "You are the blog owner."; else echo "You are not the blog owner."; ?>
© «Bitrix24», 2001-2024