public __construct(array $settings): void
Parameter | Type | Description |
---|
$settings | array | |
public isAuthorised(): bool
public getAbsoluteUrl(string $url): string
Parameter | Type | Description |
---|
$url | string | |
public path(string $url): string
Parameter | Type | Description |
---|
$url | string | |
Get the contents of a file.
public propfind(string $url, array $properties = [], int $depth = 1, bool $return_response = false, array $namespaces = []): mixed
Parameter | Type | Description |
---|
$url | string | the URL of the file to get the contents of |
$properties | array | An array of properties to request. If empty, all properties will be requested. |
$depth | int | the depth of the PROPFIND request |
$return_response | bool | if true, the raw response object will be returned instead of the file contents |
$namespaces | array | an array of namespaces to use in the PROPFIND request |
public proppatch(string $url, array $properties): bool
Parameter | Type | Description |
---|
$url | string | |
$properties | array | An array of properties to request. If empty, all properties will be requested. |
Create a collection object (ie: a directory/folder).
public mkcol(string $url): bool
Parameter | Type | Description |
---|
$url | string | |
Create a new object (ie: a file);.
public put(string $url, ?string $content, ?string $datatype): bool
Parameter | Type | Description |
---|
$url | string | |
$content | string | |
$datatype | string | |
public putFile(string $dir_url, File $file): bool
Parameter | Type | Description |
---|
$dir_url | string | |
$file | File | |
public delete(URL $url): Response
Parameter | Type | Description |
---|
$url | URL | |
public xml(Element $xml): void
Parameter | Type | Description |
---|
$xml | Element | |
protected parseProperties(Element $dom): void
Parameter | Type | Description |
---|
$dom | Element | |
protected parseMultiStatus(string $xml): void
Parameter | Type | Description |
---|
$xml | string | |
Generated by Hazaar API Doc Generator