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


PHP erLhcoreClassDesign::baseurlRerun方法代码示例

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


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

示例1: time

            }
        } else {
            $chat->status_sub = erLhcoreClassModelChat::STATUS_SUB_START_ON_KEY_UP;
        }
        // Set chat attributes for transfer workflow logic
        if ($chat->department !== false && $chat->department->department_transfer_id > 0) {
            $chat->transfer_if_na = 1;
            $chat->transfer_timeout_ts = time();
            $chat->transfer_timeout_ac = $chat->department->transfer_timeout;
        }
        $chat->last_msg_id = $msg->id;
        $chat->last_user_msg_time = time();
        $chat->saveThis();
        erLhcoreClassChatEventDispatcher::getInstance()->dispatch('chat.chat_started', array('chat' => &$chat, 'msg' => $messageInitial));
        erLhcoreClassChat::updateDepartmentStats($chat->department);
        $Result = erLhcoreClassModule::reRun(erLhcoreClassDesign::baseurlRerun('chat/chatwidgetchat') . '/' . $chat->id . '/' . $chat->hash . $modeAppendTheme . '/(cstarted)/chat_started_by_invitation_cb');
        return true;
    } else {
        $tpl->set('errors', $Errors);
    }
}
$tpl->set('start_data_fields', $startDataFields);
// User this only if not post
if (!ezcInputForm::hasPostData()) {
    $definition = array('name' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw', null, FILTER_REQUIRE_ARRAY), 'value' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw', null, FILTER_REQUIRE_ARRAY), 'type' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string', null, FILTER_REQUIRE_ARRAY), 'size' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string', null, FILTER_REQUIRE_ARRAY), 'req' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string', null, FILTER_REQUIRE_ARRAY), 'sh' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string', null, FILTER_REQUIRE_ARRAY), 'hattr' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string', null, FILTER_REQUIRE_ARRAY), 'value_items_admin' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw', null, FILTER_REQUIRE_ARRAY), 'via_hidden' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw', null, FILTER_REQUIRE_ARRAY));
    $form = new ezcInputForm(INPUT_GET, $definition);
    if ($form->hasValidData('name') && !empty($form->name)) {
        $inputData->name_items = $form->name;
    }
    if ($form->hasValidData('sh') && !empty($form->sh)) {
        $inputData->value_show = $form->sh;
开发者ID:remdex,项目名称:livehelperchat,代码行数:31,代码来源:readoperatormessage.php

示例2: list

    list($chatID, $hash) = explode('_', $Params['user_parameters_unordered']['hash']);
    $sound = is_numeric($Params['user_parameters_unordered']['sound']) ? '/(sound)/' . $Params['user_parameters_unordered']['sound'] : '';
    try {
        $chat = erLhcoreClassModelChat::fetch($chatID);
        if ($chat->status == erLhcoreClassModelChat::STATUS_CLOSED_CHAT) {
            // Reopen chat automatically if possible
            if (erLhcoreClassModelChatConfig::fetch('automatically_reopen_chat')->current_value == 1 && erLhcoreClassModelChatConfig::fetch('reopen_chat_enabled')->current_value == 1 && erLhcoreClassModelChatConfig::fetch('allow_reopen_closed')->current_value == 1 && erLhcoreClassChat::canReopen($chat) !== false) {
                $sound = is_numeric($Params['user_parameters_unordered']['sound']) ? '/(sound)/' . $Params['user_parameters_unordered']['sound'] : '';
                erLhcoreClassModule::redirect('chat/reopen', '/' . $chatID . '/' . $hash . '/(mode)/widget' . $modeAppend . $modeAppendTheme . $sound);
                exit;
            }
        }
    } catch (Exception $e) {
    }
    // Rerun module
    $Result = erLhcoreClassModule::reRun(erLhcoreClassDesign::baseurlRerun('chat/chatwidgetchat') . '/' . $chatID . '/' . $hash . $modeAppend . $modeAppendTheme . $sound);
    return true;
}
$tpl = erLhcoreClassTemplate::getInstance('lhchat/chatwidget.tpl.php');
$tpl->set('referer', '');
$tpl->set('referer_site', '');
$tpl->set('theme', $theme);
$disabled_department = false;
if (is_array($Params['user_parameters_unordered']['department']) && erLhcoreClassModelChatConfig::fetch('hide_disabled_department')->current_value == 1) {
    try {
        erLhcoreClassChat::validateFilterIn($Params['user_parameters_unordered']['department']);
        $departments = erLhcoreClassModelDepartament::getList(array('filterin' => array('id' => $Params['user_parameters_unordered']['department'])));
        $disabledAll = true;
        foreach ($departments as $department) {
            if ($department->disabled == 0) {
                $disabledAll = false;
开发者ID:sslavescu,项目名称:livehelperchat,代码行数:31,代码来源:chatwidget.php


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