Properties

$hash

$hash : string

Type

string

$internal

$internal : array

Type

array

$newHash

$newHash : string

Type

string

$additionalMeta

$additionalMeta : array

Type

array

$parentRepositoryId

$parentRepositoryId : string

Type

string

Methods

getShortFormUrl()

getShortFormUrl() : string

Returns

string

setShortFormUrl()

setShortFormUrl(string  $shortFormUrl) 

Parameters

string $shortFormUrl

__construct()

__construct(  $store, array  $storeData = array()) 

ShareLink constructor.

Parameters

$store
array $storeData

save()

save() : string

Persist the share to DB using the ShareStore

Throws

\Exception

Returns

string

setHash()

setHash(string  $hash) 

Parameters

string $hash

attachToRepository()

attachToRepository(string  $repositoryId) 

Parameters

string $repositoryId

isAttachedToRepository()

isAttachedToRepository() : boolean

Returns

boolean

getRepositoryId()

getRepositoryId() : string

Returns

string

getAdditionalMeta()

getAdditionalMeta() : array

Returns

array

setAdditionalMeta()

setAdditionalMeta(array  $additionalMeta) 

Parameters

array $additionalMeta

parseHttpVars()

parseHttpVars(  $httpVars) 

Update some internal configs from httpVars

Parameters

$httpVars

Throws

\Exception

getJsonData()

getJsonData(\Pydio\Share\View\PublicAccessManager  $publicAccessManager, array  $messages) : mixed

Parameters

\Pydio\Share\View\PublicAccessManager $publicAccessManager
array $messages

Throws

\Exception

Returns

mixed

setOwnerId()

setOwnerId(string  $ownerId) 

Parameters

string $ownerId

getOwnerId()

getOwnerId() : string

Returns

string

createHiddenUserId()

createHiddenUserId(string  $prefix = "", boolean|false  $hasPassword = false) 

Generate a random user ID. Set in PRELOG_USER or PRESET_LOGIN depending on the hasPassword value.

Parameters

string $prefix
boolean|false $hasPassword

createHiddenUserPassword()

createHiddenUserPassword() : string

Generate a random password

Returns

string

getUniqueUser()

getUniqueUser() : string

Returns

string

setUniqueUser()

setUniqueUser(string  $userId, boolean|false  $requirePassword = false) 

Parameters

string $userId
boolean|false $requirePassword

shouldRequirePassword()

shouldRequirePassword() : boolean

Returns

boolean

disableDownload()

disableDownload() : boolean

Returns

boolean

getApplicationBase()

getApplicationBase() : string

Returns

string

getData()

getData() : array

Returns

array

getHash()

getHash() : string

Returns

string

getNewHash()

getNewHash() : string

Returns

string

isExpired()

isExpired() : boolean

Returns

boolean

hasDownloadLimit()

hasDownloadLimit() : boolean

Returns

boolean

getDownloadLimit()

getDownloadLimit() : integer|null

Returns

integer|null

isShareExpired()

isShareExpired(  $data) : boolean

Parameters

$data

Returns

boolean

getDownloadCount()

getDownloadCount() : integer|mixed

Number of times the link has been download

Returns

integer|mixed

incrementDownloadCount()

incrementDownloadCount() 

Increments internal counter

resetDownloadCount()

resetDownloadCount() 

Set internal counter to 0

getParentRepositoryId()

getParentRepositoryId() : string

Returns

string

setParentRepositoryId()

setParentRepositoryId(string  $parentRepositoryId) 

Parameters

string $parentRepositoryId