__construct() public method

public __construct ( )
Beispiel #1
0
 public function __construct($addr, $port)
 {
     parent::__construct($addr, $port);
     $this->clients = new SplObjectStorage();
     // Services
     $services = @file_get_contents(self::SERVICES_PATH);
     if ($services) {
         $this->websocket_services = (array) json_decode($services, true);
     }
 }
Beispiel #2
0
 public function start($addr, $port)
 {
     parent::__construct($addr, $port);
 }
 public function __construct($ip, $port)
 {
     parent::__construct($ip, $port);
     $this->databaseManager = new DatabaseManager();
     $this->databaseManager->openTable('notifications', json_decode(DatabaseManager::$table5));
 }
 public function __construct($ip, $port)
 {
     parent::__construct($ip, $port);
     $this->proto = new Protocol($this);
 }