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


PHP erLhAbstractModelWidgetTheme::fetch方法代码示例

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


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

示例1: header

<?php

// For IE to support headers if chat is installed on different domain
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
$tpl = erLhcoreClassTemplate::getInstance('lhsurvey/fillwidget.tpl.php');
$embedMode = false;
if ((string) $Params['user_parameters_unordered']['mode'] == 'embed') {
    $embedMode = true;
}
if (isset($Params['user_parameters_unordered']['theme']) && (int) $Params['user_parameters_unordered']['theme'] > 0) {
    try {
        $theme = erLhAbstractModelWidgetTheme::fetch($Params['user_parameters_unordered']['theme']);
        $Result['theme'] = $theme;
        $tpl->set('theme', $theme);
    } catch (Exception $e) {
    }
}
try {
    if (is_numeric((string) $Params['user_parameters_unordered']['chatid']) && $Params['user_parameters_unordered']['chatid'] > 0) {
        if ((string) $Params['user_parameters_unordered']['hash'] != '') {
            $hash = $Params['user_parameters_unordered']['hash'];
        }
        if (is_numeric($Params['user_parameters_unordered']['chatid'])) {
            $chat = erLhcoreClassModelChat::fetch($Params['user_parameters_unordered']['chatid']);
        }
    } else {
        if ((string) $Params['user_parameters_unordered']['hash'] != '') {
            list($chatID, $hash) = explode('_', $Params['user_parameters_unordered']['hash']);
            $chat = erLhcoreClassModelChat::fetch($chatID);
        }
    }
开发者ID:remdex,项目名称:livehelperchat,代码行数:31,代码来源:fillwidget.php

示例2: explode

<?php

$theme = erLhAbstractModelWidgetTheme::fetch((int) $Params['user_parameters']['theme']);
$exportData = $theme->getState();
unset($exportData['id']);
unset($exportData['online_image']);
unset($exportData['online_image_path']);
unset($exportData['offline_image']);
unset($exportData['offline_image_path']);
unset($exportData['logo_image']);
unset($exportData['logo_image_path']);
unset($exportData['need_help_image_path']);
unset($exportData['need_help_image']);
unset($exportData['copyright_image_path']);
unset($exportData['operator_image_path']);
unset($exportData['copyright_image']);
unset($exportData['operator_image']);
unset($exportData['minimize_image']);
unset($exportData['restore_image']);
unset($exportData['close_image']);
unset($exportData['popup_image']);
unset($exportData['minimize_image_path']);
unset($exportData['restore_image_path']);
unset($exportData['close_image_path']);
unset($exportData['popup_image_path']);
if ($theme->logo_image_url != '') {
    $exportData['logo_image_data'] = base64_encode($theme->getContentAttribute('logo_image'));
    $parts = explode('.', $theme->logo_image);
    $exportData['logo_image_data_ext'] = array_pop($parts);
}
if ($theme->copyright_image_url != '') {
开发者ID:sirromas,项目名称:medical,代码行数:31,代码来源:export.php

示例3: erLhcoreClassModelChat

}
$tpl->set('playsound', (string) $Params['user_parameters_unordered']['playsound'] == 'true' && !isset($_POST['askQuestion']) && erLhcoreClassModelChatConfig::fetch('sound_invitation')->current_value == 1);
$chat = new erLhcoreClassModelChat();
$modeAppendTheme = '';
if (isset($Params['user_parameters_unordered']['theme']) && (int) $Params['user_parameters_unordered']['theme'] > 0) {
    try {
        $theme = erLhAbstractModelWidgetTheme::fetch($Params['user_parameters_unordered']['theme']);
        $Result['theme'] = $theme;
        $modeAppendTheme = '/(theme)/' . $theme->id;
    } catch (Exception $e) {
    }
} else {
    $defaultTheme = erLhcoreClassModelChatConfig::fetch('default_theme_id')->current_value;
    if ($defaultTheme > 0) {
        try {
            $theme = erLhAbstractModelWidgetTheme::fetch($defaultTheme);
            $Result['theme'] = $theme;
            $modeAppendTheme = '/(theme)/' . $theme->id;
        } catch (Exception $e) {
        }
    }
}
if (isset($_POST['askQuestion'])) {
    $validationFields = array();
    $validationFields['Question'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw');
    $validationFields['DepartamentID'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'int', array('min_range' => 1));
    $validationFields['DepartmentIDDefined'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'int', array('min_range' => 1), FILTER_REQUIRE_ARRAY);
    $validationFields['operator'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'int', array('min_range' => 1));
    $validationFields['Email'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'validate_email');
    $validationFields['Username'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw');
    $validationFields['Phone'] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string');
开发者ID:p4prawin,项目名称:livechat,代码行数:31,代码来源:readoperatormessage.php

示例4: catch

     $referer = $_GET['URLReferer'];
     $tpl->set('referer', $referer);
 }
 if (isset($_POST['URLRefer'])) {
     $referer = $_POST['URLRefer'];
     $tpl->set('referer', $_POST['URLRefer']);
 }
 $embedMode = false;
 $modeAppend = '';
 if ((string) $Params['user_parameters_unordered']['mode'] == 'embed') {
     $embedMode = true;
     $modeAppend = '/(mode)/embed';
 }
 if ($themeID > 0) {
     try {
         $theme = erLhAbstractModelWidgetTheme::fetch($themeID);
         $Result['theme'] = $theme;
         $modeAppend .= '/(theme)/' . $theme->id;
     } catch (Exception $e) {
     }
 }
 $tpl->set('append_mode', $modeAppend);
 $Result['content'] = $tpl->fetch();
 $Result['pagelayout'] = 'widget';
 $Result['pagelayout_css_append'] = 'widget-chat';
 $Result['dynamic_height'] = true;
 $Result['dynamic_height_message'] = 'lhc_sizing_chatbox';
 $Result['additional_post_message'] = 'lhc_chb:nick:' . htmlspecialchars($visitorName, ENT_QUOTES);
 $Result['is_sync_required'] = true;
 if ($embedMode == true) {
     $Result['dynamic_height_message'] = 'lhc_sizing_chatbox_page';
开发者ID:Adeelgill,项目名称:livehelperchat,代码行数:31,代码来源:chatwidget.php


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