BMLT Satellite Driver
|
Provides low-level communication to the BMLT Root Server. More...
Public Member Functions | |
__construct ($in_root_uri_string=null) | |
Constructor -Set the value of the Root URI. * If a URI is passed in, then the object establishes and tests a connection, and * loads up the standard outgoing parameters. * This object requires that the server be of version 1.8.6 or greater. *. More... | |
set_m_root_uri ( $in_root_uri_string, $in_skip_flush=false) | |
Accessor -Set the value of the Root URI. *
| |
get_m_root_uri () | |
Accessor -Return the value of the Root URI. Perform "cleaning" if necessary. * *. More... | |
get_m_error_message () | |
Accessor -Return the value of the class error message (if any). * *. More... | |
& | get_m_current_transaction () |
Accessor -Return a reference to the class transaction "bucket." * *. More... | |
& | get_m_outgoing_parameters () |
Accessor -Return the transaction stimulus array. * *. More... | |
get_server_version ($in_force_refresh=false) | |
Test the stored URI to see if it points to a valid root server, and return * the server version. *
| |
get_server_langs ($in_force_refresh=false) | |
Return the server supported languages. *
| |
get_meeting_changes ( $in_start_date=null, $in_end_date=null, $in_meeting_id=null, $in_service_body_id=null) | |
Return meeting changes between two dates. *
| |
get_server_formats ($in_force_refresh=false) | |
Return the server supported formats. *
| |
get_server_service_bodies ($in_force_refresh=false) | |
Return the server's Service bodies, in hierarchical fashion. *
| |
get_server_meeting_keys ($in_force_refresh=false) | |
Return a list of the supported meeting_key values.. *
| |
get_transaction_key_values ($in_parameter_key) | |
See if a given parameter key is valid for an outgoing parameter. *
| |
is_legal_transaction_key ( $in_parameter_key, $in_sub_key=null) | |
See if a given parameter key is valid for an outgoing parameter. * *. More... | |
set_current_transaction_parameter ( $in_parameter_key, $in_parameter_value=null) | |
Add a transaction parameter to a transaction being built. *
| |
clear_m_error_message () | |
Clear the Error Message. *. | |
& | get_m_outgoing_parameter ( $in_parameter_key_string, $in_parameter_secondary_key_string=null) |
Return a value from the transaction stimuli array. * *. More... | |
set_m_outgoing_parameter ( $in_parameter_key_string, $in_parameter_value_mixed) | |
Set a parameter value to the transaction stimulus array. *
| |
flush_parameters () | |
Flush all the parameters, and the dynamically-filled outgoing ones. *. | |
load_standard_outgoing_parameters () | |
Read all the standard parameters from the server *
| |
meeting_search () | |
Execute a meeting search transaction * *. More... | |
apply_serialized_transaction ($in_serialized_list) | |
Unserialize a serialized transaction. *
| |
get_serialized_transaction () | |
Return the query parameter list for the next transaction in a serialized * string. * *. More... | |
Static Public Member Functions | |
static | get_m_supported_protocols () |
Accessor -Return the array of supported protocols. * *. More... | |
static | call_curl ( $in_uri, $in_post=false, &$error_message=null, &$http_status=null) |
This is a function that returns the results of an HTTP call to a URI. * It is a lot more secure than file_get_contents, but does the same thing. * *. More... | |
Provides low-level communication to the BMLT Root Server.
This file is part of the Basic Meeting List Toolbox (BMLT).
Find out more at: https://bmlt.app
BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this code. If not, see http://www.gnu.org/licenses/.
This is the main class for the Satellite Controller. It establishes a liaison * with the root server. *
Definition at line 37 of file bmlt_satellite_controller.class.php.
bmlt_satellite_controller::__construct | ( | $in_root_uri_string = null | ) |
Constructor -Set the value of the Root URI. * If a URI is passed in, then the object establishes and tests a connection, and * loads up the standard outgoing parameters. * This object requires that the server be of version 1.8.6 or greater. *.
$in_root_uri_string | The URI to the root server, can be null |
Definition at line 81 of file bmlt_satellite_controller.class.php.
References flush_parameters(), get_m_error_message(), get_server_version(), load_standard_outgoing_parameters(), and set_m_root_uri().
bmlt_satellite_controller::apply_serialized_transaction | ( | $in_serialized_list | ) |
Unserialize a serialized transaction. *
$in_serialized_list | A string that holds the serialized transaction list. |
Definition at line 923 of file bmlt_satellite_controller.class.php.
References is_legal_transaction_key(), and set_current_transaction_parameter().
|
static |
This is a function that returns the results of an HTTP call to a URI. * It is a lot more secure than file_get_contents, but does the same thing. * *.
$in_uri | A string. The URI to call. |
$in_post | If false, the transaction is a GET, not a POST. Default is true. |
$error_message | A string. If provided, any error message will be placed here. |
$http_status | Optional reference to a string. Returns the HTTP call status. |
Definition at line 1051 of file bmlt_satellite_controller.class.php.
Referenced by get_meeting_changes(), get_server_formats(), get_server_langs(), get_server_meeting_keys(), get_server_service_bodies(), get_server_version(), and meeting_search().
& bmlt_satellite_controller::get_m_current_transaction | ( | ) |
Accessor -Return a reference to the class transaction "bucket." * *.
Definition at line 233 of file bmlt_satellite_controller.class.php.
Referenced by get_serialized_transaction(), and set_current_transaction_parameter().
bmlt_satellite_controller::get_m_error_message | ( | ) |
Accessor -Return the value of the class error message (if any). * *.
Definition at line 211 of file bmlt_satellite_controller.class.php.
Referenced by __construct(), get_meeting_changes(), get_server_formats(), get_server_langs(), get_server_meeting_keys(), get_server_service_bodies(), get_server_version(), load_standard_outgoing_parameters(), and meeting_search().
& bmlt_satellite_controller::get_m_outgoing_parameter | ( | $in_parameter_key_string, | |
$in_parameter_secondary_key_string = null |
|||
) |
Return a value from the transaction stimuli array. * *.
$in_parameter_key_string | A string. The parameter key |
$in_parameter_secondary_key_string | If the parameter has an embedded array, a key for that (optional) |
Definition at line 690 of file bmlt_satellite_controller.class.php.
Referenced by get_server_formats(), get_server_langs(), get_server_meeting_keys(), and get_server_service_bodies().
& bmlt_satellite_controller::get_m_outgoing_parameters | ( | ) |
Accessor -Return the transaction stimulus array. * *.
Definition at line 245 of file bmlt_satellite_controller.class.php.
Referenced by get_transaction_key_values(), and is_legal_transaction_key().
bmlt_satellite_controller::get_m_root_uri | ( | ) |
Accessor -Return the value of the Root URI. Perform "cleaning" if necessary. * *.
Definition at line 140 of file bmlt_satellite_controller.class.php.
References get_m_supported_protocols().
Referenced by get_meeting_changes(), get_server_formats(), get_server_langs(), get_server_meeting_keys(), get_server_service_bodies(), get_server_version(), and meeting_search().
|
static |
Accessor -Return the array of supported protocols. * *.
Definition at line 1017 of file bmlt_satellite_controller.class.php.
Referenced by get_m_root_uri().
bmlt_satellite_controller::get_meeting_changes | ( | $in_start_date = null , |
|
$in_end_date = null , |
|||
$in_meeting_id = null , |
|||
$in_service_body_id = null |
|||
) |
Return meeting changes between two dates. *
$in_start_date | Optional. If given (a PHP time() format UNIX Epoch time), the changes will be loaded from midnight (00:00:00) of the date of the time. |
$in_end_date | Optional. If given (a PHP time() format UNIX Epoch time), the changes will be loaded until midnight (23:59:59) of the date of the time. |
$in_meeting_id | If supplied, an ID for a particular meeting. Only changes for that meeting will be returned. |
$in_service_body_id | If supplied, an ID for a particular Service body. Only changes for meetings within that Service body will be returned. |
Definition at line 381 of file bmlt_satellite_controller.class.php.
References call_curl(), get_m_error_message(), and get_m_root_uri().
bmlt_satellite_controller::get_serialized_transaction | ( | ) |
Return the query parameter list for the next transaction in a serialized * string. * *.
Definition at line 951 of file bmlt_satellite_controller.class.php.
References get_m_current_transaction().
bmlt_satellite_controller::get_server_formats | ( | $in_force_refresh = false | ) |
Return the server supported formats. *
$in_force_refresh | If this is true, then the server will be queried, even if there is a cache. |
Definition at line 451 of file bmlt_satellite_controller.class.php.
References call_curl(), get_m_error_message(), get_m_outgoing_parameter(), and get_m_root_uri().
Referenced by load_standard_outgoing_parameters().
bmlt_satellite_controller::get_server_langs | ( | $in_force_refresh = false | ) |
Return the server supported languages. *
$in_force_refresh | If this is true, then the server will be queried, even if there is a cache. |
Definition at line 317 of file bmlt_satellite_controller.class.php.
References call_curl(), get_m_error_message(), get_m_outgoing_parameter(), get_m_root_uri(), and set_m_outgoing_parameter().
Referenced by load_standard_outgoing_parameters().
bmlt_satellite_controller::get_server_meeting_keys | ( | $in_force_refresh = false | ) |
Return a list of the supported meeting_key values.. *
$in_force_refresh | If this is true, then the server will be queried, even if there is a cache. |
Definition at line 553 of file bmlt_satellite_controller.class.php.
References call_curl(), get_m_error_message(), get_m_outgoing_parameter(), and get_m_root_uri().
Referenced by load_standard_outgoing_parameters().
bmlt_satellite_controller::get_server_service_bodies | ( | $in_force_refresh = false | ) |
Return the server's Service bodies, in hierarchical fashion. *
$in_force_refresh | If this is true, then the server will be queried, even if there is a cache. |
Definition at line 500 of file bmlt_satellite_controller.class.php.
References call_curl(), get_m_error_message(), get_m_outgoing_parameter(), and get_m_root_uri().
Referenced by load_standard_outgoing_parameters().
bmlt_satellite_controller::get_server_version | ( | $in_force_refresh = false | ) |
Test the stored URI to see if it points to a valid root server, and return * the server version. *
$in_force_refresh | If this is true, then the server will be queried, even if there is a cache. |
Definition at line 266 of file bmlt_satellite_controller.class.php.
References call_curl(), get_m_error_message(), and get_m_root_uri().
Referenced by __construct().
bmlt_satellite_controller::get_transaction_key_values | ( | $in_parameter_key | ) |
See if a given parameter key is valid for an outgoing parameter. *
$in_parameter_key | A string. The key for this parameter.. |
Definition at line 599 of file bmlt_satellite_controller.class.php.
References get_m_outgoing_parameters(), and is_legal_transaction_key().
bmlt_satellite_controller::is_legal_transaction_key | ( | $in_parameter_key, | |
$in_sub_key = null |
|||
) |
See if a given parameter key is valid for an outgoing parameter. * *.
$in_parameter_key | A string. The key for this parameter. |
$in_sub_key | Optional. If this is a meeting_key value, see if it is legal. Ignored, otherwise. |
Definition at line 627 of file bmlt_satellite_controller.class.php.
References get_m_outgoing_parameters().
Referenced by apply_serialized_transaction(), get_transaction_key_values(), and set_current_transaction_parameter().
bmlt_satellite_controller::meeting_search | ( | ) |
Execute a meeting search transaction * *.
Definition at line 860 of file bmlt_satellite_controller.class.php.
References call_curl(), get_m_error_message(), and get_m_root_uri().
bmlt_satellite_controller::set_current_transaction_parameter | ( | $in_parameter_key, | |
$in_parameter_value = null |
|||
) |
Add a transaction parameter to a transaction being built. *
$in_parameter_key | A string. The key for this parameter. If there is one already set, this will overwrite that. |
$in_parameter_value | Mixed. It can be any value. If an array, then the value will be presented as multiple values. |
Definition at line 652 of file bmlt_satellite_controller.class.php.
References get_m_current_transaction(), and is_legal_transaction_key().
Referenced by apply_serialized_transaction().
bmlt_satellite_controller::set_m_outgoing_parameter | ( | $in_parameter_key_string, | |
$in_parameter_value_mixed | |||
) |
Set a parameter value to the transaction stimulus array. *
$in_parameter_key_string | A string. The parameter key |
$in_parameter_value_mixed | A mixed value |
Definition at line 723 of file bmlt_satellite_controller.class.php.
Referenced by get_server_langs(), and load_standard_outgoing_parameters().
bmlt_satellite_controller::set_m_root_uri | ( | $in_root_uri_string, | |
$in_skip_flush = false |
|||
) |
Accessor -Set the value of the Root URI. *
$in_skip_flush | Optional. If true, the parameters won't be flushed, even if they need to be. |
Definition at line 120 of file bmlt_satellite_controller.class.php.
References flush_parameters().
Referenced by __construct().