Documentation

getById

array public
\Bitrix\Blog\Item\Post::getById(
int $id,
array $params
);

Method gets a blog post instance. Static method.

Parameters

ParameterDescriptionVersion
$id Blog post ID.
$params Auxiliary parameters. Supports key USE_STATIC_CACHE = true/false - using static caching within the method for getting post fields (by default - false, disabled).

Examples

$post = \Bitrix\Blog\Item\Post::getById(15);


© «Bitrix24», 2001-2024
Up