__construct() public method

public __construct ( )
コード例 #1
0
ファイル: server.php プロジェクト: sergio11/teVeo
 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);
     }
 }
コード例 #2
0
ファイル: wsocket.php プロジェクト: kwakucsc/php_framework
 public function start($addr, $port)
 {
     parent::__construct($addr, $port);
 }
コード例 #3
0
 public function __construct($ip, $port)
 {
     parent::__construct($ip, $port);
     $this->databaseManager = new DatabaseManager();
     $this->databaseManager->openTable('notifications', json_decode(DatabaseManager::$table5));
 }
コード例 #4
0
 public function __construct($ip, $port)
 {
     parent::__construct($ip, $port);
     $this->proto = new Protocol($this);
 }