ZenphotoCMS 1.6.5

DownloadList

Plugin option handling class

Table of Contents

Methods

__construct()  : mixed
addListItem()  : mixed
Adds a new download item to the database. For internal use.
button()  : mixed
Admin overview button for download statistics utility
checkAccess()  : mixed
getItemID()  : bool|string
Gets the id of a download item from the database for the download link. For internal use.
getListItemFromDB()  : array<string|int, mixed>
Gets the download items from all download items from the database. For internal use in the downloadlink functions.
getListItemsFromDB()  : array<string|int, mixed>
Gets the download items from all download items from the database. For internal use in the downloadList functions.
getOptionsSupported()  : mixed
handleOption()  : mixed
handleOptionSave()  : mixed
noFile()  : mixed
Handles missing files
printListArray()  : array<string|int, mixed>
updateListItemCount()  : mixed
Updates the download count entry when processing a download. For internal use.

Methods

addListItem()

Adds a new download item to the database. For internal use.

public static addListItem(string $path) : mixed
Parameters
$path : string

Path of the download item

button()

Admin overview button for download statistics utility

public static button(mixed $buttons) : mixed
Parameters
$buttons : mixed

checkAccess()

public static checkAccess([mixed &$hint = NULL ][, mixed &$show = NULL ]) : mixed
Parameters
$hint : mixed = NULL
$show : mixed = NULL

getItemID()

Gets the id of a download item from the database for the download link. For internal use.

public static getItemID(string $path) : bool|string
Parameters
$path : string

Path of the download item (without WEBPATH)

Return values
bool|string

getListItemFromDB()

Gets the download items from all download items from the database. For internal use in the downloadlink functions.

public static getListItemFromDB(mixed $file) : array<string|int, mixed>
Parameters
$file : mixed
Return values
array<string|int, mixed>

getListItemsFromDB()

Gets the download items from all download items from the database. For internal use in the downloadList functions.

public static getListItemsFromDB() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOptionsSupported()

public getOptionsSupported() : mixed

handleOption()

public handleOption(mixed $option, mixed $currentValue) : mixed
Parameters
$option : mixed
$currentValue : mixed

handleOptionSave()

public handleOptionSave(mixed $themename, mixed $themealbum) : mixed
Parameters
$themename : mixed
$themealbum : mixed

noFile()

Handles missing files

public static noFile() : mixed
Tags
global

string $_zp_downloadfile

printListArray()

public static printListArray(array<string|int, mixed> $array[, string $listtype = 'ol' ]) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>

List of download items

$listtype : string = 'ol'

"ol" or "ul" for the type of HTML list you want to use

Return values
array<string|int, mixed>

updateListItemCount()

Updates the download count entry when processing a download. For internal use.

public static updateListItemCount(string $path) : mixed
Parameters
$path : string

Path of the download item


        
On this page

Search results