示例#1
0
 public function handle($stanza, $parent = false)
 {
     $evt = new \Event();
     $tab = array();
     $nd = new \modl\ItemDAO();
     $n = new \modl\Item();
     $n->setMetadata($stanza->query->x, $this->_to, $this->_node);
     $nd->set($n);
     $evt->runEvent('pubsubmetadata', array($this->_to, $this->_node));
 }
示例#2
0
 public function handle($stanza, $parent = false)
 {
     $id = new \modl\ItemDAO();
     $i = $id->getItem($this->_to, $this->_node);
     if (!$i) {
         $i = new \modl\Item();
     }
     if (isset($stanza->query->x)) {
         $i->setMetadata($stanza->query->x, $this->_to, $this->_node);
     }
     $id->set($i);
     $this->pack([$this->_to, $this->_node]);
     $this->deliver();
 }
示例#3
0
文件: Group.php 项目: vijo/movim
 function prepareEmpty()
 {
     $id = new \modl\ItemDAO();
     $view = $this->tpl();
     $view->assign('servers', $id->getGroupServers());
     $html = $view->draw('_group_empty', true);
     return $html;
 }
示例#4
0
文件: Groups.php 项目: vijo/movim
 private function prepareServer($server)
 {
     $id = new \modl\ItemDAO();
     $view = $this->tpl();
     $view->assign('nodes', $id->getItems($server));
     $view->assign('server', $server);
     $html = $view->draw('_groups_server', true);
     return $html;
 }