本文整理汇总了PHP中CSocNetUserRelations::GetListBirthday方法的典型用法代码示例。如果您正苦于以下问题:PHP CSocNetUserRelations::GetListBirthday方法的具体用法?PHP CSocNetUserRelations::GetListBirthday怎么用?PHP CSocNetUserRelations::GetListBirthday使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSocNetUserRelations
的用法示例。
在下文中一共展示了CSocNetUserRelations::GetListBirthday方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$APPLICATION->SetTitle($arResult["User"]["NAME"]." ".$arResult["User"]["LAST_NAME"].": ".GetMessage("SONET_C33_PAGE_TITLE"));
if ($arParams["SET_NAV_CHAIN"] != "N")
{
$APPLICATION->AddChainItem($arResult["User"]["NAME"]." ".$arResult["User"]["LAST_NAME"], CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_USER"], array("user_id" => $arResult["User"]["ID"])));
$APPLICATION->AddChainItem(GetMessage("SONET_C33_PAGE_TITLE"));
}
*/
if ($arResult["CurrentUserPerms"] && $arResult["CurrentUserPerms"]["Operations"]["viewprofile"] && $arResult["CurrentUserPerms"]["Operations"]["viewfriends"]) {
$arNavParams = array("nPageSize" => $arParams["ITEMS_COUNT"], "bDescPageNumbering" => false);
$arNavigation = CDBResult::GetNavParams($arNavParams);
$nowDay = IntVal(Date("d"));
$nowMonth = IntVal(Date("m"));
$arResult["Users"] = false;
$cnt = 0;
$dbFriends = CSocNetUserRelations::GetListBirthday($arResult["User"]["ID"], 0);
if ($dbFriends) {
$arResult["Users"] = array();
$arResult["Users"]["List"] = false;
while ($arFriends = $dbFriends->GetNext()) {
if (StrLen($arFriends["PB"]) <= 0) {
continue;
}
$pu = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_USER"], array("user_id" => $arFriends["ID"]));
$canViewProfile = CSocNetUserPerms::CanPerformOperation($GLOBALS["USER"]->GetID(), $arFriends["ID"], "viewprofile", CSocNetUser::IsCurrentUserModuleAdmin());
if (intval($arParams["THUMBNAIL_LIST_SIZE"]) > 0) {
if (intval($arFriends["PERSONAL_PHOTO"]) <= 0) {
switch ($arFriends["PERSONAL_GENDER"]) {
case "M":
$suffix = "male";
break;