7 require(dirname(dirname(__FILE__)) . "/inc/config.php");
9 // Load all include files
10 require(PATH . "inc/includes.php");
12 // Load all game classes
13 require(PATH . "inc/classes.php");
15 // Load more include files
16 $_GET['app'] = "ship-simu";
17 require_once(PATH . "inc/selector.php");
19 // jetzt die Personalliste wiederherstellen
21 $test = SimulatorPersonell::createSimulatorPersonellByID("SimulatorPersonell@829292aeca3f6bf78c16e25fc4f75c98");
22 } catch (InvalidIDFormatException $e) {
23 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
26 } catch (InvalidArrayCountException $e) {
27 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
30 } catch (NullPointerException $e) {
31 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
34 } catch (NoObjectException $e) {
35 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
38 } catch (MissingMethodException $e) {
39 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
42 } catch (FileIsEmptyException $e) {
43 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
46 } catch (FilePointerNotOpenedException $e) {
47 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
50 } catch (InvalidArrayCountException $e) {
51 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
54 } catch (InvalidMD5ChecksumException $e) {
55 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
58 } catch (InvalidDataLengthException $e) {
59 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
62 } catch (InvalidSimulatorIDException $e) {
63 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
66 } catch (MismatchingCompressorsException $e) {
67 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
70 } catch (ContainerItemIsNullException $e) {
71 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
74 } catch (ContainerItemIsNoArrayException $e) {
75 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
78 } catch (ContainerMaybeDamagedException $e) {
79 die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: <strong>%s</strong><br />\n",
84 // Personal-Objekt debuggen
85 if (defined('DEBUG_PERSONELL_OBJ')) {
86 DebugMiddleware::getInstance()->output(sprintf("Das Personal-Objekt sieht wie folgt aus:<br />
92 // Erstmal bis hier hin
95 // Etwas zum Testen...
97 $test = SimulatorPersonell::createSimulatorPersonell(20);
98 } catch (NullPointerException $e) {
99 die(sprintf("[Main:] Personenliste nicht angelegt. Grund: <strong>%s</strong><br />\n",
102 } catch (NoObjectException $e) {
103 die(sprintf("[Main:] Personenliste nicht angelegt. Grund: <strong>%s</strong><br />\n",
106 } catch (MissingMethodException $e) {
107 die(sprintf("[Main:] Personenliste nicht angelegt. Grund: <strong>%s</strong><br />\n",
112 // Personal-Objekt debuggen
113 if (defined('DEBUG_PERSONELL_OBJ')) {
114 DebugMiddleware::getInstance()->output(sprintf("Das Personal-Objekt sieht wie folgt aus:<br />
120 // Try to save the object (for testing purposes)
122 $test->saveObjectToDatabase();
123 } catch (NullPointerException $e) {
124 die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
127 } catch (NoObjectException $e) {
128 die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
131 } catch (InvalidObjectException $e) {
132 die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
135 } catch (MissingMethodException $e) {
136 die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
139 } catch (UnsupportedLimitationPartException $e) {
140 die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
143 } catch (GetterNotFoundException $e) {
144 die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
147 } catch (NoArrayCreatedException $e) {
148 die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",
151 } catch (InvalidArrayCountException $e) {
152 die(sprintf("[Main:] Objekt nicht gespeichert. Grund: <strong>%s</strong><br />\n",