read())) { if (!is_file($protocols_path . $entry)) { continue; } // Lets get some info on the class $reflection = new ReflectionClass('\\GameQ\\Protocols\\' . pathinfo($entry, PATHINFO_FILENAME)); // Check to make sure we can actually load the class if (!$reflection->IsInstantiable()) { continue; } // Load up the class so we can get info $class = $reflection->newInstance(); // Add it to the list $protocols[ $class->name() ] = [ 'name' => $class->nameLong(), 'state' => $class->state(), ]; // Unset the class unset($class); } // Close the directory unset($dir); ksort($protocols); ?>
Game Name | GameQ Identifier | State |
%s | %s | %s |