Nextcloud PHP API (master)

APasswordSharePropertyType
in package
implements ISharePropertyType, ISharePropertyTypeModifyValue

AbstractYes
Tags
psalm-import-type

SharingProperty from Share

SharingPropertyPassword from Share

since
35.0.0
Attributes
#[Implementable]
$since: '35.0.0'

Table of Contents

Interfaces

ISharePropertyType
ISharePropertyTypeModifyValue

Constants

PLACEHOLDER  : string = 'PROVOKJNLDSV'

Properties

$eventDispatcher  : IEventDispatcher|null
$hasher  : IHasher|null

Methods

format()  : SharingPropertyPassword
modifyValueOnLoad()  : string|null
Modify the value whenever a share is fetched from the database.
modifyValueOnSave()  : string|null
Modify the value whenever a share is created or updated in the database.
validateValue()  : true|string
Validates the value when the share is created or updated in the database.
getEventDispatcher()  : IEventDispatcher
getHasher()  : IHasher

Constants

Properties

Methods

format()

public format(SharingProperty $property) : SharingPropertyPassword
Parameters
$property : SharingProperty
Tags
since
35.0.0
Attributes
#[Override]
Return values
SharingPropertyPassword

modifyValueOnLoad()

Modify the value whenever a share is fetched from the database.

public modifyValueOnLoad(string|null $value) : string|null
Parameters
$value : string|null
Tags
since
35.0.0
Attributes
#[Override]
Return values
string|null

modifyValueOnSave()

Modify the value whenever a share is created or updated in the database.

public modifyValueOnSave(string|null $oldValue, string|null $newValue) : string|null
Parameters
$oldValue : string|null
$newValue : string|null
Tags
since
35.0.0
Attributes
#[Override]
Return values
string|null

validateValue()

Validates the value when the share is created or updated in the database.

public validateValue(IFactory $l10nFactory, string $value) : true|string
Parameters
$l10nFactory : IFactory
$value : string
Tags
since
35.0.0
Attributes
#[Override]
Return values
true|string
On this page

Search results