GetByID
array CBlogCandidate::GetByID( int ID );
The method returns the parameters for the record with ID. Static method.
Method parameters
Parameter | Description |
---|---|
ID | Record ID. |
Returned value
Array of the following type is returned:Array( "ID"=>"Record ID", "BLOG_ID"=>"Blog ID", "USER_ID"=>"User ID" )
Note
The method uses in-built 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; $arCandidate = CBlogCandidate::GetByID($ID); if(is_array($arCandidate)) print_r($arCandidate); else echo "Record not found"; ?>
© «Bitrix24», 2001-2024