__construct() 공개 메소드

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
 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));
 }
예제 #4
0
 public function __construct($ip, $port)
 {
     parent::__construct($ip, $port);
     $this->proto = new Protocol($this);
 }