function getComments($post) { $pd = new \Modl\PostnDAO(); return $pd->getComments($post); //$view = $this->tpl(); //$view->assign('comments', $comments); }
function onComments($packet) { list($server, $node, $id) = array_values($packet->content); $p = new \Modl\ContactPostn(); $p->nodeid = $id; $pd = new \Modl\PostnDAO(); $comments = $pd->getComments($p); $view = $this->tpl(); $view->assign('comments', $comments); $view->assign('server', $server); $view->assign('node', $node); $view->assign('id', $id); $html = $view->draw('_post_comments', true); RPC::call('movim_fill', 'comments', $html); }
function getComments($post) { $pd = new \Modl\PostnDAO(); return $pd->getComments($post); }