Public Member Functions | |
plugin_name () | |
process_command ( $in_andisol_instance, $in_http_method, $in_response_type, $in_path=[], $in_query=[]) | |
Static Public Member Functions | |
static | classes_managed () |
Protected Member Functions | |
_get_short_description ( $in_object) | |
_get_long_place_description ( $in_place_object, $in_show_parents=false) | |
_get_xsd () | |
_process_parameters ( $in_andisol_instance, $in_query) | |
_process_place_delete ( $in_andisol_instance, $in_object_list=[], $in_path=[], $in_query=[], $in_show_parents=false) | |
_process_place_post ( $in_andisol_instance, $in_path=[], $in_query=[]) | |
_process_place_put ( $in_andisol_instance, $in_object_list=[], $in_path=[], $in_query=[], $in_show_parents=false) | |
_process_place_get ( $in_andisol_instance, $in_object_list=[], $in_show_details=false, $in_show_parents=false, $in_search_count_only=false, $in_search_ids_only=false, $in_path=[], $in_query=[]) | |
Protected Member Functions inherited from A_CO_Basalt_Plugin | |
_get_long_description ( $in_object, $in_show_parents=false) | |
_get_xml_header () | |
_get_xsd_header () | |
_process_xsd ( $in_schema_file_path) | |
_condition_response ( $in_response_type, $in_response_as_associative_array=NULL) | |
_get_child_ids ( $in_object) | |
_get_child_handler_data ( $in_object) | |
Static Protected Member Functions | |
static | _lookup_address ( $in_address_string, $in_region_bias=NULL) |
Static Protected Member Functions inherited from A_CO_Basalt_Plugin | |
static | _get_handler ( $in_classname) |
static | _server_url () |
static | _array2xml ( $in_array) |
Additional Inherited Members | |
Static Protected Attributes inherited from A_CO_Basalt_Plugin | |
static | $_s_cached_list = NULL |
This will contain caches of our handler list. More... | |
This is a REST plugin that allows access to places (locations).
Definition at line 39 of file co_places_basalt_plugin.class.php.
|
protected |
This returns a more comprehensive description of the place.
$in_place_object | REQUIRED: The object to display. |
$in_show_parents | OPTIONAL: (Default is false). If true, then the parents will be shown. This can be a time-consuming operation, so it needs to be explicitly requested. |
Definition at line 94 of file co_places_basalt_plugin.class.php.
Referenced by _process_place_delete(), _process_place_get(), _process_place_post(), and _process_place_put().
|
protected |
This returns a fairly short summary of the place.
$in_object | REQUIRED: The user or login object to extract information from. |
Reimplemented from A_CO_Basalt_Plugin.
Definition at line 75 of file co_places_basalt_plugin.class.php.
Referenced by _process_place_get().
|
protected |
Reimplemented from A_CO_Basalt_Plugin.
Definition at line 120 of file co_places_basalt_plugin.class.php.
References A_CO_Basalt_Plugin\_process_xsd().
|
staticprotected |
This static protected method will allow us to do a Google lookup of an address, and return a long/lat.
$in_address_string | The address to look up, in a single string (Google will do its best to parse the string). |
$in_region_bias | Any region bias (like "us" or "sv"). Max. 3 characters. |
Definition at line 46 of file co_places_basalt_plugin.class.php.
References CO_Chameleon_Utils\call_curl().
Referenced by process_command().
|
protected |
Parses the query parameters and cleans them for the database.
$in_andisol_instance | REQUIRED: The ANDISOL instance to use as the connection to the RVP databases. |
$in_query | REQUIRED: The query string to be parsed. |
Reimplemented from A_CO_Basalt_Plugin.
Definition at line 130 of file co_places_basalt_plugin.class.php.
Referenced by _process_place_put().
|
protected |
Handles the DELETE operation.
$in_andisol_instance | REQUIRED: The ANDISOL instance to use as the connection to the RVP databases. |
$in_object_list | OPTIONAL: This function is worthless without at least one object. This will be an array of place objects, holding the places to delete. |
$in_path | OPTIONAL: The REST path, as an array of strings. |
$in_query | OPTIONAL: The query parameters, as an associative array. |
$in_show_parents | OPTIONAL: (Default is false). If true, then the parents will be shown. This can be a time-consuming operation, so it needs to be explicitly requested. |
Definition at line 196 of file co_places_basalt_plugin.class.php.
References _get_long_place_description().
Referenced by process_command().
|
protected |
Handles the GET operation (list records).
$in_andisol_instance | REQUIRED: The ANDISOL instance to use as the connection to the RVP databases. |
$in_object_list | OPTIONAL: This function is worthless without at least one object. This will be an array of place objects, holding the places to examine. |
$in_show_details | OPTIONAL: If true (default is false), then the resulting record will be returned in "detailed" format. |
$in_show_parents | OPTIONAL: (Default is false). If true, then the parents will be shown. This can be a time-consuming operation, so it needs to be explicitly requested. |
$in_search_count_only | OPTIONAL: If true, then we are only looking for a single integer count. |
$in_search_ids_only | OPTIONAL: If true, then we are going to return just an array of int (the IDs of the resources). |
$in_path | OPTIONAL: The REST path, as an array of strings. |
$in_query | OPTIONAL: The query parameters, as an associative array. |
Definition at line 463 of file co_places_basalt_plugin.class.php.
References _get_long_place_description(), and _get_short_description().
Referenced by process_command().
|
protected |
Handles the POST operation (new).
$in_andisol_instance | REQUIRED: The ANDISOL instance to use as the connection to the RVP databases. |
$in_path | OPTIONAL: The REST path, as an array of strings. |
$in_query | OPTIONAL: The query parameters, as an associative array. |
Definition at line 227 of file co_places_basalt_plugin.class.php.
References _get_long_place_description(), and _process_place_put().
Referenced by process_command().
|
protected |
Handle the PUT operation (modify).
$in_andisol_instance | REQUIRED: The ANDISOL instance to use as the connection to the RVP databases. |
$in_object_list | OPTIONAL: This function is worthless without at least one object. This will be an array of place objects, holding the places to modify. |
$in_path | OPTIONAL: The REST path, as an array of strings. |
$in_query | OPTIONAL: The query parameters, as an associative array. |
$in_show_parents | OPTIONAL: (Default is false). If true, then the parents will be shown. This can be a time-consuming operation, so it needs to be explicitly requested. |
Definition at line 267 of file co_places_basalt_plugin.class.php.
References _get_long_place_description(), and _process_parameters().
Referenced by _process_place_post(), and process_command().
|
static |
This returns an array of classnames, handled by this plugin.
Reimplemented from A_CO_Basalt_Plugin.
Definition at line 507 of file co_places_basalt_plugin.class.php.
CO_places_Basalt_Plugin::plugin_name | ( | ) |
Reimplemented from A_CO_Basalt_Plugin.
Definition at line 497 of file co_places_basalt_plugin.class.php.
CO_places_Basalt_Plugin::process_command | ( | $in_andisol_instance, | |
$in_http_method, | |||
$in_response_type, | |||
$in_path = [] , |
|||
$in_query = [] |
|||
) |
This runs our plugin command.
$in_andisol_instance | REQUIRED: The ANDISOL instance to use as the connection to the RVP databases. |
$in_http_method | REQUIRED: 'GET', 'POST', 'PUT' or 'DELETE' |
$in_response_type | REQUIRED: Either 'json' or 'xml' -the response type. |
$in_path | OPTIONAL: The REST path, as an array of strings. |
$in_query | OPTIONAL: The query parameters, as an associative array. |
Reimplemented from A_CO_Basalt_Plugin.
Definition at line 517 of file co_places_basalt_plugin.class.php.
References A_CO_Basalt_Plugin\_condition_response(), _lookup_address(), _process_place_delete(), _process_place_get(), _process_place_post(), and _process_place_put().