__construct() public method

public __construct ( $state )
Esempio n. 1
0
 public function __construct($boundary)
 {
     $this->boundary = $boundary;
     parent::__construct('wait_for_boundary_start');
 }
 public function __construct($transport, $jid, $pass = null, $resource = null, $force_tls = false)
 {
     $this->jid = $jid;
     $this->pass = $pass;
     $this->resource = $resource ? $resource : md5(time());
     $this->force_tls = $force_tls;
     $this->trans = $transport;
     $this->xml = new JAXLXmlStream();
     $this->trans->set_callback(array(&$this->xml, "parse"));
     $this->xml->set_callback(array(&$this, "start_cb"), array(&$this, "end_cb"), array(&$this, "stanza_cb"));
     parent::__construct("setup");
 }
 public function __construct($sock, $addr)
 {
     $this->sock = $sock;
     $addr = explode(":", $addr);
     $this->ip = $addr[0];
     if (sizeof($addr) == 2) {
         $this->port = $addr[1];
     }
     parent::__construct("setup");
 }