Public Member Functions | |
__construct ( $in_db_object=NULL, $in_db_result=NULL, $in_owner_id=NULL, $in_tags_array=NULL) | |
load_from_db ( $in_db_result) | |
set_owner_id ( $in_new_id) | |
set_tags ( $in_tags_array) | |
set_tag ( $in_tag_index, $in_tag_value) | |
get_payload () | |
set_payload ( $in_payload) | |
owner_id () | |
tags () | |
Public Member Functions inherited from A_CO_DB_Table_Base | |
__construct ( $in_db_object=NULL, $in_db_result=NULL) | |
set_batch_mode () | |
clear_batch_mode () | |
id () | |
lock () | |
locked () | |
danger_will_robinson_danger_clear_id () | |
user_can_read () | |
user_can_write () | |
set_read_security_id ($in_new_id) | |
set_write_security_id ($in_new_id) | |
set_name ($in_new_value) | |
delete_from_db () | |
update_db () | |
reload_from_db () | |
get_access_object () | |
get_lang () | |
set_lang ( $in_lang_id=NULL) | |
Static Public Attributes | |
static | $s_table_name = 'co_data_nodes' |
Protected Member Functions | |
_default_setup () | |
_build_parameter_array () | |
Protected Member Functions inherited from A_CO_DB_Table_Base | |
_badger_serialize ( $in_data) | |
_badger_unserialize ( $in_data) | |
_write_to_db () | |
_seppuku () | |
Protected Attributes | |
$_owner_id | |
$_tags | |
Protected Attributes inherited from A_CO_DB_Table_Base | |
$_db_object | |
This is the actual database object that "owns" this instance. It should not be exposed beyond this class or subclasses, thereof. More... | |
$_id | |
This is the within-table unique ID of this record. More... | |
$_batch_mode | |
If this is true, then the write_record call will not be made in update_db. It will be done when clear_batch_mode() is called, instead. More... | |
Private Attributes | |
$_raw_payload | |
Additional Inherited Members | |
Public Attributes inherited from A_CO_DB_Table_Base | |
$class_description | |
This is a description of the class (not the instance). More... | |
$instance_description | |
This is a description that describes the instance. More... | |
$last_access | |
This is a UNIX epoch date that describes the last modification. The default is UNIX Day Two (in case of UTC timezone issues). More... | |
$name | |
This is the "object_name" string field. More... | |
$read_security_id | |
This is a single integer, defining the security ID required to view the record. If it is 0, then it is "open.". More... | |
$write_security_id | |
This is a single integer, defining the required security token to modify the record. If it is 0, then any logged-in user can modify. More... | |
$context | |
This is a mixed associative array, containing fields for the object. More... | |
$error | |
If there is an error, it is contained here, in a LGV_Error instance. More... | |
This is the main instance base class for records in the main "data" database.
Definition at line 38 of file co_main_db_record.class.php.
CO_Main_DB_Record::__construct | ( | $in_db_object = NULL , |
|
$in_db_result = NULL , |
|||
$in_owner_id = NULL , |
|||
$in_tags_array = NULL |
|||
) |
The initializer.
$in_db_object | The database object for this instance. |
$in_db_result | The database row for this instance (associative array, with database keys). |
$in_owner_id | The ID of the object (in the database) that "owns" this instance. |
$in_tags_array | An array of strings, up to ten elements long, for the tags. |
Reimplemented in CO_User_Collection, CO_Collection, and CO_KeyValue_CO_Collection.
Definition at line 95 of file co_main_db_record.class.php.
|
protected |
This adds our data to the saved parameter associative array.
Reimplemented from A_CO_DB_Table_Base.
Reimplemented in CO_LL_Location.
Definition at line 72 of file co_main_db_record.class.php.
|
protected |
This prepares an associative array of database values for the object.
Reimplemented from A_CO_DB_Table_Base.
Reimplemented in CO_LL_Location.
Definition at line 53 of file co_main_db_record.class.php.
References $_owner_id.
CO_Main_DB_Record::get_payload | ( | ) |
Returns the payload.
Definition at line 232 of file co_main_db_record.class.php.
References $_raw_payload.
CO_Main_DB_Record::load_from_db | ( | $in_db_result | ) |
This sets up the instance, based on a supplied associative array of database values and keys.
$in_db_result | This is the associative array of database values. |
Reimplemented from A_CO_DB_Table_Base.
Reimplemented in CO_User_Collection, CO_US_Place_Collection, CO_Place_Collection, CO_KeyValue_CO_Collection, CO_Collection, and CO_LL_Location.
Definition at line 113 of file co_main_db_record.class.php.
CO_Main_DB_Record::owner_id | ( | ) |
Definition at line 258 of file co_main_db_record.class.php.
References $_owner_id.
CO_Main_DB_Record::set_owner_id | ( | $in_new_id | ) |
Simple setter for the owner ID.
$in_new_id | The new value |
Definition at line 171 of file co_main_db_record.class.php.
References A_CO_DB_Table_Base\update_db(), and A_CO_DB_Table_Base\user_can_write().
CO_Main_DB_Record::set_payload | ( | $in_payload | ) |
Sets the payload.
$in_payload | The raw payload to be stored. |
Definition at line 242 of file co_main_db_record.class.php.
References A_CO_DB_Table_Base\update_db(), and A_CO_DB_Table_Base\user_can_write().
CO_Main_DB_Record::set_tag | ( | $in_tag_index, | |
$in_tag_value | |||
) |
Setter for one tag, by index.
$in_tag_index | The index (0-based -0 through 9) of the tag to set. |
$in_tag_value | A string, with the tag value. |
Reimplemented in CO_User_Collection.
Definition at line 207 of file co_main_db_record.class.php.
References A_CO_DB_Table_Base\update_db(), and A_CO_DB_Table_Base\user_can_write().
CO_Main_DB_Record::set_tags | ( | $in_tags_array | ) |
Simple setter for the tags.
$in_tags_array | An array of strings, up to ten elements long, for the tags. |
Reimplemented in CO_User_Collection.
Definition at line 189 of file co_main_db_record.class.php.
References A_CO_DB_Table_Base\update_db(), and A_CO_DB_Table_Base\user_can_write().
Referenced by CO_Place\set_tags_from_address_elements().
CO_Main_DB_Record::tags | ( | ) |
Definition at line 266 of file co_main_db_record.class.php.
References $_tags.
Referenced by CO_Place\__construct(), CO_User_Collection\_load_login(), CO_User_Collection\has_login(), CO_User_Collection\has_login_i_cant_see(), and CO_User_Collection\is_god().
|
protected |
Definition at line 41 of file co_main_db_record.class.php.
Referenced by _default_setup(), and owner_id().
|
private |
Definition at line 44 of file co_main_db_record.class.php.
Referenced by get_payload().
|
protected |
Definition at line 42 of file co_main_db_record.class.php.
Referenced by tags().
|
static |
Definition at line 39 of file co_main_db_record.class.php.