Documentation

GetByID

array
CBlogGroup::GetByID(
 int ID
);

The mehtod returns parameters ofthe group with ID. Non-static method.

Method parameters

ParameterDescription
ID Group ID.

Returned value

Array of the following type is returned:
Array(
    "ID" => "Group ID",
    "SITE_ID" => "Site ID",
    "NAME" => "Group name"
)
If the group is not found, the method will return false.

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;
$arGroup = CBlogGroup::GetByID($ID);
if(is_array($arGroup))
    print_r($arGroup);
else
    echo "Group not found.";
?>


© «Bitrix24», 2001-2024
Up