當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Header::fill方法代碼示例

本文整理匯總了PHP中Header::fill方法的典型用法代碼示例。如果您正苦於以下問題:PHP Header::fill方法的具體用法?PHP Header::fill怎麽用?PHP Header::fill使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Header的用法示例。


在下文中一共展示了Header::fill方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ajaxCreate

 function ajaxCreate($server, $node, $id = false)
 {
     if (!$this->validateServerNode($server, $node)) {
         return;
     }
     $post = false;
     if ($id) {
         $pd = new \modl\PostnDAO();
         $p = $pd->getItem($id);
         if ($p->isEditable()) {
             $post = $p;
         }
     }
     $view = $this->tpl();
     $view->assign('to', $server);
     $view->assign('node', $node);
     $view->assign('item', $post);
     RPC::call('MovimTpl.fill', 'main section > div:nth-child(2)', $view->draw('_publish_create', true));
     $pd = new \Modl\ItemDAO();
     $item = $pd->getItem($server, $node);
     $view = $this->tpl();
     $view->assign('server', $server);
     $view->assign('node', $node);
     $view->assign('post', $post);
     $view->assign('item', $item);
     Header::fill($view->draw('_publish_header', true));
     if ($id) {
         RPC::call('Publish.initEdit');
     }
     RPC::call('Publish.setEmbed');
 }
開發者ID:christine-ho-dev,項目名稱:movim,代碼行數:31,代碼來源:Publish.php

示例2: ajaxHeader

 function ajaxHeader()
 {
     $id = new \modl\ItemDAO();
     $view = $this->tpl();
     $view->assign('servers', $id->getGroupServers());
     $header = $view->draw('_groups_header', true);
     Header::fill($header);
 }
開發者ID:vijo,項目名稱:movim,代碼行數:8,代碼來源:Groups.php

示例3: ajaxGetContact

 function ajaxGetContact($jid, $page = 0)
 {
     if (!$this->validateJid($jid)) {
         return;
     }
     $html = $this->prepareContact($jid);
     $header = $this->prepareHeader($jid, $page);
     Header::fill($header);
     RPC::call('movim_fill', 'contact_widget', $html);
     RPC::call('MovimTpl.showPanel');
 }
開發者ID:Trim,項目名稱:movim,代碼行數:11,代碼來源:Contact.php

示例4: ajaxGetContact

 function ajaxGetContact($jid, $page = 0)
 {
     if (!$this->validateJid($jid)) {
         return;
     }
     $html = $this->prepareContact($jid);
     $r = new GetItems();
     $r->setTo($jid)->setNode('urn:xmpp:microblog:0')->request();
     Header::fill($header);
     RPC::call('movim_fill', 'contact_widget', $html);
     RPC::call('MovimTpl.showPanel');
     RPC::call('MovimTpl.scrollHeaders');
 }
開發者ID:Hywan,項目名稱:movim,代碼行數:13,代碼來源:Contact.php

示例5: onAffiliations

 function onAffiliations($packet)
 {
     list($affiliations, $server, $node) = array_values($packet->content);
     foreach ($affiliations as $r) {
         if ($r[0] == $this->user->getLogin()) {
             $this->_role = (string) $r[1];
         }
     }
     Header::fill($this->prepareHeader($server, $node));
     //if(isset($this->_role)
     //&& ($this->_role == 'owner' || $this->_role == 'publisher')) {
     //    $view = $this->tpl();
     //    $view->assign('server', $server);
     //    $view->assign('node', $node);
     //    RPC::call('movim_append', 'group_widget', $view->draw('_group_publish', true));
     //}
 }
開發者ID:vijo,項目名稱:movim,代碼行數:17,代碼來源:Group.php

示例6: ajaxCreate

 function ajaxCreate($server, $node)
 {
     if (!$this->validateServerNode($server, $node)) {
         return;
     }
     $view = $this->tpl();
     $view->assign('to', $server);
     $view->assign('node', $node);
     RPC::call('MovimTpl.fill', 'main section > div:nth-child(2)', $view->draw('_publish_create', true));
     $pd = new \Modl\ItemDAO();
     $item = $pd->getItem($server, $node);
     $view = $this->tpl();
     $view->assign('item', $item);
     $view->assign('server', $server);
     $view->assign('node', $node);
     Header::fill($view->draw('_publish_header', true));
     RPC::call('Publish.setEmbed');
 }
開發者ID:Trim,項目名稱:movim,代碼行數:18,代碼來源:Publish.php

示例7: ajaxGetRoom

 /**
  * @brief Get a chatroom
  * @param string $jid
  */
 function ajaxGetRoom($room)
 {
     if (!$this->validateJid($room)) {
         return;
     }
     $html = $this->prepareChat($room, true);
     $header = $this->prepareHeaderRoom($room);
     Header::fill($header);
     RPC::call('movim_fill', 'chat_widget', $html);
     RPC::call('MovimTpl.scrollPanel');
     RPC::call('MovimTpl.showPanel');
     $this->prepareMessages($room, true);
 }
開發者ID:Trim,項目名稱:movim,代碼行數:17,代碼來源:Chat.php

示例8: ajaxGetPost

 function ajaxGetPost($id)
 {
     $pd = new \Modl\PostnDAO();
     $p = $pd->getItem($id);
     $gi = new GetItem();
     $gi->setTo($p->origin)->setNode($p->node)->setId($p->nodeid)->request();
     $html = $this->preparePost($p);
     $header = $this->prepareHeader($id);
     Header::fill($header);
     RPC::call('movim_fill', 'post_widget', $html);
 }
開發者ID:vijo,項目名稱:movim,代碼行數:11,代碼來源:Post.php

示例9: displayItems

 private function displayItems($server, $node)
 {
     if (!$this->validateServerNode($server, $node)) {
         return;
     }
     $html = $this->prepareGroup($server, $node);
     $view = $this->tpl();
     $view->assign('server', $server);
     $view->assign('node', $node);
     $html .= $view->draw('_group_publish', true);
     $header = $this->prepareHeader($server, $node);
     Header::fill($header);
     RPC::call('MovimTpl.fill', '#group_widget.' . stringToUri($server . '_' . $node), $html);
     RPC::call('Group.enableVideos');
 }
開發者ID:ajira86,項目名稱:movim,代碼行數:15,代碼來源:Group.php

示例10: ajaxGetPost

 function ajaxGetPost($id)
 {
     $html = $this->preparePost($id);
     $header = $this->prepareHeader($id);
     Header::fill($header);
     RPC::call('movim_fill', 'post_widget', $html);
 }
開發者ID:Nyco,項目名稱:movim,代碼行數:7,代碼來源:Post.php

示例11: onConferenceSubject

 function onConferenceSubject($packet)
 {
     $header = $this->prepareHeaderRoom($packet->content->jidfrom);
     Header::fill($header);
 }
開發者ID:Hywan,項目名稱:movim,代碼行數:5,代碼來源:Chat.php


注:本文中的Header::fill方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。