本文整理匯總了PHP中Dialog::fill方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dialog::fill方法的具體用法?PHP Dialog::fill怎麽用?PHP Dialog::fill使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Dialog
的用法示例。
在下文中一共展示了Dialog::fill方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: onTestCreate
function onTestCreate($packet)
{
$server = $packet->content;
$view = $this->tpl();
$view->assign('server', $server);
Dialog::fill($view->draw('_groups_add', true));
}
示例2: ajaxList
/**
* @brief Display the room list
*/
function ajaxList($room)
{
if (!$this->validateRoom($room)) {
return;
}
$view = $this->tpl();
$cd = new \Modl\ContactDAO();
$view->assign('list', $cd->getPresences($room));
Dialog::fill($view->draw('_rooms_list', true), true);
}
示例3: onCommand
function onCommand($package)
{
$command = $package->content;
$view = $this->tpl();
if (isset($command->note)) {
$view->assign('note', $command->note);
Dialog::fill($view->draw('_adhoc_note', true));
}
if (isset($command->x)) {
$xml = new \XMPPtoForm();
$form = $xml->getHTML($command->x->asXML());
$view->assign('form', $form);
$view->assign('attributes', $command->attributes());
$view->assign('actions', null);
if (isset($command->actions)) {
$view->assign('actions', $command->actions);
}
Dialog::fill($view->draw('_adhoc_form', true), true);
}
RPC::call('AdHoc.initForm');
}
示例4: ajaxAskUnsubscribe
function ajaxAskUnsubscribe($server, $node)
{
if (!$this->validateServerNode($server, $node)) {
return;
}
$view = $this->tpl();
$view->assign('server', $server);
$view->assign('node', $node);
$pd = new \Modl\ItemDAO();
$item = $pd->getItem($server, $node);
if (isset($item)) {
$view->assign('item', $item);
} else {
$view->assign('item', null);
}
Dialog::fill($view->draw('_group_unsubscribe', true));
}
示例5: ajaxGetSubject
/**
* @brief Get the subject form of a chatroom
*/
function ajaxGetSubject($room)
{
if (!$this->validateJid($room)) {
return;
}
$view = $this->tpl();
$md = new \Modl\MessageDAO();
$s = $md->getRoomSubject($room);
$view->assign('room', $room);
$view->assign('subject', $s);
Dialog::fill($view->draw('_chat_subject', true));
}
示例6: ajaxOpenDialog
function ajaxOpenDialog()
{
Dialog::fill($this->preparePresenceList());
RPC::call('Presence.refresh');
}
示例7: ajaxDeleteContact
function ajaxDeleteContact($jid)
{
if (!$this->validateJid($jid)) {
return;
}
$view = $this->tpl();
$view->assign('jid', $jid);
Dialog::fill($view->draw('_contact_delete', true));
}
示例8: ajaxHelp
function ajaxHelp()
{
$view = $this->tpl();
Dialog::fill($view->draw('_publish_help', true), true);
}
示例9: ajaxDelete
function ajaxDelete($to, $node, $id)
{
$view = $this->tpl();
$view->assign('to', $to);
$view->assign('node', $node);
$view->assign('id', $id);
Dialog::fill($view->draw('_post_delete', true));
}
示例10: ajaxDisplaySearch
/**
* @brief Display the search contact form
*/
function ajaxDisplaySearch($jid = null)
{
$view = $this->tpl();
$view->assign('jid', $jid);
$view->assign('add', $this->call('ajaxAdd', "movim_parse_form('add')"));
$view->assign('search', $this->call('ajaxDisplayFound', 'this.value'));
Dialog::fill($view->draw('_roster_search', true));
}
示例11: ajaxAdd
/**
* @brief Display the add chat form
*/
function ajaxAdd()
{
$view = $this->tpl();
$cd = new \Modl\ContactDAO();
$chats = Cache::c('chats');
if (!isset($chats)) {
$chats = array();
}
$view->assign('chats', array_keys($chats));
$view->assign('top', $cd->getTop(15));
$view->assign('presencestxt', getPresencesTxt());
Dialog::fill($view->draw('_chats_add', true), true);
}
示例12: ajaxRemoveAccount
function ajaxRemoveAccount()
{
$view = $this->tpl();
$view->assign('jid', $this->user->getLogin());
Dialog::fill($view->draw('_account_remove', true));
}
示例13: ajaxRequest
function ajaxRequest()
{
$view = $this->tpl();
Dialog::fill($view->draw('_upload', true));
RPC::call('Upload.init');
}
示例14: ajaxAdd
/**
* @brief Display the add chat form
*/
function ajaxAdd()
{
$view = $this->tpl();
$cd = new \Modl\ContactDAO();
$view->assign('top', $cd->getTop(10));
$view->assign('presencestxt', getPresencesTxt());
Dialog::fill($view->draw('_chats_add', true), true);
}
示例15: ajaxAsk
function ajaxAsk($jid)
{
$view = $this->tpl();
$view->assign('jid', $jid);
Dialog::fill($view->draw('_notifs_confirm', true));
}