value pairs for airtime.conf static $properties; // Message and error fields to return to the front-end static $message = null; static $errors = array(); function __construct($settings) { self::$host = $settings[self::GENERAL_HOST]; self::$port = $settings[self::GENERAL_PORT]; self::$properties = array( "api_key" => $this->generateRandomString(), "base_url" => self::$host, "base_port" => self::$port, ); } function writeToTemp() { parent::writeToTemp(self::SECTION, self::$properties); } /** * @return array associative array containing a display message and fields with errors */ function runSetup() { // TODO Do we need to validate these settings? if (count(self::$errors) <= 0) { $this->writeToTemp(); } return array( "message" => self::$message, "errors" => self::$errors ); } }