Public Member Functions | |
__construct ( $in_login_string_id=NULL, $in_hashed_password=NULL, $in_raw_password=NULL, $in_api_key=NULL) | |
get_cobra_instance () | |
get_chameleon_instance () | |
valid () | |
logged_in () | |
manager () | |
god () | |
current_login () | |
current_user () | |
i_have_this_token ( $in_token_to_test) | |
get_login_item ( $in_login_integer_id=NULL) | |
get_login_item_by_login_string ( $in_login_string_id) | |
get_user_from_login_string ( $in_login_string_id) | |
who_can_see ( $in_test_target) | |
get_data_access_class_by_id ( $in_id) | |
get_security_access_class_by_id ( $in_id) | |
generic_search ( $in_search_parameters=NULL, $or_search=false, $page_size=0, $initial_page=0, $and_writeable=false, $count_only=false, $ids_only=false) | |
location_search ( $in_longitude_degrees, $in_latitude_degrees, $in_radius_kilometers, $page_size=0, $initial_page=0, $and_writeable=false, $count_only=false, $ids_only=false) | |
get_all_users ( $and_write=false) | |
get_all_login_users ( $and_write=false) | |
get_all_standalone_users ( $and_write=false) | |
tag_search ( $in_tags_associative_array, $in_or_search=false, $page_size=0, $initial_page=0, $and_writeable=false, $count_only=false, $ids_only=false) | |
get_user_from_login ( $in_login_integer_id=NULL, $in_make_user_if_necessary=false) | |
make_standalone_user () | |
create_new_standard_login ( $in_login_id, $in_cleartext_password, $in_create_this_many_personal_ids=0) | |
create_new_manager_login ( $in_login_id, $in_cleartext_password, $in_create_this_many_personal_ids=0) | |
create_new_user ( $in_login_string_id, $in_password=NULL, $in_display_name=NULL, $in_security_tokens=NULL, $in_read_security_id=NULL, $is_manager=false, $in_create_this_many_personal_ids=0) | |
delete_user ( $in_login_string_id, $with_extreme_prejudice=false) | |
get_all_logins ( $and_write=false, $in_login_string_id=NULL, $in_login_integer_id=NULL) | |
convert_login ( $in_login_id, $in_is_login_manager=false) | |
make_security_token () | |
get_multiple_data_records_by_id ( $in_id_array) | |
get_single_data_record_by_id ( $in_id) | |
create_general_data_item ( $in_read_security_id=1, $in_write_security_id=NULL, $in_classname='CO_Main_DB_Record') | |
create_collection ( $in_initial_item_ids=[], $in_read_security_id=1, $in_write_security_id=NULL, $in_classname='CO_Collection') | |
delete_item_by_id ( $in_item_id_integer) | |
get_value_for_key ( $in_key, $in_classname='CO_KeyValue_CO_Collection') | |
key_is_unique ( $in_key, $in_classname='CO_KeyValue_CO_Collection') | |
get_object_for_key ( $in_key) | |
delete_key ( $in_key, $in_classname='CO_KeyValue_CO_Collection') | |
set_value_for_key ( $in_key, $in_value, $in_classname='CO_KeyValue_CO_Collection') | |
create_ll_location ( $in_longitude_degrees, $in_latitude_degrees, $in_fuzz_factor=NULL, $in_see_clearly_id=NULL, $in_read_security_id=1, $in_write_security_id=NULL, $in_classname='CO_LL_Location') | |
create_place ( $auto_resolve=true, $in_venue=NULL, $in_street_address=NULL, $in_municipality=NULL, $in_county=NULL, $in_province=NULL, $in_postal_code=NULL, $in_nation=NULL, $in_extra_info=NULL, $in_longitude_degrees=NULL, $in_latitude_degrees=NULL, $in_fuzz_factor=NULL, $in_see_clearly_id=NULL, $in_read_security_id=1, $in_write_security_id=NULL, $in_classname='CO_Place') | |
create_ll_place ($in_longitude_degrees, $in_latitude_degrees, $in_fuzz_factor=NULL, $in_see_clearly_id=NULL, $in_read_security_id=1, $in_write_security_id=NULL, $in_classname='CO_Place') | |
create_ll_us_place ( $in_longitude_degrees, $in_latitude_degrees, $in_fuzz_factor=NULL, $in_see_clearly_id=NULL, $in_read_security_id=1, $in_write_security_id=NULL) | |
create_place_collection ($auto_resolve=true, $in_venue=NULL, $in_street_address=NULL, $in_municipality=NULL, $in_county=NULL, $in_province=NULL, $in_postal_code=NULL, $in_nation=NULL, $in_extra_info=NULL, $in_longitude_degrees=NULL, $in_latitude_degrees=NULL, $in_fuzz_factor=NULL, $in_see_clearly_id=NULL, $in_read_security_id=1, $in_write_security_id=NULL) | |
get_available_tokens () | |
count_all_login_objects_with_access ($in_security_token) | |
get_all_visible_users () | |
get_all_visible_logins () | |
can_i_see_this_data_record ( $in_id) | |
can_i_see_this_security_record ( $in_id) | |
get_all_login_objects_with_access ( $in_security_token, $and_write=false) | |
get_all_user_objects_with_access ( $in_security_token) | |
fetch_backup () | |
check_login_exists_by_login_string ( $in_login_id_string) | |
make_new_blank_record ( $in_classname) | |
get_personal_security_ids () | |
set_personal_ids ( $in_login_id, $in_personal_ids=[]) | |
get_all_personal_ids_except_for_id ( $in_id=0) | |
get_logins_with_personal_ids () | |
is_this_a_personal_id ( $in_id) | |
is_this_a_login_id ( $in_id) | |
add_personal_token_from_current_login ( $in_to_id, $in_id) | |
remove_personal_token_from_this_login ( $in_to_id, $in_id) | |
get_logins_that_have_any_of_my_ids () | |
get_remaining_time ($in_login_id=NULL) | |
Public Attributes | |
$version | |
The version indicator. More... | |
$error | |
Any errors that occured are kept here. More... | |
Protected Member Functions | |
_create_db_object ( $in_classname, $in_read_security_id=1, $in_write_security_id=NULL) | |
_make_security_token () | |
Protected Attributes | |
$_chameleon_instance = NULL | |
This is the CHAMELEON instance. More... | |
$_cobra_instance = NULL | |
This is the COBRA instance. More... | |
This class is the principal Model layer interface for the Rift Valley Platform. You instantiate an instance of this class, and it, in turn, will create an instance of CHAMELEON/BADGER, and, possibly, an instance of COBRA. That establishes a connection to the lower level data storage and security infrastructure.
You are to use this class for ALL access to the lower level functionality.
Definition at line 50 of file co_andisol.class.php.
CO_Andisol::__construct | ( | $in_login_string_id = NULL , |
|
$in_hashed_password = NULL , |
|||
$in_raw_password = NULL , |
|||
$in_api_key = NULL |
|||
) |
The constructor.
Default for parameters is NULL, but not supplying them will result in a non-logged-in instance of ANDISOL.
$in_login_string_id | OPTIONAL: The String login ID |
$in_hashed_password | OPTIONAL: The password, crypt-hashed |
$in_raw_password | The password, cleartext. |
$in_api_key | An API key, for REST. |
Definition at line 150 of file co_andisol.class.php.
References __ANDISOL_VERSION__, and CO_Cobra\make_cobra().
|
protected |
This creates an uninitialized object, based upon the passed-in class.
$in_classname | REQUIRED: A classname to use. |
$in_read_security_id | OPTIONAL: An initial read security ID. If not specified, 1 (open to all logged-in users) will be specified. |
$in_write_security_id | OPTIONAL: An initial write security ID. If not specified, the current user's integer login ID will be used as the write security token. |
Definition at line 67 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, get_chameleon_instance(), and logged_in().
Referenced by create_general_data_item().
|
protected |
This creates a new security token. Only managers or God can do this.
Definition at line 126 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, get_cobra_instance(), and manager().
Referenced by make_security_token().
CO_Andisol::add_personal_token_from_current_login | ( | $in_to_id, | |
$in_id | |||
) |
This adds a personal token from one ID's pool, to the regular ID pool of another ID.
$in_to_id | The ID of the object we are affecting. |
$in_id | The ID (personal token) to be added. |
Definition at line 1918 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::can_i_see_this_data_record | ( | $in_id | ) |
This returns true, if the current user at least has read access to the Data DB record whose ID is provided..
This is "security safe," so that means that if the user does not have rights to the row, or the row does not exist, they will get false.
$in_id | This is the ID of the record to check. |
Definition at line 1755 of file co_andisol.class.php.
References get_chameleon_instance().
Referenced by get_data_access_class_by_id().
CO_Andisol::can_i_see_this_security_record | ( | $in_id | ) |
This returns true, if the current user at least has read access to the Security DB record whose ID is provided..
This is "security safe," so that means that if the user does not have rights to the row, or the row does not exist, they will get false.
$in_id | This is the ID of the record to check. |
Definition at line 1768 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::check_login_exists_by_login_string | ( | $in_login_id_string | ) |
$in_login_id_string | The string login ID to check |
Definition at line 1816 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::convert_login | ( | $in_login_id, | |
$in_is_login_manager = false |
|||
) |
This is the public function used to convert a login to (or from) a manager, in the security database. This can only be called from a login manager. The user is not affected, and the login IDs (tokens) are also left "as is."
$in_login_id | The login ID as text. This must be for a login that can be managed by the current manager. |
$in_is_login_manager | If true, then this is a "promotion" to a a manager. If false (default), then this is a "demotion" to a standard user. |
Definition at line 987 of file co_andisol.class.php.
References get_cobra_instance().
CO_Andisol::count_all_login_objects_with_access | ( | $in_security_token | ) |
You give a security ID, and you will get a count of all login objects that have that token in their list (or are of that ID).
This is not restricted, and will count logins that we don't otherwise know about.
It does not count the "God" admin, which always has access.
$in_security_token | An integer, with the requested security token. |
Definition at line 1726 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::create_collection | ( | $in_initial_item_ids = [] , |
|
$in_read_security_id = 1 , |
|||
$in_write_security_id = NULL , |
|||
$in_classname = 'CO_Collection' |
|||
) |
This creates new generic collection object.
$in_initial_item_ids | OPTIONAL: An array of integers, containing the data database IDs of existing items that are to be added to the collection. Default is empty. |
$in_read_security_id | OPTIONAL: An initial read security ID. If not specified, 1 (open to all logged-in users) will be specified. |
$in_write_security_id | OPTIONAL: An initial write security ID. If not specified, the current user's integer login ID will be used as the write security token. |
$in_classname | OPTIONAL: This is the name of the class we want to create. It's optional, but leaving it out will give only the most basic collection record. |
Definition at line 1071 of file co_andisol.class.php.
References create_general_data_item(), and get_chameleon_instance().
CO_Andisol::create_general_data_item | ( | $in_read_security_id = 1 , |
|
$in_write_security_id = NULL , |
|||
$in_classname = 'CO_Main_DB_Record' |
|||
) |
This creates an uninitialized object, based upon the passed-in class.
$in_read_security_id | OPTIONAL: An initial read security ID. If not specified, 1 (open to all logged-in users) will be specified. |
$in_write_security_id | OPTIONAL: An initial write security ID. If not specified, the current user's integer login ID will be used as the write security token. |
$in_classname | OPTIONAL: This is the name of the class we want to create. It's optional, but leaving it out will give only the most basic data record. |
Definition at line 1058 of file co_andisol.class.php.
References _create_db_object().
Referenced by create_collection(), create_ll_location(), and create_place().
CO_Andisol::create_ll_location | ( | $in_longitude_degrees, | |
$in_latitude_degrees, | |||
$in_fuzz_factor = NULL , |
|||
$in_see_clearly_id = NULL , |
|||
$in_read_security_id = 1 , |
|||
$in_write_security_id = NULL , |
|||
$in_classname = 'CO_LL_Location' |
|||
) |
This creates an initialized basic location object, based upon the passed-in class.
$in_longitude_degrees | REQUIRED: The longitude, in degrees. |
$in_latitude_degrees | REQUIRED: The latitude, in degrees. |
$in_fuzz_factor | OPTIONAL: If there is a "fuzz factor" to be applied, it should be sent in as a distance in Kilometers. This creates a square, double the fuzz factor to a side, which is filled with a random value whenever the long/lat is queried. This is used when we don't want an exact location being returned. It is used to do things like preserve privacy. The "fuzzing" is done at an extremely low level, and only God, or IDs with write permission, can "see clearly." If you have the ability to "see" the exact location, then you can call special functions. Read permissions are not sufficient to "see clearly." You need to have write permissions on the object. You can also set a single security token that is allowed to see If NULL (default), or 0.0, no "fuzz factor" is applied, so the location is exact. |
$in_see_clearly_id | OPTIONAL: Ignored, if $in_fuzz_factor is not supplied. If $in_fuzz_factor is supplied, then this can be an ID, in addition to the write ID, that has permission to see the exact location. Default is NULL. |
$in_read_security_id | OPTIONAL: An initial read security ID. If not specified, 1 (open to all logged-in users) will be specified. |
$in_write_security_id | OPTIONAL: An initial write security ID. If not specified, the current user's integer login ID will be used as the write security token. |
$in_classname | OPTIONAL: A classname to use, besides the lowest-level class. If NULL, then the CO_LL_Location class is used. |
Definition at line 1221 of file co_andisol.class.php.
References create_general_data_item().
CO_Andisol::create_ll_place | ( | $in_longitude_degrees, | |
$in_latitude_degrees, | |||
$in_fuzz_factor = NULL , |
|||
$in_see_clearly_id = NULL , |
|||
$in_read_security_id = 1 , |
|||
$in_write_security_id = NULL , |
|||
$in_classname = 'CO_Place' |
|||
) |
This creates an initialized place location object, based upon the passed-in class. However, this method will take just a long/lat, like creating a long/lat class, and do a geocode to set the address fields.
$in_longitude_degrees | REQUIRED: The longitude, in degrees. |
$in_latitude_degrees | REQUIRED: The latitude, in degrees. |
$in_fuzz_factor | OPTIONAL: If there is a "fuzz factor" to be applied, it should be sent in as a distance in Kilometers. This creates a square, double the fuzz factor to a side, which is filled with a random value whenever the long/lat is queried. This is used when we don't want an exact location being returned. It is used to do things like preserve privacy. The "fuzzing" is done at an extremely low level, and only God, or IDs with write permission, can "see clearly." If you have the ability to "see" the exact location, then you can call special functions. Read permissions are not sufficient to "see clearly." You need to have write permissions on the object. You can also set a single security token that is allowed to see If NULL (default), or 0.0, no "fuzz factor" is applied, so the location is exact. |
$in_see_clearly_id | OPTIONAL: Ignored, if $in_fuzz_factor is not supplied. If $in_fuzz_factor is supplied, then this can be an ID, in addition to the write ID, that has permission to see the exact location. Default is NULL. |
$in_read_security_id | OPTIONAL: An initial read security ID. If not specified, 1 (open to all logged-in users) will be specified. |
$in_write_security_id | OPTIONAL: An initial write security ID. If not specified, the current user's integer login ID will be used as the write security token. |
$in_classname | OPTIONAL: A classname to use, besides the lowest-level class. If NULL, then the CO_Place class is used. |
Definition at line 1617 of file co_andisol.class.php.
References create_place().
CO_Andisol::create_ll_us_place | ( | $in_longitude_degrees, | |
$in_latitude_degrees, | |||
$in_fuzz_factor = NULL , |
|||
$in_see_clearly_id = NULL , |
|||
$in_read_security_id = 1 , |
|||
$in_write_security_id = NULL |
|||
) |
This creates an initialized basic US place location COLLECTION object. This does not accept a classname. Use the regular function if you want to get fancy. However, this method will take just a long/lat, like creating a long/lat class, and do a geocode to set the address fields.
$in_longitude_degrees | REQUIRED: The longitude, in degrees. |
$in_latitude_degrees | REQUIRED: The latitude, in degrees. |
$in_fuzz_factor | OPTIONAL: If there is a "fuzz factor" to be applied, it should be sent in as a distance in Kilometers. This creates a square, double the fuzz factor to a side, which is filled with a random value whenever the long/lat is queried. This is used when we don't want an exact location being returned. It is used to do things like preserve privacy. The "fuzzing" is done at an extremely low level, and only God, or IDs with write permission, can "see clearly." If you have the ability to "see" the exact location, then you can call special functions. Read permissions are not sufficient to "see clearly." You need to have write permissions on the object. You can also set a single security token that is allowed to see If NULL (default), or 0.0, no "fuzz factor" is applied, so the location is exact. |
$in_see_clearly_id | OPTIONAL: Ignored, if $in_fuzz_factor is not supplied. If $in_fuzz_factor is supplied, then this can be an ID, in addition to the write ID, that has permission to see the exact location. Default is NULL. |
$in_read_security_id | OPTIONAL: An initial read security ID. If not specified, 1 (open to all logged-in users) will be specified. |
$in_write_security_id | OPTIONAL: An initial write security ID. If not specified, the current user's integer login ID will be used as the write security token. |
Definition at line 1643 of file co_andisol.class.php.
References create_place().
CO_Andisol::create_new_manager_login | ( | $in_login_id, | |
$in_cleartext_password, | |||
$in_create_this_many_personal_ids = 0 |
|||
) |
This is the public function used to create a new login manager login in the security database. This can only be called from a login manager.
$in_login_id | The login ID as text. It needs to be unique, within the Security database, and this will fail, if it is not. |
$in_cleartext_password | The password to set (in cleartext). It will be stored as a hashed password. |
$in_create_this_many_personal_ids | This is how many Personal tokens should be created and assigned. Default is 0. |
Definition at line 715 of file co_andisol.class.php.
References get_cobra_instance().
CO_Andisol::create_new_standard_login | ( | $in_login_id, | |
$in_cleartext_password, | |||
$in_create_this_many_personal_ids = 0 |
|||
) |
This is the public function used to create a new standard login in the security database. This can only be called from a login manager.
$in_login_id | The login ID as text. It needs to be unique, within the Security database, and this will fail, if it is not. |
$in_cleartext_password | The password to set (in cleartext). It will be stored as a hashed password. |
$in_create_this_many_personal_ids | This is how many Personal tokens should be created and assigned. Default is 0. |
Definition at line 701 of file co_andisol.class.php.
References get_cobra_instance().
CO_Andisol::create_new_user | ( | $in_login_string_id, | |
$in_password = NULL , |
|||
$in_display_name = NULL , |
|||
$in_security_tokens = NULL , |
|||
$in_read_security_id = NULL , |
|||
$is_manager = false , |
|||
$in_create_this_many_personal_ids = 0 |
|||
) |
This method can only be called if the user is logged in as a Login Manager (or God). This creates a new login and user collection. Upon successful completion, both a new login, and a user collection, based upon that login, now exist. If there was an error, the user and login are deleted. It should be noted that, if the login was created, it is not really deleted, and is, instead, turned into a security token object.
$in_login_string_id | REQUIRED: The string login ID. It must be unique in the Security DB. |
$in_password | OPTIONAL: A new password. It must be at least as long as the minimum password length. If not supplied, an auto-generated password is created and returned as the function return. If too short, then an auto-generated password is created. |
$in_display_name | OPTIONAL: A string, representing the basic "display name" to be associated with the login and user collection. If not supplied, the $in_login_string_id is used. |
$in_security_tokens | Any additional security tokens to apply to the new login. These must be a subset of the security tokens available to the logged-in manager. The God admin can set any tokens they want. |
$in_read_security_id | An optional read security ID. If not supplied, then ID 1 (logged-in users) is set. The write security ID is always set to the ID of the login. |
$is_manager | If true (default is false), then the new user will be a CO_Login_Manager object. |
$in_create_this_many_personal_ids | This is how many Personal tokens should be created and assigned. Default is 0. |
Definition at line 731 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_login_instance_failed_to_initialize, CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_login_instance_failed_to_initialize, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_login_instance_failed_to_initialize, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, get_cobra_instance(), and manager().
CO_Andisol::create_place | ( | $auto_resolve = true , |
|
$in_venue = NULL , |
|||
$in_street_address = NULL , |
|||
$in_municipality = NULL , |
|||
$in_county = NULL , |
|||
$in_province = NULL , |
|||
$in_postal_code = NULL , |
|||
$in_nation = NULL , |
|||
$in_extra_info = NULL , |
|||
$in_longitude_degrees = NULL , |
|||
$in_latitude_degrees = NULL , |
|||
$in_fuzz_factor = NULL , |
|||
$in_see_clearly_id = NULL , |
|||
$in_read_security_id = 1 , |
|||
$in_write_security_id = NULL , |
|||
$in_classname = 'CO_Place' |
|||
) |
This creates an initialized basic place location object, based upon the passed-in class. Although all parameters are optional, you need to specify at last enough information to specify a place.
$auto_resolve | OPTIONAL: If false (Default is true), then we will not try to "fill in the blanks" with any missing information. |
$in_venue | OPTIONAL: The venue (place/building/establishment name). |
$in_street_address | OPTIONAL: Ignored if $in_fuzz_factor is nonzero. The street address (including number). |
$in_municipality | OPTIONAL: Ignored if $in_fuzz_factor is nonzero. The town/city. |
$in_county | OPTIONAL: Ignored if $in_fuzz_factor is nonzero. The county/sub-province. |
$in_province | OPTIONAL: Ignored if $in_fuzz_factor is nonzero. The state/province/prefecture. |
$in_postal_code | OPTIONAL: Ignored if $in_fuzz_factor is nonzero. The ZIP/postal code. |
$in_nation | OPTIONAL: Ignored if $in_fuzz_factor is nonzero. The nation. |
$in_extra_info | OPTIONAL: Additional (casual text) address/location/venue information. |
$in_longitude_degrees | OPTIONAL: The longitude, in degrees. |
$in_latitude_degrees | OPTIONAL: The latitude, in degrees. |
$in_fuzz_factor | OPTIONAL: If there is a "fuzz factor" to be applied, it should be sent in as a distance in Kilometers. This creates a square, double the fuzz factor to a side, which is filled with a random value whenever the long/lat is queried. This is used when we don't want an exact location being returned. It is used to do things like preserve privacy. The "fuzzing" is done at an extremely low level, and only God, or IDs with write permission, can "see clearly." If you have the ability to "see" the exact location, then you can call special functions. Read permissions are not sufficient to "see clearly." You need to have write permissions on the object. You can also set a single security token that is allowed to see If NULL (default), or 0.0, no "fuzz factor" is applied, so the location is exact. |
$in_see_clearly_id | OPTIONAL: Ignored, if $in_fuzz_factor is not supplied. If $in_fuzz_factor is supplied, then this can be an ID, in addition to the write ID, that has permission to see the exact location. Default is NULL. |
$in_read_security_id | OPTIONAL: An initial read security ID. If not specified, 1 (open to all logged-in users) will be specified. |
$in_write_security_id | OPTIONAL: An initial write security ID. If not specified, the current user's integer login ID will be used as the write security token. |
$in_classname | OPTIONAL: A classname to use, besides the lowest-level class. If NULL, then the CO_Place class is used. |
Definition at line 1304 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_insufficient_location_information, CO_ANDISOL_Lang_Common\$andisol_error_code_location_failed_to_initialize, CO_ANDISOL_Lang\$andisol_error_desc_insufficient_location_information, CO_ANDISOL_Lang\$andisol_error_desc_location_failed_to_initialize, CO_ANDISOL_Lang\$andisol_error_name_insufficient_location_information, CO_ANDISOL_Lang\$andisol_error_name_location_failed_to_initialize, and create_general_data_item().
Referenced by create_ll_place(), create_ll_us_place(), and create_place_collection().
CO_Andisol::create_place_collection | ( | $auto_resolve = true , |
|
$in_venue = NULL , |
|||
$in_street_address = NULL , |
|||
$in_municipality = NULL , |
|||
$in_county = NULL , |
|||
$in_province = NULL , |
|||
$in_postal_code = NULL , |
|||
$in_nation = NULL , |
|||
$in_extra_info = NULL , |
|||
$in_longitude_degrees = NULL , |
|||
$in_latitude_degrees = NULL , |
|||
$in_fuzz_factor = NULL , |
|||
$in_see_clearly_id = NULL , |
|||
$in_read_security_id = 1 , |
|||
$in_write_security_id = NULL |
|||
) |
This creates an initialized basic place location COLLECTION object. This does not accept a classname. Use the regular function if you want to get fancy. Although all parameters are optional, you need to specify at last enough information to specify a place.
$auto_resolve | OPTIONAL: If false (Default is true), then we will not try to "fill in the blanks" with any missing information. |
$in_venue | OPTIONAL: The venue (place/building/establishment name). |
$in_street_address | OPTIONAL: The street address (including number). |
$in_municipality | OPTIONAL: The town/city. |
$in_county | OPTIONAL: The county/sub-province. |
$in_province | OPTIONAL: The state/province/prefecture. |
$in_postal_code | OPTIONAL: The ZIP/postal code. |
$in_nation | OPTIONAL: The nation. |
$in_extra_info | OPTIONAL: Additional (casual text) address/location/venue information. |
$in_longitude_degrees | OPTIONAL: The longitude, in degrees. |
$in_latitude_degrees | OPTIONAL: The latitude, in degrees. |
$in_fuzz_factor | OPTIONAL: If there is a "fuzz factor" to be applied, it should be sent in as a distance in Kilometers. This creates a square, double the fuzz factor to a side, which is filled with a random value whenever the long/lat is queried. This is used when we don't want an exact location being returned. It is used to do things like preserve privacy. The "fuzzing" is done at an extremely low level, and only God, or IDs with write permission, can "see clearly." If you have the ability to "see" the exact location, then you can call special functions. Read permissions are not sufficient to "see clearly." You need to have write permissions on the object. You can also set a single security token that is allowed to see If NULL (default), or 0.0, no "fuzz factor" is applied, so the location is exact. |
$in_see_clearly_id | OPTIONAL: Ignored, if $in_fuzz_factor is not supplied. If $in_fuzz_factor is supplied, then this can be an ID, in addition to the write ID, that has permission to see the exact location. Default is NULL. |
$in_read_security_id | OPTIONAL: An initial read security ID. If not specified, 1 (open to all logged-in users) will be specified. |
$in_write_security_id | OPTIONAL: An initial write security ID. If not specified, the current user's integer login ID will be used as the write security token. |
Definition at line 1668 of file co_andisol.class.php.
References create_place().
CO_Andisol::current_login | ( | ) |
Definition at line 245 of file co_andisol.class.php.
References get_login_item().
CO_Andisol::current_user | ( | ) |
Definition at line 253 of file co_andisol.class.php.
References get_user_from_login().
CO_Andisol::delete_item_by_id | ( | $in_item_id_integer | ) |
Deletes a data item, given its integer ID.
$in_item_id_integer | REQUIRED: This is the key that we are deleting. It must be a string. |
Definition at line 1105 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, get_chameleon_instance(), and logged_in().
CO_Andisol::delete_key | ( | $in_key, | |
$in_classname = 'CO_KeyValue_CO_Collection' |
|||
) |
This deletes a key (and its associated data).
$in_key | REQUIRED: This is the key that we are deleting. It must be a string. |
$in_classname | OPTIONAL: This is the class to search for the key. The default is the base class. |
Definition at line 1177 of file co_andisol.class.php.
References set_value_for_key().
CO_Andisol::delete_user | ( | $in_login_string_id, | |
$with_extreme_prejudice = false |
|||
) |
This method can only be called if the user is logged in as a Login Manager (or God). This will delete both the login and the user collection for the given login ID. It should be noted that deleting a collection does not delete the data associated with that collection, unless $with_extreme_prejudice is true, and even then, only the records this manager can see will be deleted.
$in_login_string_id | REQUIRED: The string login ID of the user to delete. |
$with_extreme_prejudice | OPTIONAL: If true (Default is false), then the manager will delete as many of the user data points as possible (It may not be possible for the manager to delete all data, unless the manager is God). |
Definition at line 898 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_login_instance_unavailable, CO_ANDISOL_Lang_Common\$andisol_error_code_user_instance_unavailable, CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_deleted, CO_ANDISOL_Lang\$andisol_error_desc_login_instance_unavailable, CO_ANDISOL_Lang\$andisol_error_desc_user_instance_unavailable, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_user_not_deleted, CO_ANDISOL_Lang\$andisol_error_name_login_instance_unavailable, CO_ANDISOL_Lang\$andisol_error_name_user_instance_unavailable, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_user_not_deleted, get_cobra_instance(), and manager().
CO_Andisol::fetch_backup | ( | ) |
This is a special "God Mode-Only" method that dumps everything in both databases. It is used to generate a CSV backup file.
The user must be logged in as "God."
Definition at line 1808 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::generic_search | ( | $in_search_parameters = NULL , |
|
$or_search = false , |
|||
$page_size = 0 , |
|||
$initial_page = 0 , |
|||
$and_writeable = false , |
|||
$count_only = false , |
|||
$ids_only = false |
|||
) |
This is a "generic" data search. It can be called from external user contexts, and allows a fairly generalized search of the "data" datasource. Sorting will be done for the "owner" and "location" values. "owner" will be sorted by the ID of the returned records, and "location" will be by distance from the center.
String searches are always case-insensitive.
All parameters are optional, but calling this "blank" will return the entire data databse (that is visible to the user).
Here are a few examples:
$in_search_parameters | OPTIONAL: This is an associative array of terms to define the search. The keys should be:
|
You can specify an array for any one of the values, which allows you to do an OR search for those values ($or_search does not apply. It is only for the combination of main values). If you add an element called 'use_like' ('use_like' => 1) to the end of 'access_class', 'name' or one of the 'tags', then you can use SQL-style "wildcards" (%) in your matches. If you have 'use_like', and put just a single wildcard in quotes (''), then you are saying "not-empty." NOTE: Although this is an optional parameter, failing to provide anything could return the entire readable database.
$or_search | OPTIONAL: If true, then the search is very wide (OR), as opposed to narrow (AND), by default. If you specify a location, then that will always be AND, but the other fields can be OR. Tags will always be searched as OR. |
$page_size | OPTIONAL: If specified with a 1-based integer, this denotes the size of a "page" of results. NOTE: This is only applicable to MySQL or Postgres, and will be ignored if the DB is not MySQL or Postgres. Default is 0. |
$initial_page | OPTIONAL: This is ignored unless $page_size is greater than 0. In that case, this 0-based index will specify which page of results to return. Values beyond the maximum number of pages will result in no returned values. |
$and_writeable | OPTIONAL: If true, then we only want records we can modify. |
$count_only | OPTIONAL: If true (default is false), then only a single integer will be returned, with the count of items that fit the search. |
$ids_only | OPTIONAL: If true (default is false), then the return array will consist only of integers (the object IDs). If $count_only is true, this is ignored. |
Definition at line 481 of file co_andisol.class.php.
References get_chameleon_instance().
Referenced by get_all_login_users(), get_all_standalone_users(), get_all_users(), and location_search().
CO_Andisol::get_all_login_objects_with_access | ( | $in_security_token, | |
$and_write = false |
|||
) |
You give a security ID, and you will get all login objects that have that token in their list (or are of that ID).
This is restricted to use security vetting, so only logins visible to the current login.
$in_security_token | An integer, with the requested security token. |
$and_write | If true, then we only want ones we have write access to. |
Definition at line 1781 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_all_login_users | ( | $and_write = false | ) |
$and_write | OPTIONAL: If true (Default is false), then we only want ones we have write access to. |
Definition at line 574 of file co_andisol.class.php.
References generic_search(), and god().
CO_Andisol::get_all_logins | ( | $and_write = false , |
|
$in_login_string_id = NULL , |
|||
$in_login_integer_id = NULL |
|||
) |
$and_write | OPTIONAL: If true (Default is false), then we only want ones we have write access to. |
$in_login_string_id | OPTIONAL: This is ignored, unless this is the God login. If We are logged in as God, then we can select a login via its string login ID, and see what logins are available to it. This trumps the integer ID. |
$in_login_integer_id | OPTIONAL: This is ignored, unless this is the God login and $in_login_string_id is not specified. If We are logged in as God, then we can select a login via its integer login ID, and see what logins are available to it. |
Definition at line 958 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, get_cobra_instance(), and manager().
CO_Andisol::get_all_personal_ids_except_for_id | ( | $in_id = 0 | ) |
This returns just the "personal" IDs for ALL logins, EXCEPT for the given ID.
This should only be called from the ID fetcher in the access class, as it does not do a security predicate.
$in_id | The integer ID of the row we want exempted. If not specified, then all IDs are returned. |
Definition at line 1874 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_all_standalone_users | ( | $and_write = false | ) |
$and_write | OPTIONAL: If true (Default is false), then we only want ones we have write access to. |
Definition at line 599 of file co_andisol.class.php.
References generic_search(), and god().
CO_Andisol::get_all_user_objects_with_access | ( | $in_security_token | ) |
You give a security ID, and you will get all user objects that have a login wih that token in their list (or are of that ID).
This is restricted to use security vetting, so only users visible to the current login.
$in_security_token | An integer, with the requested security token. |
Definition at line 1795 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_all_users | ( | $and_write = false | ) |
$and_write | OPTIONAL: If true (Default is false), then we only want ones we have write access to. |
Definition at line 551 of file co_andisol.class.php.
References generic_search(), and god().
CO_Andisol::get_all_visible_logins | ( | ) |
Definition at line 1743 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_all_visible_users | ( | ) |
Definition at line 1735 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_available_tokens | ( | ) |
This fetches the list of security tokens the currently logged-in user has available. This will reload any non-God Mode IDs before fetching the IDs, in order to spike privilege escalation.
With the God Mode, you get all the security tokens.
Definition at line 1712 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_chameleon_instance | ( | ) |
Definition at line 201 of file co_andisol.class.php.
References $_chameleon_instance.
Referenced by _create_db_object(), add_personal_token_from_current_login(), can_i_see_this_data_record(), can_i_see_this_security_record(), check_login_exists_by_login_string(), count_all_login_objects_with_access(), create_collection(), delete_item_by_id(), fetch_backup(), generic_search(), get_all_login_objects_with_access(), get_all_personal_ids_except_for_id(), get_all_user_objects_with_access(), get_all_visible_logins(), get_all_visible_users(), get_available_tokens(), get_data_access_class_by_id(), get_login_item(), get_login_item_by_login_string(), get_logins_that_have_any_of_my_ids(), get_logins_with_personal_ids(), get_multiple_data_records_by_id(), get_object_for_key(), get_personal_security_ids(), get_remaining_time(), get_security_access_class_by_id(), get_single_data_record_by_id(), get_user_from_login(), get_value_for_key(), god(), i_have_this_token(), is_this_a_login_id(), is_this_a_personal_id(), key_is_unique(), logged_in(), make_new_blank_record(), remove_personal_token_from_this_login(), set_value_for_key(), and valid().
CO_Andisol::get_cobra_instance | ( | ) |
Definition at line 193 of file co_andisol.class.php.
References $_cobra_instance.
Referenced by _make_security_token(), convert_login(), create_new_manager_login(), create_new_standard_login(), create_new_user(), delete_user(), get_all_logins(), get_user_from_login(), make_standalone_user(), manager(), set_personal_ids(), and who_can_see().
CO_Andisol::get_data_access_class_by_id | ( | $in_id | ) |
This returns the access class for the given ID for the Data Database.
This is "security safe," so that means that if the user does not have rights to the row, they will get NULL.
$in_id | This is the ID of the record to fetch. |
Definition at line 367 of file co_andisol.class.php.
References can_i_see_this_data_record(), and get_chameleon_instance().
CO_Andisol::get_login_item | ( | $in_login_integer_id = NULL | ) |
This returns the actual security DB login item for the requested user (or the current logged-in user).
The response is subject to standard security vetting, so there is a possibility that nothing will be returned, when there is an existing login at that ID.
$in_login_integer_id | OPTIONAL: The integer login ID to check (Default is NULL). If not-NULL, then the ID of a login instance. It must be one that the current user can see. If NULL, then the current user. |
Definition at line 280 of file co_andisol.class.php.
References get_chameleon_instance(), and logged_in().
Referenced by current_login().
CO_Andisol::get_login_item_by_login_string | ( | $in_login_string_id | ) |
This returns the actual security DB login item for the requested user (or the current logged-in user).
The response is subject to standard security vetting, so there is a possibility that nothing will be returned, when there is an existing login at that ID.
$in_login_string_id | REQUIRED: The string login ID to check. It must be one that the current user can see. |
Definition at line 302 of file co_andisol.class.php.
References get_chameleon_instance(), and logged_in().
Referenced by get_user_from_login_string().
CO_Andisol::get_logins_that_have_any_of_my_ids | ( | ) |
This returns IDs that have our personal IDs.
Definition at line 1942 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_logins_with_personal_ids | ( | ) |
This returns IDs that have personal IDs. This only works for the God admin.
Definition at line 1886 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_multiple_data_records_by_id | ( | $in_id_array | ) |
This method queries the "data" databse for multiple records, given a list of IDs.
The records will not be returned if the user does not have read permission for them.
$in_id_array | REQUIRED: An array of integers, with the item IDs. |
Definition at line 1016 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_object_for_key | ( | $in_key | ) |
$in_key | REQUIRED: This is the key that we are searching for. It must be a string. |
Definition at line 1160 of file co_andisol.class.php.
References get_chameleon_instance(), and valid().
CO_Andisol::get_personal_security_ids | ( | ) |
This fetches the list of the "personal" security tokens the currently logged-in user has available. This will reload any non-God Mode IDs before fetching the IDs, in order to spike privilege escalation. If they have God Mode, then you're pretty much screwed, anyway.
Definition at line 1846 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_remaining_time | ( | $in_login_id = NULL | ) |
$in_login_id | The integer login ID to check. If not-NULL, then the ID of a login instance. It must be one that the current user can see. |
Definition at line 1950 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_security_access_class_by_id | ( | $in_id | ) |
This returns the access class for the given ID for the Security Database.
This is "security safe," so that means that if the user does not have rights to the row, they will get NULL.
$in_id | This is the ID of the record to fetch. |
Definition at line 389 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_single_data_record_by_id | ( | $in_id | ) |
This is a "security-safe" method for fetching a single record from the "data" database, by its ID.
$in_id | REQUIRED: The ID of the record to fetch. |
Definition at line 1033 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::get_user_from_login | ( | $in_login_integer_id = NULL , |
|
$in_make_user_if_necessary = false |
|||
) |
This is a special function for returning the user for a login, with the possibility of creating one, if one was not already in place. In order to potentially create a user, the current login must be a manager, $in_make_user_if_necessary must be true, and the user must not already exist (even if the current login cannot see that user).
$in_login_integer_id | OPTIONAL: The integer login ID that is associated with the user collection. If NULL (Default), then the current login is used. |
$in_make_user_if_necessary | OPTIONAL: If true (Default is false), then the user will be created if it does not already exist. Ignored, if we are not a Login Manager. |
Definition at line 651 of file co_andisol.class.php.
References get_chameleon_instance(), get_cobra_instance(), and manager().
Referenced by current_user(), and get_user_from_login_string().
CO_Andisol::get_user_from_login_string | ( | $in_login_string_id | ) |
$in_login_string_id | REQUIRED: The string login ID that is associated with the user collection. |
Definition at line 321 of file co_andisol.class.php.
References get_login_item_by_login_string(), and get_user_from_login().
CO_Andisol::get_value_for_key | ( | $in_key, | |
$in_classname = 'CO_KeyValue_CO_Collection' |
|||
) |
$in_key | REQUIRED: This is the key that we are searching for. It must be a string. |
$in_classname | OPTIONAL: This is the class to search for the key. The default is the base class. |
Definition at line 1131 of file co_andisol.class.php.
References get_chameleon_instance(), and valid().
CO_Andisol::god | ( | ) |
Definition at line 237 of file co_andisol.class.php.
References get_chameleon_instance(), and manager().
Referenced by get_all_login_users(), get_all_standalone_users(), and get_all_users().
CO_Andisol::i_have_this_token | ( | $in_token_to_test | ) |
Tests a token, to see if the current user has it.
$in_token_to_test | The token we are checking out |
Definition at line 263 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::is_this_a_login_id | ( | $in_id | ) |
This checks an ID, to see if it is a login ID.
$in_id | The ID we are checking. Must be greater than 1. |
Definition at line 1907 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::is_this_a_personal_id | ( | $in_id | ) |
This checks an ID, to see if it is a personal ID.
$in_id | The ID we are checking. Must be greater than 1. |
Definition at line 1896 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::key_is_unique | ( | $in_key, | |
$in_classname = 'CO_KeyValue_CO_Collection' |
|||
) |
$in_key | The key to test (a string). |
$in_classname | This is the class to search for the key. The default is the base class. |
Definition at line 1150 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::location_search | ( | $in_longitude_degrees, | |
$in_latitude_degrees, | |||
$in_radius_kilometers, | |||
$page_size = 0 , |
|||
$initial_page = 0 , |
|||
$and_writeable = false , |
|||
$count_only = false , |
|||
$ids_only = false |
|||
) |
This is a search, based on a location and radius around that location. Only objects that have a longitude and latitude that fall within the radius will be returned. All visible classes and instances will be returned. Only location and security filtering are applied.
$in_longitude_degrees | REQUIRED: The latitude of the center, in degrees. |
$in_latitude_degrees | REQUIRED: The logitude of the center, in degrees. |
$in_radius_kilometers | REQUIRED: The search radius, in Kilomters. |
$page_size | OPTIONAL: If specified with a 1-based integer, this denotes the size of a "page" of results. NOTE: This is only applicable to MySQL or Postgres, and will be ignored if the DB is not MySQL or Postgres. Default is 0. |
$initial_page | OPTIONAL: This is ignored unless $page_size is greater than 0. If so, then this 0-based index will specify which page of results to return. Values beyond the maximum number of pages will result in no returned values. |
$and_writeable | OPTIONAL: If true, then we only want records we can modify. |
$count_only | OPTIONAL: If true (default is false), then only a single integer will be returned, with the count of items that fit the search. |
$ids_only | OPTIONAL: If true (default is false), then the return array will consist only of integers (the object IDs). If $count_only is true, this is ignored. |
Definition at line 533 of file co_andisol.class.php.
References generic_search().
CO_Andisol::logged_in | ( | ) |
Definition at line 221 of file co_andisol.class.php.
References get_chameleon_instance(), and valid().
Referenced by _create_db_object(), delete_item_by_id(), get_login_item(), get_login_item_by_login_string(), manager(), and set_value_for_key().
CO_Andisol::make_new_blank_record | ( | $in_classname | ) |
This method instantiates a new, default instance of a class.
The instance does not reflect a database entity until it has had its update_db() method called.
$in_classname | This is the name of the class to instantiate. |
Definition at line 1829 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::make_security_token | ( | ) |
This creates a new security token. Only managers or God can do this.
Definition at line 1000 of file co_andisol.class.php.
References _make_security_token().
CO_Andisol::make_standalone_user | ( | ) |
Creates a new "standalone" user that has no associated login instance.
Definition at line 675 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, CO_ANDISOL_Lang\$andisol_new_unnamed_user_name_format, get_cobra_instance(), and manager().
CO_Andisol::manager | ( | ) |
Definition at line 229 of file co_andisol.class.php.
References get_cobra_instance(), and logged_in().
Referenced by _make_security_token(), create_new_user(), delete_user(), get_all_logins(), get_user_from_login(), god(), make_standalone_user(), and who_can_see().
CO_Andisol::remove_personal_token_from_this_login | ( | $in_to_id, | |
$in_id | |||
) |
This removes a token that is owned by one ID, from another ID.
$in_to_id | The ID of the object we are affecting. |
$in_id | The ID (personal token) to be removed. |
Definition at line 1930 of file co_andisol.class.php.
References get_chameleon_instance().
CO_Andisol::set_personal_ids | ( | $in_login_id, | |
$in_personal_ids = [] |
|||
) |
This sets just the "personal" IDs for the given ID.
This should only be called by the "God" admin, and will fail, otherwise (returns empty array).
This is not an atomic operation. If any of the given IDs are also in the regular ID list, they will be removed from the personal IDs.
$in_login_id | The ID of the login we want to modify. |
$in_personal_ids | An Array of Integers, with the new personal IDs. This replaces any previous ones. If empty, then the IDs are removed. |
Definition at line 1860 of file co_andisol.class.php.
References get_cobra_instance().
CO_Andisol::set_value_for_key | ( | $in_key, | |
$in_value, | |||
$in_classname = 'CO_KeyValue_CO_Collection' |
|||
) |
This sets a value to a key, creating the record, if need be. Passing in NULL will delete the key (if we have write access). We need to have a login for it to work at all. If the value already exists, then we need to have write access to it, or we will fail. This will only work if we are logged in.
$in_key | REQUIRED: This is the key that we are setting. It must be a string. |
$in_value | REQUIRED: The value to set. If NULL, then we will delete the key. |
$in_classname | OPTIONAL: This is the class to use for the key. The default is the base class. |
Definition at line 1191 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, get_chameleon_instance(), and logged_in().
Referenced by delete_key().
CO_Andisol::tag_search | ( | $in_tags_associative_array, | |
$in_or_search = false , |
|||
$page_size = 0 , |
|||
$initial_page = 0 , |
|||
$and_writeable = false , |
|||
$count_only = false , |
|||
$ids_only = false |
|||
) |
$in_tags_associative_array | REQUIRED: This is an associative array, with the keys being "0" through "9". Each element will have a requested value for that element. Leaving an element out will remove it as a search factor. Adding it, but leaving it NULL or blank, means that this tag MUST be null or blank. If you add an element called 'use_like' ('use_like' => 1) to the array, then you can use SQL-style "wildcards" (%) in your matches. Unless $in_or_search is set to true, the search will be an AND search; meaning that ALL the tag values must match, in order to result in a record being returned. |
$in_or_search | OPTIONAL: If true (Default is false), then the search will be an "OR" search (any of the values). |
$page_size | OPTIONAL: If specified with a 1-based integer, this denotes the size of a "page" of results. NOTE: This is only applicable to MySQL or Postgres, and will be ignored if the DB is not MySQL or Postgres. Default is 0. |
$initial_page | OPTIONAL: This is ignored unless $page_size is greater than 0. If so, then this 0-based index will specify which page of results to return. Values beyond the maximum number of pages will result in no returned values. |
$and_writeable | OPTIONAL: If true, then we only want records we can modify. |
$count_only | OPTIONAL: If true (default is false), then only a single integer will be returned, with the count of items that fit the search. |
$ids_only | OPTIONAL: If true (default is false), then the return array will consist only of integers (the object IDs). If $count_only is true, this is ignored. |
Definition at line 622 of file co_andisol.class.php.
CO_Andisol::valid | ( | ) |
Definition at line 213 of file co_andisol.class.php.
References get_chameleon_instance().
Referenced by get_object_for_key(), get_value_for_key(), and logged_in().
CO_Andisol::who_can_see | ( | $in_test_target | ) |
Test an item to see which logins can access it.
This is security-limited.
$in_test_target | REQUIRED: This is an instance of a subclass of A_CO_DB_Table_Base (General Database Record). |
Definition at line 342 of file co_andisol.class.php.
References CO_ANDISOL_Lang_Common\$andisol_error_code_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_desc_user_not_authorized, CO_ANDISOL_Lang\$andisol_error_name_user_not_authorized, get_cobra_instance(), and manager().
|
protected |
This is the CHAMELEON instance.
Definition at line 51 of file co_andisol.class.php.
Referenced by get_chameleon_instance().
|
protected |
This is the COBRA instance.
Definition at line 52 of file co_andisol.class.php.
Referenced by get_cobra_instance().
CO_Andisol::$error |
Any errors that occured are kept here.
Definition at line 55 of file co_andisol.class.php.
CO_Andisol::$version |
The version indicator.
Definition at line 54 of file co_andisol.class.php.