本文整理汇总了PHP中CCalendar::pathesForSite方法的典型用法代码示例。如果您正苦于以下问题:PHP CCalendar::pathesForSite方法的具体用法?PHP CCalendar::pathesForSite怎么用?PHP CCalendar::pathesForSite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCalendar
的用法示例。
在下文中一共展示了CCalendar::pathesForSite方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetUserUrl
public static function GetUserUrl($userId = 0, $pathToUser = "")
{
if ($pathToUser == '') {
if (self::$pathToUser == '') {
if (empty(self::$pathesForSite)) {
self::$pathesForSite = self::GetPathes(SITE_ID);
}
self::$pathToUser = self::$pathesForSite['path_to_user'];
}
$pathToUser = self::$pathToUser;
}
return CUtil::JSEscape(CComponentEngine::MakePathFromTemplate($pathToUser, array("user_id" => $userId, "USER_ID" => $userId)));
}
示例2: GetMeetingRoomList
public static function GetMeetingRoomList($Params = array())
{
if (isset(self::$meetingRoomList))
return self::$meetingRoomList;
if (!isset($Params['RMiblockId']) && !isset($Params['VMiblockId']))
{
if (!isset(self::$settings))
self::$settings = self::GetSettings();
if (!self::$pathesForSite)
self::$pathesForSite = self::GetSettings(self::GetSiteId());
$RMiblockId = self::$settings['rm_iblock_id'];
$VMiblockId = self::$settings['vr_iblock_id'];
$pathToMR = self::$pathesForSite['path_to_rm'];
$pathToVR = self::$pathesForSite['path_to_vr'];
}
else
{
$RMiblockId = $Params['RMiblockId'];
$VMiblockId = $Params['VMiblockId'];
$pathToMR = $Params['pathToMR'];
$pathToVR = $Params['pathToVR'];
}
$MRList = Array();
if (IntVal($RMiblockId) > 0 && CIBlock::GetPermission($RMiblockId) >= "R")
{
$arOrderBy = array("NAME" => "ASC", "ID" => "DESC");
$arFilter = array("IBLOCK_ID" => $RMiblockId, "ACTIVE" => "Y");
$arSelectFields = array("IBLOCK_ID","ID","NAME","DESCRIPTION","UF_FLOOR","UF_PLACE","UF_PHONE");
$res = CIBlockSection::GetList($arOrderBy, $arFilter, false, $arSelectFields );
while ($arMeeting = $res->GetNext())
{
$MRList[] = array(
'ID' => $arMeeting['ID'],
'NAME' => $arMeeting['NAME'],
'DESCRIPTION' => $arMeeting['DESCRIPTION'],
'UF_PLACE' => $arMeeting['UF_PLACE'],
'UF_PHONE' => $arMeeting['UF_PHONE'],
'URL' => str_replace(array("#id#", "#ID#"), $arMeeting['ID'], $pathToMR)
);
}
}
if(IntVal($VMiblockId) > 0 && CIBlock::GetPermission($VMiblockId) >= "R")
{
$arFilter = array("IBLOCK_ID" => $VMiblockId, "ACTIVE" => "Y");
$arSelectFields = array("ID", "NAME", "DESCRIPTION", "IBLOCK_ID");
$res = CIBlockSection::GetList(Array(), $arFilter, false, $arSelectFields);
if($arMeeting = $res->GetNext())
{
$MRList[] = array(
'ID' => $VMiblockId,
'NAME' => $arMeeting["NAME"],
'DESCRIPTION' => $arMeeting['DESCRIPTION'],
'URL' => str_replace(array("#id#", "#ID#"), $arMeeting['ID'], $pathToVR),
);
}
}
self::$meetingRoomList = $MRList;
return $MRList;
}