Functions
csv.php File Reference

Functions

 parse_redirect (&$server)
 Queries the local server, and returns processed CSV data.
 GetSearchResults ($in_http_vars)
 This returns the search results, in whatever form was requested.
 GetFormats (&$server, $in_lang=null)
 This returns the complete formats table.
 GetChanges ($in_start_date=null, $in_end_date=null, $in_meeting_id=null, $in_sb_id=null)
 This returns change records.
 HandleDefault ($in_http_vars)
 Handles no command supplied (error)
 HandleNoServer ()
 Handles no server available (error).
 TranslateToJSON ($in_csv_data)
 Translates CSV to JSON.
 TranslateToXML ($in_csv_data)
 Translates CSV to XML.

Function Documentation

GetChanges ( in_start_date = null,
in_end_date = null,
in_meeting_id = null,
in_sb_id = null 
)

This returns change records.

Returns:
CSV data, with the first row a key header.

This little internal function will simply fill * the $bmlt_array_gather array with a linear set of * Service body IDs that can be used for a quick * comparison, later on. It is a callback function. *

Parameters:
in_start_dateOptional. A start date (In PHP time() format). If supplied, then only changes on, or after this date will be returned.
in_end_dateOptional. An end date (In PHP time() format). If supplied, then only changes that occurred on, or before this date will be returned.
in_meeting_idOptional. If supplied, an ID for a particular meeting. Only changes for that meeting will be returned.
in_sb_idOptional. If supplied, an ID for a particular Service body. Only changes for that Service body will be returned.

Referenced by parse_redirect().

GetFormats ( &$  server,
in_lang = null 
)

This returns the complete formats table.

Returns:
CSV data, with the first row a key header.
Parameters:
serverA reference to an instance of c_comdef_server
in_langThe language of the formats to be returned.

Referenced by parse_redirect().

GetSearchResults ( in_http_vars)

This returns the search results, in whatever form was requested.

Returns:
CSV data, with the first row a key header.
Parameters:
in_http_varsThe HTTP GET and POST parameters.

Referenced by parse_redirect().

HandleDefault ( in_http_vars)

Handles no command supplied (error)

Returns:
English error string (not XML).
Parameters:
in_http_varsThe HTTP GET and POST parameters.

Referenced by parse_redirect().

HandleNoServer ( )

Handles no server available (error).

Returns:
null;
parse_redirect ( &$  server)

Queries the local server, and returns processed CSV data.

This requires that the "switcher=" parameter be set in the GET or POST parameters:

  • 'GetSearchResults' This returns the search results.
Returns:
CSV data, with the first row a key header.
Parameters:
serverA reference to an instance of c_comdef_server
TranslateToJSON ( in_csv_data)

Translates CSV to JSON.

Returns:
a JSON string, with all the data in the CSV.
Parameters:
in_csv_dataAn array of CSV data, with the first element being the field names.

Referenced by parse_redirect().

TranslateToXML ( in_csv_data)

Translates CSV to XML.

Returns:
an XML string, with all the data in the CSV.
Parameters:
in_csv_dataAn array of CSV data, with the first element being the field names.

Referenced by parse_redirect().

 All Classes Files Functions Variables Enumerations