Contentserv PHP API

CSDownloadResult
in package

This class defines a download result

Tags

Table of Contents

addFile()  : void
Adds a file to the download result
createResult()  : CSDownloadResult
Creates a download result with a name.
getItems()  : array<string|int, mixed>
Returns the download result items.

Methods

addFile()

Adds a file to the download result

public addFile(string $sFilePath) : void
Parameters
$sFilePath : string

The path to the download file

Tags
access

public

Return values
void

createResult()

Creates a download result with a name.

public static createResult(string $sName) : CSDownloadResult
Parameters
$sName : string

The name of the download result to use in download contexts

Tags
access

public

Return values
CSDownloadResult

The created download result

getItems()

Returns the download result items.

public getItems() : array<string|int, mixed>
Tags
access

public

Return values
array<string|int, mixed>

All download result items.


        

Search results