当前位置: 首页>>代码示例>>PHP>>正文


PHP Operator::ReadParams方法代码示例

本文整理汇总了PHP中Operator::ReadParams方法的典型用法代码示例。如果您正苦于以下问题:PHP Operator::ReadParams方法的具体用法?PHP Operator::ReadParams怎么用?PHP Operator::ReadParams使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Operator的用法示例。


在下文中一共展示了Operator::ReadParams方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ReloadGroups

 function ReloadGroups($_overlay = false, $_preSelect = true)
 {
     Server::InitDataBlock(array("INTERNAL", "FILTERS"));
     $grParam = UserGroup::ReadParams();
     $opParam = Operator::ReadParams();
     if (!empty($grParam) && empty($this->Browsers[0]->DesiredChatGroup)) {
         $this->Browsers[0]->DesiredChatGroup = $grParam;
     }
     if (!empty($opParam)) {
         $this->Browsers[0]->DesiredChatPartner = Operator::GetSystemId($opParam);
     }
     $groupbuilder = new GroupBuilder($this->Browsers[0]->DesiredChatGroup, $this->Browsers[0]->DesiredChatPartner);
     $groupbuilder->Generate($this);
     if (!empty($opParam)) {
         $this->Browsers[0]->DesiredChatPartner = Operator::GetSystemId($opParam);
     }
     $groupsAvailable = To::BoolString($groupbuilder->GroupAvailable || isset($_POST[GET_EXTERN_RESET]) && strlen($groupbuilder->ErrorHTML) <= 2);
     $_preSelect = $_preSelect ? Encoding::Base64UrlEncode($this->Browsers[0]->DesiredChatGroup) : "";
     $this->AddFunctionCall("lz_chat_set_groups(" . $groupsAvailable . ",\"" . $groupbuilder->Result . "\" ," . $groupbuilder->ErrorHTML . ",'" . $_preSelect . "');", false);
     if (!$_overlay) {
         $this->AddFunctionCall("lz_chat_release(" . $groupsAvailable . "," . $groupbuilder->ErrorHTML . ");", false);
     }
 }
开发者ID:sgh1986915,项目名称:laravel-eyerideonline,代码行数:23,代码来源:objects.global.users.inc.php

示例2: GetPredefinedOperator

 function GetPredefinedOperator($_user, &$direct_target, $_allowBots, $_requireBot, $desired = "")
 {
     if (!empty($this->TargetOperatorSystemId) && isset(Server::$Operators[$this->TargetOperatorSystemId]) && Server::$Operators[$this->TargetOperatorSystemId]->Status < USER_STATUS_OFFLINE) {
         if (!(!empty($this->TargetGroupId) && !in_array($this->TargetGroupId, Server::$Operators[$this->TargetOperatorSystemId]->GetGroupList(true)))) {
             $desired = $this->TargetOperatorSystemId;
         }
     } else {
         $this->TargetOperatorSystemId = null;
         $opParam = Operator::ReadParams();
         if (!empty($opParam)) {
             $desired = $direct_target = Operator::GetSystemId($opParam);
         } else {
             if (!Is::Null(Cookie::Get("internal_user")) && !empty(Server::$Configuration->File["gl_save_op"])) {
                 $desired = Operator::GetSystemId(Cookie::Get("internal_user"));
                 if (!empty(Server::$Operators[$desired]) && !(!empty($this->TargetGroupId) && !in_array($this->TargetGroupId, Server::$Operators[$desired]->GetGroupList(true)))) {
                     $direct_target = $desired;
                 } else {
                     $desired = "";
                 }
             } else {
                 if (empty($desired) && !empty(Server::$Configuration->File["gl_save_op"])) {
                     $desired = $_user->GetLastChatOperator(true);
                 }
             }
         }
     }
     if (!empty($desired) && Server::$Operators[$desired]->MobileSleep($_user->Browsers[0])) {
         $this->TargetOperatorSystemId = $desired = "";
     } else {
         if (!empty($desired) && !$_allowBots && Server::$Operators[$desired]->IsBot) {
             $this->TargetOperatorSystemId = $desired = "";
         } else {
             if (!empty($desired) && $_requireBot && !Server::$Operators[$desired]->IsBot) {
                 $this->TargetOperatorSystemId = $desired = "";
             }
         }
     }
     return $desired;
 }
开发者ID:sgh1986915,项目名称:laravel-eyerideonline,代码行数:39,代码来源:objects.external.inc.php

示例3: getPredefinedOperator

function getPredefinedOperator(&$fromCookie, $_allowBots, $_requireBot, $desired = "")
{
    global $USER, $INTERNAL, $CONFIG;
    if (!empty($USER->Browsers[0]->DesiredChatPartner) && isset($INTERNAL[$USER->Browsers[0]->DesiredChatPartner]) && $INTERNAL[$USER->Browsers[0]->DesiredChatPartner]->Status < USER_STATUS_OFFLINE) {
        if (!(!empty($USER->Browsers[0]->DesiredChatGroup) && !in_array($USER->Browsers[0]->DesiredChatGroup, $INTERNAL[$USER->Browsers[0]->DesiredChatPartner]->GetGroupList(true)))) {
            $desired = $USER->Browsers[0]->DesiredChatPartner;
        }
    } else {
        $USER->Browsers[0]->DesiredChatPartner = null;
        $opParam = Operator::ReadParams();
        if (!empty($opParam)) {
            $desired = Operator::GetSystemId($opParam);
        } else {
            if (!isnull(getCookieValue("internal_user")) && !empty($CONFIG["gl_save_op"])) {
                $desired = Operator::GetSystemId(getCookieValue("internal_user"));
                if (!empty($INTERNAL[$desired]) && !(!empty($USER->Browsers[0]->DesiredChatGroup) && !in_array($USER->Browsers[0]->DesiredChatGroup, $INTERNAL[$desired]->GetGroupList(true)))) {
                    $fromCookie = $desired;
                } else {
                    $desired = "";
                }
            } else {
                if (empty($desired) && !empty($CONFIG["gl_save_op"])) {
                    $desired = $USER->GetLastChatOperator(true);
                }
            }
        }
    }
    if (!empty($desired) && $INTERNAL[$desired]->MobileSleep($USER->Browsers[0])) {
        $USER->Browsers[0]->DesiredChatPartner = $desired = "";
    } else {
        if (!empty($desired) && !$_allowBots && $INTERNAL[$desired]->IsBot) {
            $USER->Browsers[0]->DesiredChatPartner = $desired = "";
        } else {
            if (!empty($desired) && $_requireBot && !$INTERNAL[$desired]->IsBot) {
                $USER->Browsers[0]->DesiredChatPartner = $desired = "";
            }
        }
    }
    return $desired;
}
开发者ID:bgabor,项目名称:RenaniaOpencart,代码行数:40,代码来源:functions.external.inc.php


注:本文中的Operator::ReadParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。