Public Member Functions | |
__construct ( $in_db_object=NULL, $in_db_result=NULL) | |
load_from_db ($in_db_result) | |
security_exemption () | |
user_can_read () | |
Public Member Functions inherited from A_CO_DB_Table_Base | |
set_batch_mode () | |
clear_batch_mode () | |
id () | |
lock () | |
locked () | |
danger_will_robinson_danger_clear_id () | |
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) | |
Protected Attributes | |
$_special_first_time_security_exemption | |
Protected Attributes inherited from CO_Security_Node | |
$_ids | |
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... | |
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... | |
Protected Member Functions inherited from CO_Security_Node | |
_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 () | |
This is the specialized class for the generic security ID.
Definition at line 38 of file co_security_id.class.php.
CO_Security_ID::__construct | ( | $in_db_object = NULL , |
|
$in_db_result = NULL |
|||
) |
Constructor.
$in_db_object | This is the database instance that "owns" this record. |
$in_db_result | This is a database-format associative array that is used to initialize this instance. |
Reimplemented from CO_Security_Node.
Definition at line 46 of file co_security_id.class.php.
References A_CO_DB_Table_Base\id().
CO_Security_ID::load_from_db | ( | $in_db_result | ) |
This function sets up this instance, according to the DB-formatted associative array passed in.
Reimplemented from A_CO_DB_Table_Base.
Definition at line 63 of file co_security_id.class.php.
References A_CO_DB_Table_Base\id().
CO_Security_ID::security_exemption | ( | ) |
This weird little function allows a creator to once -and only once- add an ID to itself, as long as that ID is for this object. This is a "Heisenberg" query. Once it's called, the security exemption is gone.
returns true, if the security exemption was on.
Definition at line 82 of file co_security_id.class.php.
References $_special_first_time_security_exemption.
CO_Security_ID::user_can_read | ( | ) |
This is an overload, because we also want to make sure that only cleared manager objects get to see this (or God, of course).
Reimplemented from A_CO_DB_Table_Base.
Definition at line 94 of file co_security_id.class.php.
References A_CO_DB_Table_Base\get_access_object().
|
protected |
Definition at line 39 of file co_security_id.class.php.
Referenced by security_exemption().