claroline/claroline/inc/lib/statsUtils.lib.inc.php File Reference

Go to the source code of this file.

Namespaces

namespace  CLTRACK

Functions

 renderStatBlock ($header, $content, $footer= '')
 hoursTab ($sql)
 daysTab ($sql)
 monthTab ($sql)
 makeHitsTable ($period_array, $periodTitle, $linkOnPeriod="???")
 buildTab2Col ($sql, $title="")

Function Documentation

buildTab2Col ( sql,
title = "" 
)

Display a 2 column tab from an array this tab has no title

Parameters:
results : a 2 columns array
leftTitle : string, title of the left column
rightTitle : string, title of the ... right column
Returns:

Definition at line 231 of file statsUtils.lib.inc.php.

daysTab ( sql  ) 

Return an assoc array. Keys are the days, values are the number of time this hours was found. key 'total' return the sum of all number of time days appear

Parameters:
string sql query
Returns:
days_array

Definition at line 93 of file statsUtils.lib.inc.php.

hoursTab ( sql  ) 

Return an assoc array. Keys are the hours, values are the number of time this hours was found. key 'total' return the sum of all number of time hours appear

Parameters:
string sql query
Returns:
array hours

Definition at line 55 of file statsUtils.lib.inc.php.

makeHitsTable ( period_array,
periodTitle,
linkOnPeriod = "???" 
)

Display a 4 column array Columns are : hour of day, graph, number of hits and % First line are titles next are informations Last is total number of hits

Parameters:
period_array : an array provided by hoursTab($sql) or daysTab($sql)
periodTitle : title of the first column, type of period
linkOnPeriod :
Returns:

Definition at line 174 of file statsUtils.lib.inc.php.

monthTab ( sql  ) 

Return an assoc array. Keys are the days, values are the number of time this hours was found. key 'total' return the sum of all number of time days appear

Parameters:
string sql query
Returns:
array month

Definition at line 136 of file statsUtils.lib.inc.php.

renderStatBlock ( header,
content,
footer = '' 
)

Display a standardblock of

Parameters:
$header string title of block
$content string content of the block
$footer string some additionnal infos (optionnal)
Returns:
string html code of the full block

Definition at line 28 of file statsUtils.lib.inc.php.

Generated on Tue Jun 8 12:28:37 2010 for Claroline API by  doxygen 1.6.3