Documentation

ShareCreated extends Share
in package

Parent class representing different types of share objects

Table of Contents

Methods

delete()  : bool
Permanently delete the current share or share link
getDriveId()  : string
getExpiration()  : DateTimeImmutable|null
getPermissionId()  : string
getReceiver()  : User|Group
getResourceId()  : string
setExpiration()  : bool
Change the Expiration date for the current share or share link Set to null to remove the expiration date
setRole()  : bool
Change the Role of the particular Share.

Methods

getDriveId()

public getDriveId() : string
Return values
string

getExpiration()

public getExpiration() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getPermissionId()

public getPermissionId() : string
Return values
string

getResourceId()

public getResourceId() : string
Return values
string

setRole()

Change the Role of the particular Share.

public setRole(SharingRole $role) : bool

Possible roles are defined by the resource and have to be queried using OcisResource::getRoles() Roles for shares are not to be confused with the types of share links!

Parameters
$role : SharingRole
Tags
see
OcisResource::getRoles()
throws
UnauthorizedException
throws
ForbiddenException
throws
InvalidResponseException
throws
BadRequestException
throws
HttpException
throws
NotFoundException
throws
InternalServerErrorException
Return values
bool

        
On this page

Search results