vB_DataManager_UserClass to do data save/delete operations for USERS
Available info fields: $this->info['coppauser'] - User is COPPA $this->info['override_usergroupid'] - Prevent overwriting of usergroupid (for email validation)
Located in /includes/class_dm_user.php (line 31)
vB_DataManager | --vB_DataManager_User
vB_DataManager_User
vB_DataManager_User
(vB_Registry &$registry, [integer $errtype = ERRTYPE_STANDARD])
void
set_admin
(integer $userid, boolean $usergroups_changed, boolean $isadmin, [boolean $wasadmin = false])
void
set_supermod
(integer $userid, boolean $usergroups_changed, boolean $issupermod, [boolean $wassupermod = false])
void
set_usertitle
(string $customtext, boolean $reset, array $usergroup, boolean $canusecustomtitle, boolean $isadmin)
boolean
$adminoverride
= false (line 173)
Whether or not to skip some checks from the admin cp
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('userid = %1$d', 'userid') (line 159)
Condition for update query
boolean
$insertedadmin
= false (line 166)
Whether or not we have inserted an administrator record
array
$list_types
= array('buddy', 'ignore') (line 180)
Types of lists stored in usertextfield, named <X>list.
string
$table
= 'user' (line 142)
The main table this class deals with
array
$user
= array() (line 149)
Arrays to store stuff to save to user-related tables
array
$userchangelog
= array() (line 187)
Arrays to store stuff to save to userchangelog table
array
$userfield
= array() (line 150)
Arrays to store stuff to save to user-related tables
array
$usertextfield
= array() (line 151)
Arrays to store stuff to save to user-related tables
array
$user_changelog_fields
= array('username', 'usergroupid', 'membergroupids', 'email') (line 201)
Which fieldchanges will be logged
boolean
$user_changelog_state
= true (line 194)
We want to log or not the user changes
array
$validfields
= array(Array of recognised and required fields for users, 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_User (line 209)
Constructor - checks that the registry object has been passed correctly.
censor_custom_title (line 1013)
Checks a string for words banned in custom user titles and replaces them with the censor character
check_password_history (line 900)
Checks to see if a password is in the user's password history
count_other_admins (line 2574)
Counts the number of administrators OTHER THAN the user specified
delete (line 1844)
Deletes a user
do_set (line 1449)
Takes valid data and sets it as part of the data to be saved
fetch_user_salt (line 880)
Generates a new user salt string
hash_password (line 858)
Takes a plain text or singly-md5'd password and returns the hashed version for storage in the database
is_admin (line 2513)
Checks usergroupid and membergroupids to see if the user has admin privileges
is_supermod (line 2544)
Checks usergroupid and membergroupids to see if the user has super moderator privileges
post_delete (line 1880)
Any code to run after deleting
post_save_each (line 1735)
Additional data to update after a save call (such as denormalized values in other tables).
pre_save (line 1604)
Any checks to run immediately before saving. If returning false, the save will not take place.
save (line 1498)
Saves the data from the object into the specified database tables
send_welcomepm (line 2740)
Sends a welcome pm to the user
set_admin (line 2613)
Inserts or deletes a record from the administrator table if necessary
set_dst (line 1250)
Sets DST options
set_registration_defaults (line 1278)
Sets registration defaults
set_supermod (line 2653)
Inserts or deletes a record from the moderators table if necessary
set_userfields (line 1050)
Validates and sets custom user profile fields
set_usertitle (line 936)
Sets the values for user[usertitle] and user[customtitle]
update_ban_status (line 2685)
Bla bla bla
update_birthday_datastore (line 2399)
Rebuilds the birthday datastore if the user's birthday has changed
update_language_cookie (line 2457)
Resets the languageid cookie to the user's profile choice
update_password_history (line 2419)
Inserts a record into the password history table if the user's password has changed
update_style_cookie (line 2436)
Resets the session styleid and styleid cookie to the user's profile choice
update_subscriptions (line 2288)
Updates user subscribed threads/forums to reflect new permissions
update_threadedmode_cookie (line 2473)
Resets the threadedmode cookie to the user's profile choice
update_username (line 2178)
Updates all denormalized tables that contain a 'username' field (or field that holds a username)
usergroups_changed (line 2489)
Checks to see if a user's usergroup memberships have changed
verify_autosubscribe (line 275)
Verifies that an autosubscribe choice is valid and workable
verify_birthday (line 519)
Verifies that the provided birthday is valid
verify_displaygroupid (line 720)
Verifies that the provided displaygroup ID is valid
verify_homepage (line 226)
Verifies that the user's homepage is valid
verify_maxposts (line 314)
Verifies the value of user.maxposts, setting the forum default number if the value is invalid
verify_msn (line 779)
Verifies an MSN handle
verify_parentemail (line 676)
Verifies that the provided parent email address is valid
verify_password (line 823)
Converts a PLAIN TEXT (or valid md5 hash) password into a hashed password
verify_referrerid (line 740)
Verifies a specified referrer
verify_reputation (line 331)
Verifies a valid reputation value, and sets the appropriate reputation level
verify_salt (line 845)
Verifies that the user salt is valid
verify_skype (line 800)
Verifies a Skype name
verify_threadedmode (line 238)
Verifies that $threadedmode is a valid value, and sets the appropriate options to support it.
verify_useremail (line 608)
Verifies that everything is hunky dory with the user's email field
verify_usergroupid (line 696)
Verifies that the usergroup provided is valid
verify_username (line 366)
Verifies that the provided username is valid, and attempts to correct it if it is not valid
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:07 -0500 by phpDocumentor 1.4.1