本文整理汇总了PHP中erLhcoreClassInstance::getInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassInstance::getInstance方法的具体用法?PHP erLhcoreClassInstance::getInstance怎么用?PHP erLhcoreClassInstance::getInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类erLhcoreClassInstance
的用法示例。
在下文中一共展示了erLhcoreClassInstance::getInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __get
public function __get($var)
{
switch ($var) {
case 'amount_front':
$this->amount_front = round($this->amount / 100, 2);
return $this->amount_front;
break;
case 'price_front':
$this->price_front = $this->amount_front . ' ' . $this->currency;
return $this->price_front;
break;
case 'json_data':
$this->json_data = json_decode($this->log, true);
return $this->json_data;
break;
case 'option_selection1':
$this->option_selection1 = isset($this->json_data['option_selection1']) ? $this->json_data['option_selection1'] : '-';
return $this->option_selection1;
break;
case 'date_front':
$this->date_front = date('Y-m-d H:i:s', $this->odate);
return $this->date_front;
break;
case 'instance':
try {
$this->instance = erLhcoreClassInstance::getInstance();
} catch (Exception $e) {
$this->instance = false;
}
return $this->instance;
break;
case 'customer_name':
if ($this->instance !== false && $this->instance->client_title != '') {
$this->customer_name = $this->instance->client_title;
return $this->customer_name;
} else {
$this->customer_name = isset($this->json_data['payer_email']) ? $this->json_data['payer_email'] : '';
if (isset($this->json_data['first_name'])) {
$this->customer_name .= "<br/>" . $this->json_data['first_name'] . ' ' . $this->json_data['last_name'];
}
return $this->customer_name;
}
break;
default:
break;
}
}
示例2:
<?php
$xmppservice_tab_enabled_pre = erLhcoreClassInstance::getInstance()->full_xmpp_chat_supported == 1;
示例3:
<?php
$parts_top_menu_chat_actions_enabled = erLhcoreClassInstance::getInstance()->chat_supported == 1;
示例4:
<?php
$speech_action_enabled = erLhcoreClassInstance::getInstance()->speech_supported == 1;
示例5:
<?php
$chat_chat_tabs_footprint_tab_tab_enabled = erLhcoreClassInstance::getInstance()->footprint_supported == 1;
示例6:
<?php
$operator_remarks_enabled = erLhcoreClassInstance::getInstance()->chatremarks_supported == 1;
示例7: LHCCoBrowserOperator
var lhcbrowserOpeator = new LHCCoBrowserOperator(window,document,{'formsenabled':<?php
erLhcoreClassInstance::getInstance()->cobrowse_forms_supported == 1 ? print 'true' : (print 'false');
?>
,'lhcbase':'<?php
echo (erLhcoreClassSystem::$httpsMode == true ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::baseurl('cobrowse/proxycss');
?>
','httpsmode':<?php
echo erLhcoreClassSystem::$httpsMode == true ? 'true' : 'false';
?>
,'disablejs':<?php
echo erLhcoreClassModelChatConfig::fetch('disable_js_execution')->current_value == 1 ? 'true' : 'false';
?>
,options:{opcontrol:$('#status-icon-control'),opscroll:$('#sync-user-scroll'),opmouse:$('#show-operator-mouse'),scroll:$('#scroll-user-window')},'cpos':{w:<?php
echo $browse->w;
?>
,wh:<?php
echo $browse->wh;
?>
},'cursor':'<?php
echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
?>
//<?php
echo $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::design('images/icons/cursor.png');
?>
','nodejssettings':{'nodejssocket':<?php
echo json_encode(erLhcoreClassModelChatConfig::fetch('sharing_nodejs_sllocation')->current_value);
?>
,'nodejshost':<?php
echo json_encode(erLhcoreClassModelChatConfig::fetch('sharing_nodejs_socket_host')->current_value);
示例8:
<?php
$operator_screenshot_enabled = erLhcoreClassInstance::getInstance()->screenshot_supported == 1;
示例9:
<?php
$user_menu_tabs_personal_canned_messages_tab = erLhcoreClassInstance::getInstance()->cannedmsg_supported == 1;
示例10:
<?php
$chat_onlineusers_section_map_online_tab_enabled = erLhcoreClassInstance::getInstance()->onlinevisitortrck_supported == 1;
示例11:
<?php
$information_tab_user_files_tab_enabled = erLhcoreClassInstance::getInstance()->files_supported == 1;
示例12:
<?php
$system_configuration_links_autoresponder_enabled = erLhcoreClassInstance::getInstance()->autoresponder_supported == 1;
示例13:
<?php
$system_configuration_tabs_generate_js_enabled = erLhcoreClassInstance::getInstance()->chat_supported == 1 || erLhcoreClassInstance::getInstance()->chatbox_supported == 1 || erLhcoreClassInstance::getInstance()->faq_supported == 1 || erLhcoreClassInstance::getInstance()->questionnaire_supported == 1;
示例14:
<?php
$chat_chat_tabs_actions_cobrowse_enabled = erLhcoreClassInstance::getInstance()->cobrowse_supported == 1;
示例15:
<?php
$system_configuration_proactive_enabled = erLhcoreClassInstance::getInstance()->proactive_supported == 1;