WIKINDX API trunk

ATTACHMENT

ATTACHMENT

Handle attachments

Table of Contents

Properties

$primary  : mixed
string

Methods

__construct()  : mixed
ATTACHMENT
incrementDownloadCounter()  : mixed
Increment the accesses and downloads counter for the attachment in the one resource
listFiles()  : array<string|int, mixed>
List all attachments for this resource
makeLink()  : string
Make hyperlink of attachment

Properties

Methods

__construct()

ATTACHMENT

public __construct() : mixed

incrementDownloadCounter()

Increment the accesses and downloads counter for the attachment in the one resource

public incrementDownloadCounter(int $id, int $resourceId) : mixed
Parameters
$id : int
$resourceId : int

listFiles()

List all attachments for this resource

public listFiles(int $resourceId) : array<string|int, mixed>
Parameters
$resourceId : int
Return values
array<string|int, mixed>

Make hyperlink of attachment

public makeLink(array<string|int, mixed> $row[, int $resourceId = false ][, bool $list = false ][, bool $reduce = true ][, bool $hyperlink = true ][, string $extra = '' ]) : string
Parameters
$row : array<string|int, mixed>
$resourceId : int = false
$list : bool = false
$reduce : bool = true
$hyperlink : bool = true
$extra : string = ''

Default '' (extra URL parameters such as BrowserTabID)

Return values
string

        
On this page

Search results