コード例 #1
0
 public function __construct()
 {
     $this->authenticator = new DIM_Authenticator();
     $this->versioning = new DIM_Versioning();
     $this->state = new DIM_StateManager("server");
     $this->logger = new DIM_Logger();
     parent::__construct();
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #3
0
 public function __construct()
 {
     $this->database = new Database_IO($this->getDatabaseSettings());
     parent::__construct();
 }
コード例 #4
0
 public function __construct()
 {
     $this->state = new DIM_StateManager("client");
     $this->logger = new DIM_Logger();
     parent::__construct();
 }
コード例 #5
0
 public function __construct()
 {
     $this->databaseInfo = $this->getDatabaseSettings();
     $this->logger = new DIM_Logger();
     parent::__construct();
 }
コード例 #6
0
 public static function testSettings($settings)
 {
     $config = new DIM_Base();
     if ($config->getDatabaseSettings() != null) {
         switch ($settings["mode"]["mode"]) {
             case "client":
                 return DIM_Client::testClientSettings($settings["client"]);
                 break;
             case "server":
                 // PASSED - no settings needed
                 return true;
                 break;
             case "disabled":
                 // PASSED - no settings needed
                 return true;
                 break;
             default:
                 // FAILED - something weird happened!
                 return false;
                 break;
         }
     } else {
         return false;
     }
 }