Properties

$id

$id : string

Type

string

$hasAdmin

$hasAdmin : 

Type

$rights

$rights : 

Type

$prefs

$prefs : 

Type

$bookmarks

$bookmarks : 

Type

$version

$version : 

Type

$parentUser

$parentUser : string

Type

string

$groupPath

$groupPath : 

Type

$hidden

$hidden : boolean

Type

boolean

$lastSessionSerialization

$lastSessionSerialization : 

Type

Methods

setHidden()

setHidden(boolean  $hidden) 

Set user as "hidden" ( = shared )

Parameters

boolean $hidden

isHidden()

isHidden() : boolean

Check if user is hidden

Returns

boolean

__construct()

__construct(  $id, null  $storage = null) 

AbstractUser constructor.

Parameters

$id
null $storage

getId()

getId() : string

Returns

string

setId()

setId(string  $id) 

Parameters

string $id

storageExists()

storageExists() : boolean

Returns

boolean

removeRole()

removeRole(string  $roleId) 

Parameters

string $roleId

Throws

\Exception

updateRolesOrder()

updateRolesOrder(array  $orderedRolesIds) 

Parameters

array $orderedRolesIds

array of roles ids

getProfile()

getProfile() : string

Returns

string

setProfile()

setProfile(string  $profile) 

Parameters

string $profile

setLock()

setLock(string  $lockAction) 

Parameters

string $lockAction

Throws

\Exception

removeLock()

removeLock(  $lockAction) 

Parameters

$lockAction

Throws

\Exception

getLock()

getLock() : boolean|mixed

Returns

boolean|mixed

hasLockByName()

hasLockByName(  $lockAction) : string|false

Parameters

$lockAction

Returns

string|false

isAdmin()

isAdmin() : boolean

Returns

boolean

setAdmin()

setAdmin(boolean  $boolean) 

Parameters

boolean $boolean

hasParent()

hasParent() : boolean

Returns

boolean

setParent()

setParent(string  $user) 

Parameters

string $user

A user ID

getParent()

getParent() : string

Returns

string

canRead()

canRead(string  $repositoryId) : boolean

Parameters

string $repositoryId

Returns

boolean

canWrite()

canWrite(string  $repositoryId) : boolean

Parameters

string $repositoryId

Returns

boolean

canAccessRepository()

canAccessRepository(\Pydio\Core\Model\RepositoryInterface|string  $idOrObject) : boolean

Parameters

\Pydio\Core\Model\RepositoryInterface|string $idOrObject

Returns

boolean

canSwitchTo()

canSwitchTo(integer  $repositoryId) : boolean

Test if user can switch to this repository

Parameters

integer $repositoryId

Returns

boolean

getPref()

getPref(  $prefName) : mixed|string

Parameters

$prefName

Returns

mixed|string

setPref()

setPref(  $prefName,   $prefValue) 

Parameters

$prefName
$prefValue

setArrayPref()

setArrayPref(string  $prefName, string  $prefPath, mixed  $prefValue) 

Parameters

string $prefName
string $prefPath
mixed $prefValue

getArrayPref()

getArrayPref(  $prefName,   $prefPath) : mixed|string

Parameters

$prefName
$prefPath

Returns

mixed|string

addBookmark()

addBookmark(  $repositoryId, string  $path, string  $title) : 

Parameters

$repositoryId
string $path
string $title

Returns

removeBookmark()

removeBookmark(string  $repositoryId, string  $path) 

Parameters

string $repositoryId
string $path

renameBookmark()

renameBookmark(string  $repositoryId, string  $path, string  $title) 

Parameters

string $repositoryId
string $path
string $title

getBookmarks()

getBookmarks(  $repositoryId) : array

Parameters

$repositoryId

Returns

array

load()

load() : mixed

Returns

mixed

save()

save(string  $context = "superuser") 

Parameters

string $context

getTemporaryData()

getTemporaryData(string  $key) : mixed

Parameters

string $key

Returns

mixed

saveTemporaryData()

saveTemporaryData(string  $key, mixed  $value) : mixed

Parameters

string $key
mixed $value

Returns

mixed

setGroupPath()

setGroupPath(String  $groupPath, boolean  $update = false) 

Parameters

String $groupPath
boolean $update

getGroupPath()

getGroupPath() : null|string

Returns

null|string

getRealGroupPath()

getRealGroupPath(  $baseGroup) : string

Automatically set the group to the current user base

Parameters

$baseGroup

Returns

string

canAdministrate()

canAdministrate(\Pydio\Conf\Core\IGroupPathProvider  $provider) : boolean

Check if the current user can administrate the GroupPathProvider object

Parameters

\Pydio\Conf\Core\IGroupPathProvider $provider

Returns

boolean

canSee()

canSee(\Pydio\Conf\Core\IGroupPathProvider  $provider) : boolean

Check if the current user can assign administration for the GroupPathProvider object

Parameters

\Pydio\Conf\Core\IGroupPathProvider $provider

Returns

boolean

recomputeMergedRole()

recomputeMergedRole() 

Rebuild the current merged role

getRolesKeys()

getRolesKeys() : array

Returns

array

__sleep()

__sleep() : array

Returns

array

__wakeup()

__wakeup() 

reloadRolesIfRequired()

reloadRolesIfRequired() : boolean

Throws

\Exception

Returns

boolean

_save()

_save(string  $context = "superuser") : mixed

Parameters

string $context

Returns

mixed

migrateRightsToPersonalRole()

migrateRightsToPersonalRole() : integer

Returns

integer

orderRoles()

orderRoles(  $r1,   $r2) : integer

Parameters

$r1
$r2

Returns

integer

filterRolesForSaving()

filterRolesForSaving(array  $roles, boolean  $checkBoolean) : array

Parameters

array $roles
boolean $checkBoolean

Returns

array