Class: BitUser
Source Location: /users/RoleUser.php
Child classes:
|
Inherited Constants
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
static method getDisplayNameFromHash [line 2373]
static display getDisplayNameFromHash(
[pUseLink
$pUseLink = FALSE], pHash
$pHash)
|
|
Get user information for a particular user
Tags:
Parameters:
static method getDisplayUrlFromHash [line 2320]
static URL getDisplayUrlFromHash(
&$pParamHash, array
$pUserName, array
$pMixed)
|
|
getDisplayUrl
Tags:
Overrides LibertyContent::getDisplayUrlFromHash() (Not-so-pure virtual function that returns Request_URI to a piece of content)
Parameters:
static method getSiteCookieName [line 1200]
static void getSiteCookieName(
)
|
|
Tags:
static method getSortModeFields [line 102]
static array getSortModeFields(
)
|
|
Validate inbound sort_mode parameter
Tags:
static method getUserObject [line 2757]
static void getUserObject(
$pUserId)
|
|
Tags:
Parameters:
static method getUserPreference [line 1598]
static TRUE getUserPreference(
array
$pPrefName, array
$pPrefDefault, array
$pUserId)
|
|
getUserPreference
Tags:
Parameters:
static method isCacheableClass [line 86]
static method userCollection [line 2741]
static $pReturn userCollection(
array
$pInput,
&$pReturn, array
$pReturn)
|
|
userCollection
Tags:
Parameters:
static method verifyAnonEmail [line 530]
static TRUE verifyAnonEmail(
array
$pEmail,
&$pErrors)
|
|
verifyAnonEmail
Tags:
Parameters:
constructor BitUser [line 59]
returnString BitUser(
[
$pUserId = NULL], [
$pContentId = NULL])
|
|
Constructor - will automatically load all relevant data if passed a user string
Tags:
Parameters:
method answerCaptcha [line 387]
void answerCaptcha(
$pParamHash)
|
|
answerCaptcha Determine if the submitted answer for the captcha is valid
Parameters:
method ban [line 1236]
ban sets the user account status to -201 suspended
Tags:
method canCustomizeLayout [line 1887]
TRUE canCustomizeLayout(
)
|
|
canCustomizeLayout check if a user can customise their layout
Tags:
method canCustomizeTheme [line 1876]
TRUE canCustomizeTheme(
)
|
|
canCustomizeTheme check if a user can customise their theme
Tags:
method changeUserEmail [line 1544]
TRUE changeUserEmail(
array
$pUserId, array
$pEmail)
|
|
changeUserEmail
Tags:
Parameters:
method confirmRegistration [line 1528]
registered confirmRegistration(
array
$pUserId, array
$pProvpass)
|
|
confirmRegistration
Tags:
Parameters:
method countSessions [line 1144]
count countSessions(
[array
$pActive = FALSE])
|
|
countSessions
Tags:
Parameters:
method createTempPassword [line 1707]
TRUE createTempPassword(
array
$pLogin, array
$pPass)
|
|
createTempPassword
Tags:
Parameters:
method defaults [line 226]
defaults set a default set of preferences in mPrefs for new users
Tags:
method exportHash [line 2711]
method expunge [line 1039]
TRUE expunge(
[
$pExpungeContent = NULL])
|
|
expunge removes user and associated private data
Tags:
Overridden in child classes as:
- BitPermUser::expunge()
- removes user and associated private data
- RolePermUser::expunge()
- removes user and associated private data
Overrides LibertyContent::expunge() (Delete content object and all related records)
Parameters:
method expungeFavorite [line 2266]
void expungeFavorite(
$pContentId)
|
|
Parameters:
method expungeWatch [line 2210]
TRUE expungeWatch(
array
$pEvent, array
$pObject)
|
|
expungeWatch
Tags:
Parameters:
method generateChallenge [line 1290]
method genPass [line 1266]
password genPass(
[array
$pLength = NULL])
|
|
genPass generate random password
Tags:
Parameters:
method getCacheKey [line 77]
method getDisplayLink [line 2348]
get getDisplayLink(
[
$pLinkText = NULL], [
$pMixed = NULL], [
$pAnchor = NULL], array
$pUserName, array
$pDisplayHash)
|
|
getDisplayLink
Tags:
Overrides LibertyContent::getDisplayLink() (Pure virtual function that returns link to display a piece of content)
Parameters:
method getDisplayName [line 2427]
display getDisplayName(
[pUseLink
$pUseLink = FALSE], [pHash
$pHash = NULL])
|
|
Get user information for a particular user
Tags:
Parameters:
method getDomain [line 1861]
TRUE getDomain(
array
$pContentId)
|
|
getDomain
Tags:
Parameters:
method getEventWatches [line 2153]
TRUE getEventWatches(
array
$pEvent,
$pObject, array
$object)
|
|
getEventWatches
Tags:
Parameters:
method getFavorites [line 2290]
method getList [line 2472]
array getList(
&$pParamHash, array
$pParamHash)
|
|
getList get a list of users
Tags:
Parameters:
method getRenderFile [line 2441]
getRenderFile Returns include file that will
Tags:
Overrides LibertyContent::getRenderFile() (Pure virtual function that returns the include file that should render a page of content of this type)
method getRoles [line 2614]
TRUE getRoles(
[array
$pUserId = NULL], [array
$pForceRefresh = FALSE])
|
|
getRoles
Tags:
Parameters:
method getSelectionList [line 2451]
getSelectionList get a list of users that can be used in dropdown lists in forms to choose from
Tags:
method getSmtpResponse [line 479]
TRUE getSmtpResponse(
&$pConnect, array
$pConnect)
|
|
getSmtpResponse
Tags:
Parameters:
method getThumbnailUrl [line 1903]
TRUE getThumbnailUrl(
[string
$pSize = 'small'], [array
$pInfoHash = NULL], [
$pSecondaryId = NULL], [
$pDefault = TRUE])
|
|
getThumbnailUrl
Tags:
Overrides LibertyMime::getThumbnailUrl() (getThumbnailUrl will fetch the primary thumbnail for a given content. If nothing has been set, it will fetch the last thumbnail it can find.)
Parameters:
method getTitle [line 2359]
get getTitle(
[array
$pHash = NULL], [
$pDefault = TRUE])
|
|
getTitle
Tags:
Overrides LibertyContent::getTitle() (Create the generic title for a content item)
Parameters:
method getUserActivity [line 1772]
array getUserActivity(
&$pListHash, array
$pListHash)
|
|
getUserActivity
Tags:
Parameters:
method getUserAttachments [line 2241]
list getUserAttachments(
&$pListHash, array
$pListHash)
|
|
getUserAttachments
Tags:
Parameters:
method getUserDomain [line 1838]
TRUE getUserDomain(
array
$pLogin)
|
|
getUserDomain
Tags:
Parameters:
method getUserId [line 2308]
method getUserIdFromCookieHash [line 1667]
user getUserIdFromCookieHash(
array
$pHash)
|
|
getByHash get user from cookie hash
Tags:
Parameters:
method getUserInfo [line 1621]
user getUserInfo(
array
$pUserMixed)
|
|
getUserInfo will fetch the user info of a given user
Tags:
Parameters:
method getWatches [line 2124]
TRUE getWatches(
[string
$pEvent = ''])
|
|
getWatches
Tags:
Parameters:
method get_event_watches [line 2173]
TRUE get_event_watches(
array
$pEvent, array
$pObject)
|
|
get_event_watches
Tags:
Parameters:
method get_watches_events [line 2223]
TRUE get_watches_events(
)
|
|
get_watches_events
Tags:
method hasFavorite [line 2275]
void hasFavorite(
$pContentId)
|
|
Parameters:
method importUser [line 832]
TRUE importUser(
$pParamHash
&$pParamHash)
|
|
Imports a user record from csv file This is a admin specific function
Tags:
Parameters:
method isAdmin [line 2654]
isAdmin "PURE VIRTUAL BASE FUNCTION";
Tags:
method isCacheableObject [line 94]
boolean isCacheableObject(
)
|
|
Determines if a user object is cacheable. Out of paranoia, admin's are never cached.
Tags:
Overrides LibertyContent::isCacheableObject() (parent method not documented)
method isPasswordDue [line 1679]
TRUE isPasswordDue(
[
$pUserId = NULL])
|
|
isPasswordDue work out if a user has to change their password
Tags:
Parameters:
method isRegistered [line 2664]
method isUserPrivate [line 1649]
boolean isUserPrivate(
[array
$pUserId = NULL])
|
|
isUserPublic Determine if an arbitrary user can be viewed by non-permissioned users.
Tags:
Parameters:
method isValid [line 2644]
isValid
Tags:
Overrides LibertyContent::isValid() (Check mContentId to establish if the object has been loaded with a valid record)
method load [line 117]
returnString load(
[boolean
$pFull = FALSE], [string
$pUserName = NULL])
|
|
load - loads all settings & preferences for this user
Tags:
Overridden in child classes as:
- BitPermUser::load()
- load
- RolePermUser::load()
- load
Overrides LibertyMime::load() (load the attachments for a given content id and then stuff them in mStorage)
Parameters:
method login [line 1304]
URL login(
array
$pLogin, array
$pPassword, [array
$pChallenge = NULL], [array
$pResponse = NULL])
|
|
login
Tags:
Parameters:
method logout [line 1158]
method lookupHomepage [line 1568]
user_id lookupHomepage(
array
$iHomepage)
|
|
lookupHomepage
Tags:
Parameters:
method preRegisterVerify [line 433]
void preRegisterVerify(
&$pParamHash)
|
|
preRegisterVerify A collection of values to verify before a user can register Separated from BitUser::verify so that import verification can be processed with less rigor than user submitted requests
Parameters:
method purgeAvatar [line 2076]
method purgeImage [line 2044]
TRUE purgeImage(
array
$pType)
|
|
purgeImage
Tags:
Parameters:
method purgeLogo [line 2087]
method purgePortrait [line 2065]
method register [line 672]
TRUE register(
&$pParamHash, [
$pNotifyRegistrant = TRUE])
|
|
register - will handle everything necessary for registering a user and sending appropriate emails, etc.
Tags:
Parameters:
method remove_user_watch_by_hash [line 2197]
TRUE remove_user_watch_by_hash(
array
$pHash)
|
|
remove_user_watch_by_hash
Tags:
Parameters:
method sendSessionCookie [line 1170]
void sendSessionCookie(
[
$pCookie = TRUE])
|
|
Parameters:
method store [line 787]
method storeAvatar [line 1987]
TRUE storeAvatar(
&$pStorageHash, array
$pStorageHash)
|
|
storeAvatar
Tags:
Parameters:
method storeFavorite [line 2255]
TRUE storeFavorite(
array
$pContentId)
|
|
storeFavorite
Tags:
Parameters:
method storeImages [line 1924]
TRUE storeImages(
array
$pParamHash, boolean
$pParamHash['user_auto_avatar'])
|
|
storeImages will store any user images - please note that uploaded files have to be in predefined keys in $_FILES $_FILES['user_portrait_file'] $_FILES['user_auto_avatar'] $_FILES['user_logo_file']
Tags:
Parameters:
method storeLogo [line 1998]
TRUE storeLogo(
&$pStorageHash, array
$pStorageHash)
|
|
storeLogo
Tags:
Parameters:
method storePassword [line 1737]
TRUE storePassword(
array
$pPass, [array
$pLogin = NULL])
|
|
storePassword
Tags:
Parameters:
method storePortrait [line 1961]
TRUE storePortrait(
&$pStorageHash, [array
$pGenerateAvatar = FALSE], array
$pStorageHash)
|
|
storePortrait
Tags:
Parameters:
method storeUserImage [line 2010]
TRUE storeUserImage(
&$pStorageHash, [string
$pType = 'portrait'], array
$pStorageHash)
|
|
storeUserImage
Tags:
Parameters:
method storeWatch [line 2105]
TRUE storeWatch(
array
$pEvent, array
$pObject, array
$pType, array
$pTitle, array
$pUrl)
|
|
storeWatch
Tags:
Parameters:
method unban [line 1252]
method updateLastLogin [line 1509]
TRUE updateLastLogin(
array
$pUserId)
|
|
updateLastLogin
Tags:
Parameters:
method updateSession [line 1092]
TRUE updateSession(
array
$pSessionId)
|
|
updateSession
Tags:
Parameters:
method userExists [line 2689]
TRUE userExists(
array
$pUserMixed)
|
|
userExists
Tags:
Parameters:
method validate [line 1399]
TRUE validate(
array
$pUser, array
$pPass, array
$pChallenge, array
$pResponse)
|
|
validate
Tags:
Parameters:
method verify [line 259]
TRUE verify(
&$pParamHash, array
$pParamHash)
|
|
verify store hash
Tags:
Overrides LibertyMime::verify() (Verify content that is about to be stored)
Parameters:
method verifyCaptcha [line 766]
TRUE verifyCaptcha(
[array
$pCaptcha = NULL])
|
|
verifyCaptcha
Tags:
Parameters:
method verifyEmail [line 497]
TRUE verifyEmail(
array
$pEmail,
&$pErrors)
|
|
verifyEmail
Tags:
Parameters:
method verifyMX [line 555]
TRUE verifyMX(
array
$pEmail,
&$pErrors, array
$pValidate)
|
|
verifyMX
Tags:
Parameters:
method verifyPasswordFormat [line 455]
FALSE verifyPasswordFormat(
array
$pPassword, [array
$pPassword2 = NULL])
|
|
verifyPasswordFormat
Tags:
Parameters:
method verifyRegistered [line 2674]
TRUE verifyRegistered(
[
$pMsg = ""])
|
|
verifyRegistered
Tags:
Parameters:
method verifyTicket [line 1215]
TRUE verifyTicket(
[array
$pFatalOnError = TRUE], [array
$pForceCheck = TRUE])
|
|
verifyTicket
Tags:
Parameters:
method verifyUserImport [line 891]
TRUE verifyUserImport(
$pParamHash
&$pParamHash)
|
|
Verify and validate the data when importing a user record from csv file This is a admin specific function
Tags:
Parameters:
|
|