vB_DataManager_ModeratorClass to do data save/delete operations for MODERATORS
Example usage (inserts a new moderator):
$f = new vB_DataManager_Moderator(); $f->set_info('moderatorid', 12); $f->save();
Located in /includes/class_dm_moderator.php (line 31)
vB_DataManager | --vB_DataManager_Moderator
vB_DataManager_Moderator
vB_DataManager_Moderator
(vB_Registry &$registry, [integer $errtype = ERRTYPE_STANDARD])
array
$bitfields
= array(Array of field names that are bitfields, together with the name of the variable in the registry with the definitions.
array
$condition_construct
= array('moderatorid = %1$d', 'moderatorid') (line 69)
Condition template for update query This is for use with sprintf(). First key is the where clause, further keys are the field names of the data to be used.
array
$moderator
= array() (line 76)
Array to store stuff to save to moderator table
string
$table
= 'moderator' (line 61)
The main table this class deals with
array
$validfields
= array(Array of recognised and required fields for moderators, and their types
Inherited from vB_DataManager
vB_DataManager::$condition
vB_DataManager::$dbobject
vB_DataManager::$errors
vB_DataManager::$error_handler
vB_DataManager::$existing
vB_DataManager::$failure_callback
vB_DataManager::$info
vB_DataManager::$lamda
vB_DataManager::$presave_called
vB_DataManager::$rawfields
vB_DataManager::$registry
vB_DataManager::$setfields
Constructor vB_DataManager_Moderator (line 84)
Constructor - checks that the registry object has been passed correctly.
delete (line 319)
Deletes a moderator
post_save_each (line 235)
Additional data to update after a save call (such as denormalized values in other tables).
pre_save (line 206)
Any checks to run immediately before saving. If returning false, the save will not take place.
set (line 171)
Overriding version of the set() function to deal with the selecting userid from username
update_user_failed_insert (line 365)
Callback function that is hit when inserting a new moderator, and his/her usergroup or member groups fail to be changed.
verify_forumid (line 119)
Verifies that the specified forum exists
verify_permissions (line 144)
Converts an array of 1/0 options into the permissions bitfield
verify_permissions2 (line 157)
Converts an array of 1/0 options into the permissions bitfield
verify_userid (line 98)
Verifies that the specified user exists
Inherited From vB_DataManager
vB_DataManager::vB_DataManager()
vB_DataManager::check_required()
vB_DataManager::db_delete()
vB_DataManager::db_insert()
vB_DataManager::db_insert_ignore()
vB_DataManager::db_update()
vB_DataManager::delete()
vB_DataManager::do_set()
vB_DataManager::do_unset()
vB_DataManager::error()
vB_DataManager::fetch_field()
vB_DataManager::fetch_insert_sql()
vB_DataManager::fetch_update_sql()
vB_DataManager::has_errors()
vB_DataManager::post_delete()
vB_DataManager::post_save_each()
vB_DataManager::post_save_once()
vB_DataManager::pre_delete()
vB_DataManager::pre_save()
vB_DataManager::save()
vB_DataManager::set()
vB_DataManager::setr()
vB_DataManager::setr_info()
vB_DataManager::set_bitfield()
vB_DataManager::set_condition()
vB_DataManager::set_error_handler()
vB_DataManager::set_existing()
vB_DataManager::set_failure_callback()
vB_DataManager::set_info()
vB_DataManager::strip_empty_bbcode()
vB_DataManager::strip_empty_bbcode_callback()
vB_DataManager::verify()
vB_DataManager::verify_commalist()
vB_DataManager::verify_date_array()
vB_DataManager::verify_email()
vB_DataManager::verify_image_count()
vB_DataManager::verify_ipaddress()
vB_DataManager::verify_link()
vB_DataManager::verify_list()
vB_DataManager::verify_md5()
vB_DataManager::verify_nonempty()
vB_DataManager::verify_nonzero()
vB_DataManager::verify_pagetext()
vB_DataManager::verify_serialized()
vB_DataManager::verify_spacelist()
vB_DataManager::verify_userid()
vB_DataManager::verify_username()
Documentation generated on Fri, 09 May 2008 09:01:02 -0500 by phpDocumentor 1.4.1