dokeos-library
[ class tree: dokeos-library ] [ index: dokeos-library ] [ all elements ]

Procedural File: statsUtils.lib.inc.php

Source Location: /main/inc/lib/statsUtils.lib.inc.php



Page Details:

This is the statistic utility functions library for Dokeos.

Include/require it in your code to use its functionality.










buildTab2col [line 394]

void buildTab2col( array_of_results $array_of_results, title1 $title1, title2 $title2)

display a 2 column tab from an array



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

array_of_results   $array_of_results   : a 2 columns array
title1   $title1   : string, title of the first column
title2   $title2   : string, title of the ... second column
[ Top ]



buildTab2ColNoTitle [line 432]

void buildTab2ColNoTitle( array_of_results $array_of_results)

display a 2 column tab from an array



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

array_of_results   $array_of_results   : a 2 columns array
[ Top ]



buildTabDefcon [line 464]

void buildTabDefcon( array_of_results $array_of_results)

this function is used to display



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

array_of_results   $array_of_results   : a 2 columns array
[ Top ]



daysTab [line 229]

days_array daysTab( sql $sql)

Return an assoc array. Keys are the days, values are



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

sql   $sql   : a sql query (as a string)
[ Top ]



getManyResults1Col [line 64]

void getManyResults1Col( sql $sql)

Return many results of a query in a 1 column tab



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

sql   $sql   : a sql query (as a string)
[ Top ]



getManyResults2Col [line 90]

void getManyResults2Col( sql $sql)

Return many results of a query



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

sql   $sql   : a sql query (as a string)
[ Top ]



getManyResults3Col [line 119]

void getManyResults3Col( sql $sql)

Return many results of a query in a 3 column tab



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

sql   $sql   : a sql query (as a string)
[ Top ]



getManyResultsXCol [line 153]

void getManyResultsXCol( sql $sql, $X)

Return many results of a query in a X column tab



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

sql   $sql   : a sql query (as a string)
   $X  
[ Top ]



getOneResult [line 45]

void getOneResult( sql $sql)

return one result from a sql query (1 single result)



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

sql   $sql   : a sql query (as a string)
[ Top ]



hoursTab [line 186]

hours_array hoursTab( sql $sql)

Return an assoc array. Keys are the hours, values are



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

sql   $sql   : a sql query (as a string)
[ Top ]



makeHitsTable [line 314]

void makeHitsTable( period_array $period_array, periodTitle $periodTitle, [linkOnPeriod $linkOnPeriod = '???'])

Display a 4 column array



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

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



monthTab [line 272]

month_array monthTab( sql $sql)

Return an assoc array. Keys are the days, values are



Tags:

author:  Sebastien Piraux <piraux_seb@hotmail.com>


Parameters

sql   $sql   : a sql query (as a string)
[ Top ]



Documentation generated on Wed, 05 Sep 2007 06:15:09 +0200 by phpDocumentor 1.4.0