public function handle($stanza, $parent = false) { if ($stanza["type"] == "result") { // We delete the test node we just created Pubsub::delete($this->_to, $this->_node); // And we say that all it's ok $this->pack($this->_to); $this->deliver(); } }
public function request() { $this->store(); Pubsub::delete($this->_to, $this->_node); }