Packageindex Classtrees Modulegroups Elementlist Report XML Files
b c d e f g i l m n N o p P q r s t u v

b

base_object Class base_object.
Provides some basic capabilities like error-handling and handling of defaults.
base_object Function in class base_object
Sets up the properties by overriding the defaults with the actual input.
boolean Function in class property

c

connect Function in class db_dba
Establishes a connection to the database. It is assumed, that the database is already created.
connect Function in class db_mysql
Establishes a connection to the database.
connect Function in class db_pgsql
Establishes a connection to the database.
connect Function in class db_null
Pretends to establish a connection to the database.
create_tables Function in class db_dba
Creates the necessary files.
create_tables Function in class db_mysql
Creates the necessary tables in the database.
create_tables Function in class db_null
Makes sure that it's possible to create the files.
$config_header Variable in Class property
A header used in the each line in the config-file.

d

decode_metar Function in class metar_parser
Decodes a raw METAR.
$decoded_metar Variable in Class metar_parser
The decoded METAR is stored here.
data_retrieval Class data_retrieval.
This class contains all the logic needed to get and store METARs.
data_retrieval Function in class data_retrieval
Constructor
db_layer Class db_layer.
This class is used to maintain the database-object.
db_layer Function in class db_layer
Creates the database-object based on $input['db_type'].
$db Variable in Class db_layer
Variable containing the database-object.
db_dba Class db_dba.
This class is the 'dba' database-type. This type of database is a wrapper itself, so you have to pass a handler to it as the index 'db_handler', when you create it.
db_dba Function in class db_dba
Constructor
disconnect Function in class db_dba
Disconnects from the database.
disconnect Function in class db_mysql
Disconnects from the database.
disconnect Function in class db_pgsql
Disconnects from the database.
db_mysql Class db_mysql.
This class is the 'mysql' database-type.
db_mysql Function in class db_mysql
This constructor does nothing besides calling the parent constructor.
db_pgsql Class db_pgsql.
This class is the 'pgsql' database-type
db_pgsql Function in class db_pgsql
This constructor does nothing besides calling the parent constructor.
db_null Class db_null.
This class is the 'null' database-type
db_null Function in class db_null
This constructor does nothing besides calling the parent constructor.
db_common Class db_common.
Common class for all the database-types.
db_common Function in class db_common
Initializes the database-object.
debug Function in class base_object
Prints a notice.
$description Variable in Class property
The description of the property
$data Variable in Class property
The data of the property

e

error Function in class base_object
Prints an error-message.

f

fetch_row Function in class db_mysql
Fetches a row as an array from the database.
fetch_row Function in class db_pgsql
Fetches a row as an array from the database.
fetch_array Function in class db_mysql
Fetches a row as an associative array from the database.
fetch_array Function in class db_pgsql
Fetches a row as an associative array from the database.

g

get_language Function in class phpweather
Retuns the langauge.
get_icao Function in class data_retrieval
Returns the current ICAO.
get_metar Function in class data_retrieval
Retrieves a raw METAR, either from the web or from a database.
get_metar Function in class db_dba
Gets a METAR form the database.
get_metar Function in class db_mysql
Gets a METAR form the database.
get_metar Function in class db_pgsql
Gets a METAR form the database.
get_metar Function in class db_null
Pretends to return a METAR form the database.
get_metar_from_db Function in class data_retrieval
Tries to get a METAR from the database.
get_metar_from_web Function in class data_retrieval
Fetches a METAR from the Internet.
get_location Function in class data_retrieval
get_db_type Function in class db_layer
Gets the database-type.
get_marks Function in class locale_common
Gets the marks
get_pref_units Function in class locale_common
Gets the preferred units.
get_exclude Function in class locale_common
Gets the array of excluded elements of the pretty-print.
get_type Function in class db_dba
Gets the type of the database.
get_type Function in class db_mysql
Gets the type of the database.
get_type Function in class db_pgsql
Gets the type of the database.
get_type Function in class db_null
Gets the type of the database.
get_countries Function in class db_dba
Returns a list of available countries.
get_countries Function in class db_mysql
Returns a list of available countries.
get_countries Function in class db_null
Returns a list of available countries.
get_icaos Function in class db_dba
Returns an array of stations.
get_icaos Function in class db_mysql
Returns an array of stations.
get_icaos Function in class db_null
Returns an array of stations.
get_name Function in class property
Returns the name of the property.
get_description Function in class property
Returns the description of the property.
get_html Function in class property
get_config Function in class property

i

insert_metar Function in class db_dba
Inserts a METAR into the database.
insert_metar Function in class db_mysql
Inserts a METAR into the database.
insert_metar Function in class db_pgsql
Inserts a METAR into the database.
insert_metar Function in class db_null
Pretends to insert a METAR into the database.
insert_stations Function in class db_dba
Inserts the stations into the database.
insert_stations Function in class db_mysql
Inserts the stations into the database.
insert_stations Function in class db_null
Inserts the stations into the database.
$is_connected Variable in Class db_common
Maintains the status of the database-connection.

l

$location Variable in Class data_retrieval
The location of the station, eg. something like 'Aalborg, Denmark'.
locale_en Class locale_en.
Provides all the strings needed by locale_common to produce English output.
locale_en Function in class locale_en
This constructor provides all the strings used.
locale_common Class locale_common.
Provides all the function needed to generate (English) output.
locale_common Function in class locale_common
Constructor.
list_sentences Function in class locale_common
Builds sentences from smaller bits.
lookup_icao Function in class db_dba
Translates an ICAO into a station name
lookup_icao Function in class db_mysql
Translates an ICAO into a station name
lookup_icao Function in class db_null
Translates an ICAO into a station name
$link_stations_id Variable in Class db_dba
A link ID to the stations database.
$link_countries_id Variable in Class db_dba
A link ID to the countries database.
$link_id Variable in Class db_common
contains the link_id used when querying.

m

metar_parser Class metar_parser.
This class understands how to parse a raw METAR.
metar_parser Function in class metar_parser
This constructor does nothing besides passing the input down the hierarchy.
$metar Variable in Class data_retrieval
The METAR is stored here.
multi_select Function in class property

n

num_rows Function in class db_mysql
Returns the number of rows in the result-set.
num_rows Function in class db_pgsql
Returns the number of rows in the result-set.
$name Variable in Class property
The name of the property

N

No Package specified Package

o

$output Variable in Class phpweather
The localized output-object

p

phpweather Class phpweather.
A container-class for the localized object.
phpweather Function in class phpweather
This constructor sets the language when the object is created.
print_pretty Function in class phpweather
Calls the print_pretty() function of the output-object.
print_pretty Function in class locale_common
The pretty-print function.
print_table Function in class phpweather
Calls the print_table() function of the output-object.
print_table Function in class locale_common
Makes a short weather-report in a table.
pref_units Function in class locale_common
Used to format strings with regard to the preferred units.
parse_precip Function in class locale_common
Used to parse precipitation.
parse_cloud_group Function in class locale_common
Function used to parse a cloud-group.
parse_weather_group Function in class locale_common
Function used to parse a weather-group.
parse_runway_group Function in class locale_common
Function used to parse a runway-group.
parse_visibility_group Function in class locale_common
Function used to parse a visibility-group.
print_properties Function in class base_object
Prints properties.
$properties Variable in Class base_object
All the objects properties are stored in this array.
property Class property.
A basic property.
property Function in class property
The constructor.

P

PHPWEATHER_BASE_DIR', dirname(__FILE__)); require(PHPWEATHER_BASE_DIR . '/db_layer.php'); $db = new db_layer(array()); if ($db->db->create_tables()) { $num_rows = 0; $num_countries = 0; echo "

The database has been configured. It will now be filled with data.

\n"; $fp = fopen('stations.csv
Constant defined in class property
PHP Weather Package

q

query Function in class db_mysql
Executes a SQL-query.
query Function in class db_pgsql
Executes a SQL-query.

r

runway_tendency Function in class locale_common
Function used to parse the tendency in a runway-group.
$result_id Variable in Class db_common
contains the result_id used when fetching rows from a result-set.

s

set_language Function in class phpweather
Sets the language.
store_temp Function in class metar_parser
Helper-function used to store temperatures.
store_speed Function in class metar_parser
Helper-function used to store speeds.
set_icao Function in class data_retrieval
Sets the station or rather the ICAO.
set_db_type Function in class db_layer
Sets the database-type and creates the database-object.
set_marks Function in class locale_common
Sets the marks (the strings inserted before and after every number)
set_pref_units Function in class locale_common
Specifies which kind of units to display.
set_exclude Function in class locale_common
Used to specify which elements one wants to exclude from the pretty-print.
$strings Variable in Class locale_common
The strings used in the translation is stored here.
select_db Function in class db_mysql
Selects a database.
select_db Function in class db_pgsql
Selects a database.
select Function in class property

t

text Function in class property

u

update_metar Function in class db_dba
Updates an existing METAR in the database.
update_metar Function in class db_mysql
Updates an existing METAR in the database.
update_metar Function in class db_pgsql
Updates an existing METAR in the database.
update_metar Function in class db_null
Pretends to update an existing METAR in the database.

v

$version Variable in Class base_object
The version.
Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta