GetByID
array CBlogPost::GetByID( int ID );
The method returns parameters for blog post with ID. Static method.
Method parameters
Parameter | Description |
---|---|
ID | Blog post ID. |
Returned value
Array with blog post 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; $arPost = CBlogPost::GetByID($ID); if(is_array($arPost)) print_r($arPost); else echo "Blog post not found"; ?>
© «Bitrix24», 2001-2024