private static function gps($arguments) { $allData = array(); $allData['profiles'] = ProfilesDB::getAllProfiles(); $allData['gps'] = GPSDataDB::getAllGPSData(); GPSView::show($allData); }
private static function getAll() { // authorize request if (($profileID = self::verifyMember()) === false) { return; } // retreive GPS data from the database $return = GPSDataDB::getGPSByMember($profileID); if (!is_array($return)) { self::outputMessage(self::CODE_BAD_REQUEST, 'Failed to retreive GPS data', $return); return; } // return success messge, which includes a JSON copy of the returned array of GPSDatum objects self::outputMessage(self::CODE_SUCCESS, 'GPS data retreived successfully', 'GPS data retreived successfully', $return); }