com.lokorin.lokorin.lib
[ class tree: com.lokorin.lokorin.lib ] [ index: com.lokorin.lokorin.lib ] [ all elements ]

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:

filesource:  Source Code for this file
license:  GNU Lesser General Public License
version:  $Revision: 1.12 $
author:  Andreas Launila


Includes:

require_once('common.php') [line 18]
For access to common constants and functions.







getAllDownloadCategoryNames [line 82]

array getAllDownloadCategoryNames( )

Gets a list of all download categories names.



Tags:

return:  Key is the id, value is the name of the corresponding download category.
access:  public


[ Top ]



getDownloadsGroupedByCategory [line 32]

array getDownloadsGroupedByCategory( string $sqlSelector)

Gets all download items that match a specified sql selector, grouped by their download category.



Tags:

return:  An array where the key is an unique identifier for a download category and the corresponding value is an array of DownloadItem instances, where each such instance represents a downloadable item in the category.
access:  public


Parameters

string   $sqlSelector   The sql selector that describes which download items should be retrieved.
[ Top ]



sortDownloadsByPopularity [line 57]

array sortDownloadsByPopularity( array $downloads)

Sorts downloads descendingly based on their popularity.



Tags:

return:  The downloads ordered descendingly by popularity.
access:  public


Parameters

array   $downloads   The downloads that should be sorted.
[ Top ]



Documentation generated on Sun, 16 Apr 2006 21:03:19 +0200 by phpDocumentor 1.3.0RC4