\Pydio\Core\ModelContext

Class Context Main implementation of ContextInterface, propagating a user and a repository all along the application

Summary

Methods
Properties
Constants
__construct()
contextWithObjects()
emptyContext()
withUserId()
withRepositoryId()
hasUser()
getUser()
setUserId()
setUserObject()
resetUser()
getUrlBase()
hasRepository()
getRepository()
setRepositoryId()
getRepositoryId()
setRepositoryObject()
resetRepository()
getStringIdentifier()
isEmpty()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$userId
$userObject
$repositoryId
$repositoryObject
N/A

Properties

$userId

$userId : string

Type

string

$userObject

$userObject : 

Type

$repositoryId

$repositoryId : 

Type

$repositoryObject

$repositoryObject : 

Type

Methods

__construct()

__construct(string  $userId = null, string  $repositoryId = null) 

Context constructor.

Parameters

string $userId
string $repositoryId

contextWithObjects()

contextWithObjects(  $userObject,   $repositoryObject) : \Pydio\Core\Model\Context

Parameters

$userObject
$repositoryObject

Returns

\Pydio\Core\Model\Context

hasUser()

hasUser() : boolean

Returns

boolean

setUserId()

setUserId(string  $userId) 

Parameters

string $userId

resetUser()

resetUser() 

Set userId and userObject to null

getUrlBase()

getUrlBase() : string

Builds pydio://user@repository url

Returns

string

hasRepository()

hasRepository() : boolean

Returns

boolean

setRepositoryId()

setRepositoryId(string  $repositoryId) 

Parameters

string $repositoryId

getRepositoryId()

getRepositoryId() : string|null

Returns

string|null

resetRepository()

resetRepository() : mixed

Set repositoryId and repositoryObject to null

Returns

mixed

getStringIdentifier()

getStringIdentifier() : string

Build a unique string identifier for this context

Returns

string

isEmpty()

isEmpty() : boolean

Returns

boolean