當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CSocNetLogTools::HasLogEventCreatedBy方法代碼示例

本文整理匯總了PHP中CSocNetLogTools::HasLogEventCreatedBy方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSocNetLogTools::HasLogEventCreatedBy方法的具體用法?PHP CSocNetLogTools::HasLogEventCreatedBy怎麽用?PHP CSocNetLogTools::HasLogEventCreatedBy使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CSocNetLogTools的用法示例。


在下文中一共展示了CSocNetLogTools::HasLogEventCreatedBy方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __SLEGetTransport

 function __SLEGetTransport($arFields, $arCurrentUserSubscribe)
 {
     if (array_key_exists($arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_" . $arFields["EVENT_ID"] . "_N_N", $arCurrentUserSubscribe["TRANSPORT"])) {
         $arTransport[] = $arCurrentUserSubscribe["TRANSPORT"][$arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_" . $arFields["EVENT_ID"] . "_N_N"];
     }
     if (array_key_exists($arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_all_N_N", $arCurrentUserSubscribe["TRANSPORT"])) {
         $arTransport[] = $arCurrentUserSubscribe["TRANSPORT"][$arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_all_N_N"];
     }
     $bHasLogEventCreatedBy = CSocNetLogTools::HasLogEventCreatedBy($arFields["EVENT_ID"]);
     if ($bHasLogEventCreatedBy) {
         if ($arFields["EVENT_ID"]) {
             if (array_key_exists("U_" . $arFields["USER_ID"] . "_all_N_Y", $arCurrentUserSubscribe["TRANSPORT"])) {
                 $arTransport[] = $arCurrentUserSubscribe["TRANSPORT"]["U_" . $arFields["USER_ID"] . "_all_N_Y"];
             } elseif (array_key_exists("U_" . $arFields["USER_ID"] . "_all_Y_Y", $arCurrentUserSubscribe["TRANSPORT"])) {
                 $arTransport[] = $arCurrentUserSubscribe["TRANSPORT"]["U_" . $arFields["USER_ID"] . "_all_Y_Y"];
             }
         }
     }
     if (!array_key_exists($arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_" . $arFields["EVENT_ID"] . "_N_N", $arCurrentUserSubscribe["TRANSPORT"]) && !array_key_exists($arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_all_N_N", $arCurrentUserSubscribe["TRANSPORT"])) {
         if (array_key_exists($arFields["ENTITY_TYPE"] . "_0_" . $arFields["EVENT_ID"] . "_N_N", $arCurrentUserSubscribe["TRANSPORT"])) {
             $arTransport[] = $arCurrentUserSubscribe["TRANSPORT"][$arFields["ENTITY_TYPE"] . "_0_" . $arFields["EVENT_ID"] . "_N_N"];
         } elseif (array_key_exists($arFields["ENTITY_TYPE"] . "_0_all_N_N", $arCurrentUserSubscribe["TRANSPORT"])) {
             $arTransport[] = $arCurrentUserSubscribe["TRANSPORT"][$arFields["ENTITY_TYPE"] . "_0_all_N_N"];
         } else {
             $arTransport[] = "N";
         }
     }
     $arTransport = array_unique($arTransport);
     usort($arTransport, "__SLTransportSort");
     return $arTransport;
 }
開發者ID:webgksupport,項目名稱:alpina,代碼行數:31,代碼來源:include.php

示例2: __SLMGetVisible

 function __SLMGetVisible($arFields, $arCurrentUserSubscribe, $arMyEntities = array())
 {
     $bHasLogEventCreatedBy = CSocNetLogTools::HasLogEventCreatedBy($arFields["EVENT_ID"]);
     if (array_key_exists($arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_" . $arFields["EVENT_ID"] . "_N_N", $arCurrentUserSubscribe["VISIBLE"])) {
         $strVisible = $arCurrentUserSubscribe["VISIBLE"][$arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_" . $arFields["EVENT_ID"] . "_N_N"];
     } elseif ($bHasLogEventCreatedBy && array_key_exists("U_" . $arFields["USER_ID"] . "_" . $arFields["EVENT_ID"] . "_N_Y", $arCurrentUserSubscribe["VISIBLE"])) {
         $strVisible = $arCurrentUserSubscribe["VISIBLE"]["U_" . $arFields["USER_ID"] . "_" . $arFields["EVENT_ID"] . "_N_Y"];
     } elseif (array_key_exists($arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_all_N_N", $arCurrentUserSubscribe["VISIBLE"])) {
         $strVisible = $arCurrentUserSubscribe["VISIBLE"][$arFields["ENTITY_TYPE"] . "_" . $arFields["ENTITY_ID"] . "_all_N_N"];
     } elseif ($bHasLogEventCreatedBy && array_key_exists("U_" . $arFields["USER_ID"] . "_all_N_Y", $arCurrentUserSubscribe["VISIBLE"])) {
         $strVisible = $arCurrentUserSubscribe["VISIBLE"]["U_" . $arFields["USER_ID"] . "_all_N_Y"];
     } elseif (array_key_exists($arFields["ENTITY_TYPE"], $arMyEntities) && in_array($arFields["ENTITY_ID"], $arMyEntities[$arFields["ENTITY_TYPE"]]) && array_key_exists($arFields["ENTITY_TYPE"] . "_0_" . $arFields["EVENT_ID"] . "_Y_N", $arCurrentUserSubscribe["VISIBLE"])) {
         $strVisible = $arCurrentUserSubscribe["VISIBLE"][$arFields["ENTITY_TYPE"] . "_0_" . $arFields["EVENT_ID"] . "_Y_N"];
     } elseif (array_key_exists($arFields["ENTITY_TYPE"], $arMyEntities) && in_array($arFields["ENTITY_ID"], $arMyEntities[$arFields["ENTITY_TYPE"]]) && array_key_exists($arFields["ENTITY_TYPE"] . "_0_all_Y_N", $arCurrentUserSubscribe["VISIBLE"])) {
         $strVisible = $arCurrentUserSubscribe["VISIBLE"][$arFields["ENTITY_TYPE"] . "_0_all_Y_N"];
     } elseif (array_key_exists($arFields["ENTITY_TYPE"] . "_0_" . $arFields["EVENT_ID"] . "_N_N", $arCurrentUserSubscribe["VISIBLE"])) {
         $strVisible = $arCurrentUserSubscribe["VISIBLE"][$arFields["ENTITY_TYPE"] . "_0_" . $arFields["EVENT_ID"] . "_N_N"];
     } elseif (array_key_exists($arFields["ENTITY_TYPE"] . "_0_all_N_N", $arCurrentUserSubscribe["VISIBLE"])) {
         $strVisible = $arCurrentUserSubscribe["VISIBLE"][$arFields["ENTITY_TYPE"] . "_0_all_N_N"];
     } else {
         $strVisible = "Y";
     }
     return $strVisible;
 }
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:24,代碼來源:include.php

示例3: str_replace

 }
 if ($arEvent) {
     $arSubscribe["EVENT"]["TITLE"] = $arEvent["ENTITIES"][$entity_type]["TITLE_SETTINGS"];
     if (array_key_exists("NAME_FORMATTED", $arEntityTmp) && strlen($arEntityTmp["NAME_FORMATTED"]) > 0) {
         $arSubscribe["EVENT"]["TITLE_1"] = str_replace(array("#TITLE#"), array(array_key_exists("~NAME_FORMATTED", $arEntityTmp) ? $arEntityTmp["~NAME_FORMATTED"] : $arEntityTmp["NAME_FORMATTED"]), $arEvent["ENTITIES"][$entity_type]["TITLE_SETTINGS_1"]);
         $arSubscribe["EVENT"]["TITLE_2"] = str_replace(array("#TITLE#"), array(array_key_exists("~NAME_FORMATTED", $arEntityTmp) ? $arEntityTmp["~NAME_FORMATTED"] : $arEntityTmp["NAME_FORMATTED"]), $arEvent["ENTITIES"][$entity_type]["TITLE_SETTINGS_2"]);
     }
 }
 if (array_key_exists($entity_type, $GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"]) && array_key_exists("TITLE_SETTINGS_ALL", $GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"][$entity_type]) && strlen($GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"][$entity_type]["TITLE_SETTINGS_ALL"]) > 0) {
     $arSubscribe["ALL"]["TITLE"] = $GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"][$entity_type]["TITLE_SETTINGS_ALL"];
 }
 if (array_key_exists($entity_type, $GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"]) && array_key_exists("TITLE_SETTINGS_ALL_1", $GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"][$entity_type]) && strlen($GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"][$entity_type]["TITLE_SETTINGS_ALL_1"]) > 0 && array_key_exists("NAME_FORMATTED", $arEntityTmp) && strlen($arEntityTmp["NAME_FORMATTED"]) > 0) {
     $arSubscribe["ALL"]["TITLE_1"] = str_replace(array("#TITLE#"), array(array_key_exists("~NAME_FORMATTED", $arEntityTmp) ? $arEntityTmp["~NAME_FORMATTED"] : $arEntityTmp["NAME_FORMATTED"]), $GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"][$entity_type]["TITLE_SETTINGS_ALL_1"]);
     $arSubscribe["ALL"]["TITLE_2"] = str_replace(array("#TITLE#"), array(array_key_exists("~NAME_FORMATTED", $arEntityTmp) ? $arEntityTmp["~NAME_FORMATTED"] : $arEntityTmp["NAME_FORMATTED"]), $GLOBALS["arSocNetAllowedSubscribeEntityTypesDesc"][$entity_type]["TITLE_SETTINGS_ALL_2"]);
 }
 if (CSocNetLogTools::HasLogEventCreatedBy($event_id)) {
     $value_default = "N";
     $strTmp = "TRANSPORT";
     if (!array_key_exists("CB_EVENT", $arSubscribe) || !array_key_exists($strTmp, $arSubscribe["CB_EVENT"]) || $arSubscribe["CB_EVENT"][$strTmp] == "I") {
         if (array_key_exists("CB_ALL", $arSubscribe) && array_key_exists($strTmp, $arSubscribe["CB_ALL"]) && $arSubscribe["CB_ALL"][$strTmp] != "I") {
             $arSubscribe["CB_EVENT"][$strTmp] = $arSubscribe["CB_ALL"][$strTmp];
             $arSubscribe["CB_EVENT"][$strTmp . "_INHERITED"] = true;
         } else {
             $arSubscribe["CB_EVENT"][$strTmp] = $value_default;
             $arSubscribe["CB_EVENT"][$strTmp . "_INHERITED"] = true;
         }
     }
     if (!array_key_exists("CB_ALL", $arSubscribe) || !array_key_exists($strTmp, $arSubscribe["CB_ALL"]) || $arSubscribe["CB_ALL"][$strTmp] == "I") {
         $arSubscribe["CB_ALL"][$strTmp] = $value_default;
         $arSubscribe["CB_ALL"][$strTmp . "_INHERITED"] = true;
     }
開發者ID:k-kalashnikov,項目名稱:geekcon_new,代碼行數:31,代碼來源:ajax.php

示例4: HasLogEventCreatedBy

 function HasLogEventCreatedBy($event_id)
 {
     return CSocNetLogTools::HasLogEventCreatedBy($event_id);
 }
開發者ID:k-kalashnikov,項目名稱:geekcon_new,代碼行數:4,代碼來源:functions.php


注:本文中的CSocNetLogTools::HasLogEventCreatedBy方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。