[ class tree: core ] [ index: core ] [ all elements ]

Procedural File: downloadList-functions.php

Source Location: /zp-extensions/downloadList/downloadList-functions.php

Page Details
Includes
require_once (SERVERPATH.'/'.ZENFOLDER.'/lib-MimeTypes.php') [line 2]
[ Top ]


Functions
adddownloadListItem  [line 77]

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

Parameters:
string   $path:  Path of the download item


void adddownloadListItem( string $path  )

[ Top ]
downloadstatistics_button  [line 164]

Admin overview button for download statistics utility

Parameters:
   $buttons: 


void downloadstatistics_button( $buttons  )

[ Top ]
getDownloadItemID  [line 108]

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

Parameters:
string   $path:  Path of the download item (without WEBPATH)


bool|string getDownloadItemID( string $path  )

[ Top ]
getDownloadItemPath  [line 123]

Gets the path of the download item via ID from the database. Used to process the download only. For internal use.

Parameters:
int   $id:  Id of the download item


bool|string getDownloadItemPath( int $id  )

[ Top ]
getdownloadListItemFromDB  [line 97]

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

Parameters:
   $file: 


array getdownloadListItemFromDB( $file  )

[ Top ]
getdownloadListItemsFromDB  [line 88]

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


array getdownloadListItemsFromDB( )

[ Top ]
printdownloadList_formatBytes  [line 143]

returns formatted number of bytes. For internal use.

two parameters: the bytes and the precision (optional). if no precision is set, function will determine clean result automatically. http://php.net/manual/de/function.filesize.php

Parameters:
   $b: 
   $p: 

Information Tags:
Author:  Martin Sweeny
Version:  2010.0617

void printdownloadList_formatBytes( $b, [ $p = null]  )

[ Top ]
updatedownloadListItemCount  [line 64]

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

Parameters:
string   $path:  Path of the download item
bool   $nocountupdate:  false if the downloadcount should not be increased and only the entry be added to the db if it does not already exist


void updatedownloadListItemCount( string $path, bool $nocountupdate  )

[ Top ]


Documentation generated on Tue, 20 Dec 2011 16:07:10 +0100 by phpDocumentor 1.4.3