Documentation

ShareLink extends Share
in package

Class representing a public link to a resource

Table of Contents

Methods

delete()  : bool
Permanently delete the current share or share link
getDisplayName()  : string
getDriveId()  : string
getExpiration()  : DateTimeImmutable|null
getPermissionId()  : string
getResourceId()  : string
getSharingLink()  : SharingLink
getType()  : SharingLinkType
getWebUrl()  : string
setDisplayName()  : bool
setExpiration()  : bool
Change the Expiration date for the current share or share link Set to null to remove the expiration date
setPassword()  : bool
setType()  : bool
Change the type of the current ShareLink.
updateLinkOfPermission()  : true

Methods

getDisplayName()

public getDisplayName() : string
Return values
string

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
public getSharingLink() : SharingLink
Return values
SharingLink

getWebUrl()

public getWebUrl() : string
Return values
string

setType()

Change the type of the current ShareLink.

public setType(SharingLinkType $linkType) : bool

For details about the possible types see https://owncloud.dev/libre-graph-api/#/drives.permissions/CreateLink Types of share links are not to be confused with roles for shares!

Parameters
$linkType : SharingLinkType
Tags
throws
UnauthorizedException
throws
ForbiddenException
throws
InvalidResponseException
throws
BadRequestException
throws
HttpException
throws
NotFoundException
throws
InternalServerErrorException
Return values
bool

        
On this page

Search results