本文整理匯總了PHP中CPullOptions::GetWebSocket方法的典型用法代碼示例。如果您正苦於以下問題:PHP CPullOptions::GetWebSocket方法的具體用法?PHP CPullOptions::GetWebSocket怎麽用?PHP CPullOptions::GetWebSocket使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CPullOptions
的用法示例。
在下文中一共展示了CPullOptions::GetWebSocket方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<td ><?=GetMessage("PULL_OPTIONS_PATH_TO_MOBILE_LISTENER_SECURE")?>:</td>
<td><input id="config_path_to_mobile_listener_secure" type="text" size="40" value="<?=htmlspecialcharsbx(CPullOptions::GetListenSecureUrl("", true))?>" name="path_to_mobile_listener_secure" <?=(CPullOptions::GetQueueServerStatus()? '':'disabled="true"')?>></td>
</tr>
<tr>
<td width="40%"></td>
<td width="60%">
<?=GetMessage("PULL_OPTIONS_PATH_TO_MOBILE_LISTENER_DESC")?>
</td>
</tr>
<tr>
<td width="40%"></td>
<td width="60%"></td>
</tr>
<tr>
<td align="right" width="50%"><?=GetMessage("PULL_OPTIONS_WEBSOCKET")?>:</td>
<td><input type="checkbox" size="40" value="Y" <?=(CPullOptions::GetWebSocket()?' checked':'')?> id="config_websocket" name="websocket" <?=(CPullOptions::GetQueueServerStatus() && CPullOptions::GetQueueServerVersion() > 1 ? '': 'disabled="true"')?>></td>
</tr>
<tr>
<td ><?=GetMessage("PULL_OPTIONS_PATH_TO_WEBSOCKET")?>:</td>
<td><input id="config_path_to_websocket" type="text" size="40" value="<?=htmlspecialcharsbx(CPullOptions::GetWebSocketUrl())?>" name="path_to_websocket" <?=(!CPullOptions::GetQueueServerStatus() || !CPullOptions::GetWebSocketStatus() ? 'disabled="true"': '')?></td>
</tr>
<tr>
<td ><?=GetMessage("PULL_OPTIONS_PATH_TO_WEBSOCKET_SECURE")?>:</td>
<td><input id="config_path_to_websocket_secure" type="text" size="40" value="<?=htmlspecialcharsbx(CPullOptions::GetWebSocketSecureUrl())?>" name="path_to_websocket_secure" <?=(!CPullOptions::GetQueueServerStatus() || !CPullOptions::GetWebSocketStatus() ? 'disabled="true"': '')?></td>
</tr>
<tr>
<td width="40%"></td>
<td width="60%">
<?=GetMessage("PULL_OPTIONS_WEBSOCKET_DESC")?>
</td>
</tr>
示例2: GetMessage
?>
</td>
</tr>
<tr class="heading">
<td colspan="2"><b><?php
echo GetMessage('PULL_OPTIONS_HEAD_SUB_WS');
?>
</b></td>
</tr>
<tr>
<td align="right" width="50%"><?php
echo GetMessage("PULL_OPTIONS_WEBSOCKET");
?>
:</td>
<td><input type="checkbox" size="40" value="Y" <?php
echo CPullOptions::GetWebSocket() ? ' checked' : '';
?>
id="config_websocket" name="websocket" <?php
echo CPullOptions::GetQueueServerStatus() && CPullOptions::GetQueueServerVersion() > 1 ? '' : 'disabled="true"';
?>
></td>
</tr>
<tr>
<td ><?php
echo GetMessage("PULL_OPTIONS_PATH_TO_LISTENER");
?>
:</td>
<td><input id="config_path_to_websocket" type="text" size="40" value="<?php
echo htmlspecialcharsbx(CPullOptions::GetWebSocketUrl());
?>
" name="path_to_websocket" <?php