BLUE DRAGON PHP SDK
|
Public Member Functions | |
__construct ( $in_sdk_object, $in_id, $in_data=NULL, $in_detailed_data=false) | |
basic_address () | |
address_elements () | |
set_address_elements ( $in_address_elements_array) | |
tag8 () | |
tag9 () | |
set_tag8 ( $in_new_string_value) | |
set_tag9 ( $in_new_string_value) | |
geocode () | |
reverse_geocode () | |
coords () | |
set_coords ( $in_latitude, $in_longitude) | |
distance () | |
is_fuzzy () | |
fuzz_factor () | |
set_fuzz_factor ( $in_new_factor) | |
set_can_see_through_the_fuzz ( $in_token_id) | |
raw_coords () | |
payload () | |
set_payload ( $in_payload_data) | |
children_ids () | |
set_new_children_ids ( $in_child_ids) | |
parent_ids () | |
get_hierarchy () | |
set_sdk_object ( $in_sdk_object) | |
changes () | |
save_data () | |
id () | |
name () | |
set_name ( $in_new_value) | |
lang () | |
set_lang ( $in_new_value) | |
object_access () | |
set_object_access ( $in_new_read=NULL, $in_new_write=NULL) | |
writeable () | |
last_access () | |
force_reload ( $in_parents=false) | |
Protected Member Functions | |
_save_data ( $in_args='', $in_payload=NULL, $in_new_child_ids=NULL) | |
_save_change_record ( $in_change_record_object) | |
_load_data ( $in_force=false, $in_details=false, $in_parents=false) | |
Protected Attributes | |
$_sdk_object | |
This is the RVP_PHP_SDK object that "owns" this object. | |
$_object_id | |
This is the server unique ID of this object. | |
$_object_data | |
This is any data that was associated with this object (parsed JSON). | |
$_details | |
If true, then the last load was a "show details" load.. | |
$_plugin_path | |
This is a string that is applied to fetches to get the object. | |
$_changed_states | |
This will contain an array of objects (of whatever class this is), that represent previous object states. | |
Definition at line 31 of file rvp_php_sdk_place.class.php.
__construct | ( | $in_sdk_object, | |
$in_id, | |||
$in_data = NULL , |
|||
$in_detailed_data = false |
|||
) |
The basic constructor for the class.
$in_sdk_object | REQUIRED: The "owning" SDK object. |
$in_id | REQUIRED: The server ID of the object. An integer. |
$in_data | OPTIONAL: Parsed JSON Data for the object. Default is NULL. |
$in_detailed_data | OPTIONAL: Ignored if $in_data is NULL. Default is false. If true, then the data sent in was in "detailed" format. |
Definition at line 122 of file rvp_php_sdk_place.class.php.
|
protected |
$in_args | OPTIONAL: Default is an empty string. This is any previous arguments. This will be appeneded to the end of the list, so it should begin with an ampersand (&), and be url-encoded. |
$in_payload | IGNORED. Just here to suppress PHP warnings. |
$in_new_child_ids | IGNORED. Just here to suppress PHP warnings. |
Definition at line 39 of file rvp_php_sdk_place.class.php.
|
protected |
This is called after a successful save. It has the change record[s], and we will parse them to save the "before" object.
$in_change_record_object | REQUIRED: The change response, as a parsed object. |
Definition at line 75 of file rvp_php_sdk_place.class.php.
|
protected |
This is the specific "load some data" method. It will send a GET REST request to the API in order to fetch information about this object.
$in_force | OPTIONAL: If true (default is false), then the load will happen, even if we already have the data. |
$in_details | OPTIONAL: Default is false. If true, then the load will be a "show details" load, which could bring in a great deal more data. |
$in_parents | OPTIONAL: Default is false. If true, then the load will be a "show details" load, AND it will get the "parents," which can be a time-consuming operation. This will also "force" a load. |
Definition at line 97 of file rvp_php_sdk_place.class.php.
basic_address | ( | ) |
This requires a load, but not a "detailed" load.
Definition at line 136 of file rvp_php_sdk_place.class.php.
address_elements | ( | ) |
This requires a detailed string load.
Definition at line 163 of file rvp_php_sdk_place.class.php.
set_address_elements | ( | $in_address_elements_array | ) |
This sets the address elements of the place.
$in_address_elements_array | REQUIRED: This is an associative array, with the new values:
|
If an array element is not present, then that part of the address will not be affected. If an array element is present, but contains an empty string, then the corresponding address element will be removed.
Definition at line 181 of file rvp_php_sdk_place.class.php.
tag8 | ( | ) |
This requires a detailed string load.
Definition at line 221 of file rvp_php_sdk_place.class.php.
tag9 | ( | ) |
This requires a detailed string load.
Definition at line 239 of file rvp_php_sdk_place.class.php.
set_tag8 | ( | $in_new_string_value | ) |
This sets the value of tag 8.
$in_new_string_value | REQUIRED: The new string value to be set. If empty, then the tag is cleared. |
Definition at line 257 of file rvp_php_sdk_place.class.php.
set_tag9 | ( | $in_new_string_value | ) |
This sets the value of tag 9.
$in_new_string_value | REQUIRED: The new string value to be set. If empty, then the tag is cleared. |
Definition at line 277 of file rvp_php_sdk_place.class.php.
geocode | ( | ) |
This requires a forced detailed string load if successful.
This method will force the server to look up a new longitude and latitude for the current address information.
This requires that the server be configured to support the operation (has an API key, and allows the current user to perform lookups).
Definition at line 301 of file rvp_php_sdk_place.class.php.
reverse_geocode | ( | ) |
This requires a forced detailed string load if successful.
This method will force the server to look up a new address for the current longitude and latitude.
This requires that the server be configured to support the operation (has an API key, and allows the current user to perform lookups).
Definition at line 325 of file rvp_php_sdk_place.class.php.
|
inherited |
This requires a load, but not a "detailed" load.
Definition at line 91 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This sets the new long/lat value. This sets the "real" value (or "raw" value), if the record is "fuzzed," so subsequent checks of the regular long/lat may show different results.
$in_latitude | REQUIRED: The new latitude value, in degrees. |
$in_longitude | REQUIRED: The new longitude value, in degrees. |
Definition at line 114 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This requires a a "detailed" load.
Definition at line 142 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This requires a "detailed" load.
Definition at line 160 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This requires a "detailed" load.
Definition at line 178 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
Sets a new "fuzz factor." Setting to 0 or NULL turns off location obfuscation. Any positive floating-point number is the "fuzz radius," in kilometers, of the obfuscation. Long/lat returned in the normal coords() call will be obfuscated. If the user has the rights to "see through the fuzz," calls to raw_coords() will return accurate results (otherwise, they will return NULL).
$in_new_factor | REQUIRED: The new "fuzz factor" value. 0 or NULL will turn off location obfuscation. |
Definition at line 198 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
Sets a new "fuzz factor." Setting to 0 or NULL turns off location obfuscation. Any positive floating-point number is the "fuzz radius," in kilometers, of the obfuscation. Long/lat returned in the normal coords() call will be obfuscated. If the user has the rights to "see through the fuzz," calls to raw_coords() will return accurate results (otherwise, they will return NULL).
$in_token_id | REQUIRED: The new token for the "see clearly" IDs. 0 will clear this field. |
Definition at line 221 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This requires a "detailed" load.
Definition at line 242 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This requires a "detailed" load.
Definition at line 262 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This adds (or removes) a payload from this object. It figures out the data type on its own.
$in_payload_data | REQUIRED (can be NULL). This is the data to set as the instance payload. It should NOT be Base64 encoded. |
Definition at line 291 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This requires a "detailed" load.
Definition at line 327 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This sets new child object IDs for this object.
$in_child_ids | REQUIRED: The new children IDs. We do not separate these into different classes of ID. It's a simple integer array. This is a "delta" array. That means that what it contains are CHANGES. You ADD children by indicating positive integers. You DELETE children by indicating negative integers. If your login does not have the ability to read (write is not necessary) the child ID, then that ID is ignored. If the ID to be deleted is not in the record, then it is ignored. |
Definition at line 349 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This requires a "detailed and parents" load.
NOTE:** Calling this can incur a fairly significant performance penalty!
Definition at line 377 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
This requires a detailed data load.
This returns a recursive hierarchy of instances for this object. It returns actual object instances; not IDs, using a simple tuple.
Definition at line 401 of file a_rvp_php_sdk_data_object.class.php.
|
inherited |
Simple accessor to set the "owning" SDK object.
$in_sdk_object | REQUIRED: The "owning" SDK object. |
Definition at line 148 of file a_rvp_php_sdk_object.class.php.
|
inherited |
Definition at line 157 of file a_rvp_php_sdk_object.class.php.
|
inherited |
Definition at line 165 of file a_rvp_php_sdk_object.class.php.
|
inherited |
Definition at line 177 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This requires a load, but not a "detailed" load.
Definition at line 187 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This sets the name of the object.
$in_new_value | REQUIRED: A new value for the name. |
Definition at line 205 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This requires a load, but not a "detailed" load.
Definition at line 226 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This sets the language ID of the object.
$in_new_value | REQUIRED: A new value for the language ID. |
Definition at line 244 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This requires a load, but not a "detailed" load.
Definition at line 265 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This sets the read and write tokens of the object.
The current login must have at least read access to each of the tokens. If a token is NULL, then the token is not changed.
$in_new_read | OPTIONAL: A new read token. Default is NULL (no change). |
$in_new_write | OPTIONAL: A new write token. Default is NULL (no change). |
Definition at line 303 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This requires a load, but not a "detailed" load.
Definition at line 326 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This requires a load, but not a "detailed" load.
Definition at line 344 of file a_rvp_php_sdk_object.class.php.
|
inherited |
This forces at least a detailed load.
This reloads the information, refreshing the object, if necessary.
$in_parents | OPTIONAL: Default is false. If true, then the parent info is also loaded. |
Definition at line 364 of file a_rvp_php_sdk_object.class.php.