Beispiel #1
0
 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();
 }
Beispiel #2
0
 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);
     }
 }