[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (24 loc) · 1.03 KB

README.md

File metadata and controls

26 lines (24 loc) · 1.03 KB

VATSIM Data Handler

Easy to use, object-orientated data handler for the VATSIM status system.

Requirements

  • file_get_contents

Available content lists

  • getPilots() - Get all pilots connected.
  • getSupervisors() - Everyone connected to VATSIM as a Aupervisor or Administrator.
  • getStaff() - Get all staff members, vACC/ARTCC/Division/Region/Supervisors/BoG/Founders.
  • getObservers() - All observers, including staff & supervisors.
  • getAirTraffic() - All air traffic controllers.
  • getVoiceServers() - Available voice servers.
  • getPrefiled() - Prefiled flightplans.
  • getClients() - Everyone connected to VATSIM.
  • searchFor( functionName, RegEX, variableName ) - Use RegEX to search variables.

How to use

Bear in mind, this only lists callsigns. You might find it more beneficial to var_dump one of the clients, to see the different variables available to you.

<?php
require( "DataHandler.php" );
$DH = new DataHandler();
foreach( $DH->getClients() as $client ){
    print( $client->callsign . "<br/>" );
}