Private Method Details |
pref_units |
|
private string pref_units( string $str1, string $str2 )
|
| |
Used to format strings with regard to the preferred units.
If 'pref_units' isn't recognized, the function will set it to 'both_imperial', and try again.
|
| Parameter |
|
| string |
$str1 |
|
|
string should always contain the metric value. |
|
|
| string |
$str2 |
|
|
string should always contain the imperial value. |
|
| Returns |
string The two arguments in the correct order with regard to the preferred units. |
| See Also |
set_pref_units() |
|
list_sentences |
|
private string list_sentences( )
|
| |
Builds sentences from smaller bits.
Takes an arbitrary number of strings as its arguments, and returns them with commas between. The strings used between the arguments, are controlled by these variables:- $strings['list_sentences_and']- $strings['list_sentences_comma']- $strings['list_sentences_final_and']Only non-empty arguments are used, so it's safe to call this function with empty strings. But if you try to call it with uninitialized variables, then PHP might warn you about it anyway.
|
| Returns |
string The arguments put together. |
|
parse_precip |
|
private string parse_precip( integer $in, integer $mm )
|
| |
Used to parse precipitation.
|
| Parameter |
|
| integer |
$in |
|
|
amount of precipitation measured in inches. |
|
|
| integer |
$mm |
|
|
amount of precipitation measured in millimeters. |
|
| Returns |
string A formatted string with information about the precipitation. |
|
parse_cloud_group |
|
private string parse_cloud_group( array $cloud_group )
|
| |
Function used to parse a cloud-group.
|
| Parameter |
|
| array |
$cloud_group |
|
|
cloud-group to be parsed. This should be a group as parse_metar() would return it. |
|
| Returns |
string the string used in the pretty-print. |
|
parse_weather_group |
|
private string parse_weather_group( array $weather_group )
|
| |
Function used to parse a weather-group.
|
| Parameter |
|
| array |
$weather_group |
|
|
weather-group to be parsed. |
|
| Returns |
string the string used in the pretty-print. |
|
runway_tendency |
|
private string runway_tendency( string $tendency )
|
| |
Function used to parse the tendency in a runway-group.
|
| Parameter |
|
| string |
$tendency |
|
|
tendency |
|
| Returns |
string the string used in the pretty-print. |
|
parse_runway_group |
|
private string parse_runway_group( array $runway_group )
|
| |
Function used to parse a runway-group.
|
| Parameter |
|
| array |
$runway_group |
|
|
runway-group to be parsed. |
|
| Returns |
string the string used in the pretty-print. |
|
parse_visibility_group |
|
private string parse_visibility_group( array $visibility_group )
|
| |
Function used to parse a visibility-group.
|
| Parameter |
|
| array |
$visibility_group |
|
|
visibility-group to be parsed. |
|
| Returns |
string the string used in the pretty-print. |
|