Documentation

IsFriend

bool
CBlog::IsFriend(
 int ID,
 int userID
);

The method verifies whether the userID is the friend of the blog ID. Non-static method.

Method parameters

ParameterDescription
ID Blog ID.
userID User ID.

Returned value

Returns true if the user has the blog's friend status, otherwise returns false.

Examples of use

<?
$ID = 1;
if(CBlog::IsFriend($ID, $USER->GetID))
	echo "You are the friend of the blog with ID=".$ID;
else
	echo "You can submit the request to join as friend of the blog with ID=".$ID;
?>


© «Bitrix24», 2001-2024
Up