IP.Board  3.3.0
admin_downloads_index_stats Class Reference

IP.Download Manager Statistics. More...

Inheritance diagram for admin_downloads_index_stats:
ipsCommand

Public Member Functions

 doExecute (ipsRegistry $registry)

Data Fields

 $form_code = ''
 $form_code_js = ''
 $html

Protected Member Functions

 _generateFileReport ($fid)
 _generateMemberReport ($mid)
 _getPieImage ()
 _runReport ()
 _usortDownloaders ($a, $b)
 _usortSubmitters ($a, $b)

Protected Attributes

 $acceptable = array( 'browsers', 'ip', 'os', 'fid', 'time' )
 $limit = 50
 $text = array( 'fid' => "File", 'os' => "Operating System", 'browsers' => "Browser", 'ip' => "IP Address", 'time' => "Date Period" )
 $traffic
 $type

Detailed Description

IP.Download Manager Statistics.


Member Function Documentation

_generateFileReport ( fid) [protected]

Generate file report

Parameters:
integer$fidFile ID
Returns:
void
_generateMemberReport ( mid) [protected]

Generate member report

Parameters:
integer$midMember ID
Returns:
void
_getPieImage ( ) [protected]

Generate pie graph

Returns:
void
_runReport ( ) [protected]

Run a report

Returns:
void
_usortDownloaders ( a,
b 
) [protected]

Custom sort function: downloaders

Parameters:
array$aFirst submitter data
array$bSecond submitter data
Returns:
integer
_usortSubmitters ( a,
b 
) [protected]

Custom sort function: submitters

Parameters:
array$aFirst submitter data
array$bSecond submitter data
Returns:
integer
doExecute ( ipsRegistry registry)

Main function executed automatically by the controller

Parameters:
object$registryRegistry object
Returns:
void

Reimplemented from ipsCommand.


Field Documentation

$acceptable = array( 'browsers', 'ip', 'os', 'fid', 'time' ) [protected]

Acceptable stat types

$form_code = ''

String for the screen url bit

$form_code_js = ''

String for the JS url bit

$html

Skin object shortcut

$limit = 50 [protected]

Max results

$text = array( 'fid' => "File", 'os' => "Operating System", 'browsers' => "Browser", 'ip' => "IP Address", 'time' => "Date Period" ) [protected]

Text to display

$traffic [protected]

Traffic library object

$type [protected]

Query type


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables