示例#1
0
文件: PostDelete.php 项目: movim/moxl
 public function handle($stanza, $parent = false)
 {
     $pd = new \modl\PostnDAO();
     $pd->delete($this->_id);
     $td = new \Modl\TagDAO();
     $td->delete($this->_id);
     $this->pack(['server' => $this->_to, 'node' => $this->_node, 'id' => $this->_id]);
     $this->deliver();
 }
示例#2
0
文件: Postn.php 项目: Anon215/movim
 public function getTags()
 {
     $td = new \Modl\TagDAO();
     $tags = $td->getTags($this->nodeid);
     if (is_array($tags)) {
         return array_map(function ($tag) {
             return $tag->tag;
         }, $tags);
     }
 }