Properties

$cache

$cache : 

Type

Methods

repositoryIsAccessible()

repositoryIsAccessible(\Pydio\Core\Model\RepositoryInterface  $repositoryObject, \Pydio\Core\Model\UserInterface  $userObject, boolean  $details = false, boolean  $includeShared = true) : boolean

Parameters

\Pydio\Core\Model\RepositoryInterface $repositoryObject
\Pydio\Core\Model\UserInterface $userObject
boolean $details
boolean $includeShared

Returns

boolean

listAllRepositories()

listAllRepositories(boolean  $includeShared = false) : array<mixed,\Pydio\Core\Model\RepositoryInterface>

Parameters

boolean $includeShared

Returns

array<mixed,\Pydio\Core\Model\RepositoryInterface>

listRepositoriesWithCriteria()

listRepositoriesWithCriteria(array  $criteria,   $count) : array<mixed,\Pydio\Access\Core\Model\Repository>

Parameters

array $criteria
$count

Returns

array<mixed,\Pydio\Access\Core\Model\Repository>

createRepositoryFromArray()

createRepositoryFromArray(integer  $index, array  $repository) : \Pydio\Access\Core\Model\Repository

Create a repository object from a config options array

Parameters

integer $index
array $repository

Returns

\Pydio\Access\Core\Model\Repository

addRepository()

addRepository(\Pydio\Core\Model\RepositoryInterface  $oRepository) : \Pydio\Core\Services\-1|null

Add dynamically created repository

Parameters

\Pydio\Core\Model\RepositoryInterface $oRepository

Returns

\Pydio\Core\Services\-1|null —

if error

findRepositoryByIdOrAlias()

findRepositoryByIdOrAlias(  $idOrAlias) : null|\Pydio\Access\Core\Model\Repository

Parameters

$idOrAlias

Returns

null|\Pydio\Access\Core\Model\Repository

reservedSlugsFromConfig()

reservedSlugsFromConfig() : array

Get the reserved slugs used for config defined repositories

Returns

array

getRepositoryById()

getRepositoryById(String  $repoId) : \Pydio\Core\Model\RepositoryInterface

Retrieve a repository object

Parameters

String $repoId

Returns

\Pydio\Core\Model\RepositoryInterface

getRepositoryByAlias()

getRepositoryByAlias(String  $repoAlias) : \Pydio\Core\Model\RepositoryInterface

Retrieve a repository object by its slug

Parameters

String $repoAlias

Returns

\Pydio\Core\Model\RepositoryInterface

replaceRepository()

replaceRepository(String  $oldId, \Pydio\Core\Model\RepositoryInterface  $oRepositoryObject) : mixed

Replace a repository by an update one.

Parameters

String $oldId
\Pydio\Core\Model\RepositoryInterface $oRepositoryObject

Returns

mixed

deleteRepository()

deleteRepository(  $repoId) : integer

Remove a repository using the conf driver implementation

Parameters

$repoId

Returns

integer

__clone()

__clone() 

__construct()

__construct() 

RepositoryService constructor.

getRepositoryByIdInst()

getRepositoryByIdInst(  $repoId) : \Pydio\Access\Core\Model\Repository|null

See static method

Parameters

$repoId

Returns

\Pydio\Access\Core\Model\Repository|null

createRepositoryFromArrayInst()

createRepositoryFromArrayInst(string  $index, array  $repository) : \Pydio\Access\Core\Model\Repository

See static method

Parameters

string $index
array $repository

Returns

\Pydio\Access\Core\Model\Repository

getRepositoryByAliasInstDefaults()

getRepositoryByAliasInstDefaults(  $repoAlias) : \Pydio\Core\Model\RepositoryInterface|null

See static method

Parameters

$repoAlias

Returns

\Pydio\Core\Model\RepositoryInterface|null

replaceRepositoryInst()

replaceRepositoryInst(string  $oldId, \Pydio\Core\Model\RepositoryInterface  $oRepositoryObject) : integer

See static method

Parameters

string $oldId
\Pydio\Core\Model\RepositoryInterface $oRepositoryObject

Returns

integer

deleteRepositoryInst()

deleteRepositoryInst(  $repoId) : integer

See static method

Parameters

$repoId

Returns

integer