Procedural File: lib_downloads.php
Source Location: /_includes/lib_downloads.php
Classes:
DownloadItem
Describes a download item. An file that is connected to a project and
DownloadCategory
Describes a download category. Download items are connected to a download category and can be grouped by it.
Page Details:
A library that contains everything that is connected with downloads.
Tags:
Includes:
getAllDownloadCategoryNames [line 82]
array getAllDownloadCategoryNames(
)
|
|
Gets a list of all download categories names.
Tags:
getDownloadsGroupedByCategory [line 32]
array getDownloadsGroupedByCategory(
string $sqlSelector)
|
|
Gets all download items that match a specified sql selector, grouped by their download category.
Tags:
Parameters
| string |
$sqlSelector |
The sql selector that describes which download items should be retrieved. |
sortDownloadsByPopularity [line 57]
array sortDownloadsByPopularity(
array $downloads)
|
|
Sorts downloads descendingly based on their popularity.
Tags:
Parameters
| array |
$downloads |
The downloads that should be sorted. |
|