本文整理汇总了PHP中erLhcoreClassChat::getFirstUserMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassChat::getFirstUserMessage方法的具体用法?PHP erLhcoreClassChat::getFirstUserMessage怎么用?PHP erLhcoreClassChat::getFirstUserMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类erLhcoreClassChat
的用法示例。
在下文中一共展示了erLhcoreClassChat::getFirstUserMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
$inputData->accept_tos = false;
$inputData->question = '';
$inputData->operator = (int) $Params['user_parameters_unordered']['operator'];
// Perhaps user was redirected to leave a message form because chat was not acceptend in some time interval
if ((string) $Params['user_parameters_unordered']['chatprefill'] != '') {
list($chatID, $hash) = explode('_', $Params['user_parameters_unordered']['chatprefill']);
try {
$chatPrefill = erLhcoreClassModelChat::fetch($chatID);
if ($chatPrefill->hash == $hash) {
$inputData->chatprefill = $Params['user_parameters_unordered']['chatprefill'];
$inputData->username = $chatPrefill->nick;
$inputData->departament_id = $chatPrefill->dep_id;
$inputData->email = $chatPrefill->email;
$inputData->phone = $chatPrefill->phone;
$inputData->accept_tos = true;
$inputData->question = erLhcoreClassChat::getFirstUserMessage($chatPrefill->id);
} else {
unset($chatPrefill);
}
} catch (Exception $e) {
// Do nothing
}
}
$inputData->username = isset($_GET['prefill']['username']) ? (string) $_GET['prefill']['username'] : $inputData->username;
$inputData->hash_resume = false;
$inputData->vid = false;
$inputData->question = isset($_GET['prefill']['question']) ? (string) $_GET['prefill']['question'] : $inputData->question;
$inputData->email = isset($_GET['prefill']['email']) ? (string) $_GET['prefill']['email'] : $inputData->email;
$inputData->phone = isset($_GET['prefill']['phone']) ? (string) $_GET['prefill']['phone'] : $inputData->phone;
$inputData->validate_start_chat = false;
$inputData->name_items = array();