Nextcloud PHP API (master)

IOCMResource extends JsonSerializable

Model based on the Open Cloud Mesh Discovery API

Tags
link
https://github.com/cs3org/OCM-API/
since
28.0.0

Table of Contents

Methods

getName()  : string
get name of the resource
getProtocols()  : array<string, string>
get configured protocols
getShareTypes()  : array<string|int, string>
get share types
import()  : $this
import data from an array
jsonSerialize()  : array{name: string, shareTypes: string[], protocols: array}
setName()  : $this
set name of the resource
setProtocols()  : $this
set available protocols
setShareTypes()  : $this
set share types

Methods

getName()

get name of the resource

public getName() : string
Tags
since
28.0.0
Return values
string

getProtocols()

get configured protocols

public getProtocols() : array<string, string>
Tags
since
28.0.0
Return values
array<string, string>

getShareTypes()

get share types

public getShareTypes() : array<string|int, string>
Tags
since
28.0.0
Return values
array<string|int, string>

import()

import data from an array

public import(array<string|int, mixed> $data) : $this
Parameters
$data : array<string|int, mixed>
Tags
since
28.0.0
Return values
$this

jsonSerialize()

public jsonSerialize() : array{name: string, shareTypes: string[], protocols: array}
Tags
since
28.0.0
Return values
array{name: string, shareTypes: string[], protocols: array}

setName()

set name of the resource

public setName(string $name) : $this
Parameters
$name : string
Tags
since
28.0.0
Return values
$this

setProtocols()

set available protocols

public setProtocols(array<string, string> $protocols) : $this
Parameters
$protocols : array<string, string>
Tags
since
28.0.0
Return values
$this

setShareTypes()

set share types

public setShareTypes(array<string|int, string> $shareTypes) : $this
Parameters
$shareTypes : array<string|int, string>
Tags
since
28.0.0
Return values
$this

        
On this page

Search results