__get()
canEditSignature()
canFollow()
canSearch()
canStartConversations()
canUpdateStatus()
canUploadAvatar()
get()
getAllNodePermissions()
getInstance()
getLanguage()
getNodePermissions()
getPermissionCombinationId()
getPermissions()
getUserId()
hasAdminPermission()
hasInstance()
hasNodePermission()
hasNodePermissionsCached()
hasPermission()
isBrowsingWith()
isFollowing()
isIgnoring()
isMemberOf()
isSuperAdmin()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
setNodePermissions()
setVisitorLanguage()
setup()
showCaptcha()
toArray()
__construct()
$_adminPermissions
$_browsers
$_instance
$_isSuperAdmin
$_language
$_nodePermissions
$_user
Visitor Class
package | XenForo_Core |
---|
__get($name)
canEditSignature() : boolean
boolean
canFollow()
canSearch() : boolean
Does not cover find new or user content searches.
boolean
canStartConversations()
canUpdateStatus() : boolean
boolean
canUploadAvatar() : boolean
boolean
get(string $name) : mixed
Good if you want a single value in one line.
string
mixed
False if the value can't be foundgetAllNodePermissions() : array
Not all nodes may be present.
array
Format: [node id] => permissionsgetLanguage() : array
array
getNodePermissions(integer $nodeId) : array
Permissions will be fetched if necessary.
integer
array
getPermissionCombinationId() : integer
integer
permission combination IDgetPermissions() : array
array
Format: [group][permission] => valuegetUserId() : integer
integer
User IDhasAdminPermission(string $permissionId) : boolean
string
boolean
hasInstance() : boolean
boolean
hasNodePermission(integer $nodeId, string $permission) : boolean
integer
string
boolean
hasNodePermissionsCached(integer $nodeId) : boolean
integer
boolean
hasPermission(string $group, string $permission) : boolean | int
string
Permission group
string
boolean
int
isBrowsingWith(string $browser) : boolean
string
boolean
isFollowing(integer $userId) : boolean
integer
boolean
isIgnoring(integer $userId) : boolean
integer
boolean
isMemberOf(integer $userGroupId, boolean $includeSecondaryGroups) : boolean
integer
boolean
boolean
isSuperAdmin() : boolean
boolean
offsetExists(string $offset)
string
offsetGet(string $offset)
string
offsetSet(string $offset, mixed $value)
string
mixed
offsetUnset(string $offset)
string
setNodePermissions(integer $nodeId, array | string $permissions)
Useful caching.
integer
array
string
Permissions (may be serialized)
setVisitorLanguage($languageId)
showCaptcha() : boolean
boolean
toArray() : array
array
$_adminPermissions : array | null
Note that this may not be populated until necessary.
$_browsers : array
$_isSuperAdmin : boolean | null
$_language : array
$_nodePermissions : array
$_user : array