本文整理汇总了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');
}
示例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);
}
示例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');
}
示例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');
}
示例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));
//}
}
示例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');
}
示例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);
}
示例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);
}
示例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');
}
示例10: ajaxGetPost
function ajaxGetPost($id)
{
$html = $this->preparePost($id);
$header = $this->prepareHeader($id);
Header::fill($header);
RPC::call('movim_fill', 'post_widget', $html);
}
示例11: onConferenceSubject
function onConferenceSubject($packet)
{
$header = $this->prepareHeaderRoom($packet->content->jidfrom);
Header::fill($header);
}