• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP erLhAbstractModelWidgetTheme类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: removeInstanceData

 public function removeInstanceData()
 {
     foreach (erLhAbstractModelFormCollected::getList(array('limit' => 1000000)) as $item) {
         $item->removeThis();
     }
     foreach (erLhAbstractModelWidgetTheme::getList(array('limit' => 1000000)) as $item) {
         $item->removeThis();
     }
     foreach (erLhcoreClassChat::getList(array('limit' => 1000000)) as $item) {
         $item->removeThis();
     }
     foreach (erLhcoreClassChat::getList(array('limit' => 1000000), 'erLhcoreClassModelChatFile', 'lh_chat_file') as $item) {
         $item->removeThis();
     }
     foreach (erLhcoreClassModelUser::getUserList(array('limit' => 1000000)) as $item) {
         $item->removeFile();
     }
     // Dispatch event for extensions
     erLhcoreClassChatEventDispatcher::getInstance()->dispatch('instance.destroyed', array('instance' => $this));
     return true;
 }
开发者ID:hgeorge123,项目名称:automated-hosting,代码行数:21,代码来源:erlhcoreclassmodelinstance.php


示例2: foreach

		            <option value="http:">http:</option>
		            <option value="https:">https:</option>      
		    </select>    	    
    </div>
    <div class="columns large-6 end">
    	<label><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Theme');
?>
</label>
        <select id="ThemeID">
        	<option value="0"><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode', 'Default');
?>
</option>
			<?php 
foreach (erLhAbstractModelWidgetTheme::getList(array('limit' => 1000)) as $theme) {
    ?>
			   <option value="<?php 
    echo $theme->id;
    ?>
"><?php 
    echo htmlspecialchars($theme->name);
    ?>
</option>
			<?php 
}
?>
		</select>
	</div>
</div>
<label><input type="checkbox" id="DisableMiminize" value="on"><?php 
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:31,代码来源:htmlcode.tpl.php


示例3: array

$tpl = erLhcoreClassTemplate::getInstance('lhtheme/import.tpl.php');
if (ezcInputForm::hasPostData()) {
    if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) {
        erLhcoreClassModule::redirect('theme/import');
        exit;
    }
    if (erLhcoreClassSearchHandler::isFile('themefile', array('json'))) {
        $dir = 'var/tmpfiles/';
        erLhcoreClassChatEventDispatcher::getInstance()->dispatch('theme.temppath', array('dir' => &$dir));
        erLhcoreClassFileUpload::mkdirRecursive($dir);
        $filename = erLhcoreClassSearchHandler::moveUploadedFile('themefile', $dir);
        $content = file_get_contents($dir . $filename);
        unlink($dir . $filename);
        $data = json_decode($content);
        if ($data !== null) {
            $widgetTheme = new erLhAbstractModelWidgetTheme();
            $data = (array) $data;
            $imgData = array();
            if (isset($data['logo_image_data'])) {
                $imgData['logo_image'] = $data['logo_image_data'];
                unset($data['logo_image_data']);
            }
            if (isset($data['need_help_image_data'])) {
                $imgData['need_help_image'] = $data['need_help_image_data'];
                unset($data['need_help_image_data']);
            }
            if (isset($data['online_image_data'])) {
                $imgData['online_image'] = $data['online_image_data'];
                unset($data['online_image_data']);
            }
            if (isset($data['offline_image_data'])) {
开发者ID:mdb-webdev,项目名称:livehelperchat,代码行数:31,代码来源:import.php


示例4: 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


示例5: 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


示例6: 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


示例7: 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类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP erLhcoreClassChat类代码示例发布时间:2022-05-23
下一篇:
PHP erConfigClassLhConfig类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap