You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 lines
673 B

<?php
namespace Moxl\Xec\Action\Register;
use Moxl\Xec\Action;
use Moxl\Stanza\Register;
class Get extends Action
{
protected $_to;
public function request()
{
$this->store();
Register::get($this->_to);
}
public function handle($stanza, $parent = false)
{
$this->prepare($stanza, $parent);
$this->pack($stanza->query, $this->_to);
$this->deliver();
}
public function error($stanza)
{
$this->deliver();
}
public function errorFeatureNotImplemented()
{
$this->deliver();
}
public function errorServiceUnavailable()
{
$this->deliver();
}
}