function ajaxDeleteConfirm($server, $node) { if (!$this->validateServerNode($server, $node)) { return; } $d = new Delete(); $d->setTo($server)->setNode($node)->request(); }
function ajaxDeleteConfirm($to, $node, $id) { $p = new PostDelete(); $p->setTo($to)->setNode($node)->setId($id)->request(); $p = new Delete(); $p->setTo($to)->setNode('urn:xmpp:microblog:0:comments/' . $id)->request(); }