__construct() __construct( $minutes_in_the_past = 5) Constructor. Connect to the Galleries DB, and generate a timestamp. Parameters $minutes_in_the_past
query() query() Check if any of the kiosks are down. Query the Galleries DB and check the keep alive timestamp. Compare this to the $time instance variable. If the keep alive is more than (default) 5 minutes old, send an email.
send_email() send_email( $kiosk_info) Send an email notifying the admin that kiosks are down. Parameters $kiosk_info
connect_db() connect_db() : mixed Connects to the Galleries DB Returns mixed — $dbh A handle on the Galleries DB