GetByOwnerID
array CBlog::GetByOwnerID( int userID, $arGroup = Array() );
The method returns user blog with userID identifier. Non-static method.
Method parameters
Parameter | Description | Available from version |
---|---|---|
userID | User ID. | |
arGroup | ID of blog groups (array of integers). Optional parameter. | 8.0.5 |
Returned value
Array with blog fields is returned.Note
This method uses built-in caching. As a result, when the method is used multiple times on the page, the database request will be performed only once.
See Also
Examples of use
<? $arBlog = CBlog::GetByOwnerID($ID); if(is_array($arBlog)) print_r($arBlog); else echo "Blog not found"; ?>
© «Bitrix24», 2001-2024