GetByID
array CBlog::GetByID( int ID );
The method returns parameters for the blog with ID. Non-static method.
Method paramters
Parameter | Description |
---|---|
ID | Blog ID. |
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
<? $ID = 1; $arBlog = CBlog::GetByID($ID); if(is_array($arBlog)) print_r($arBlog); else echo "Blog not found"; ?>
© «Bitrix24», 2001-2024