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="") | |
| buildTab2Col | ( | $ | sql, | |
| $ | title = "" | |||
| ) |
Display a 2 column tab from an array this tab has no title
| results | : a 2 columns array | |
| leftTitle | : string, title of the left column | |
| rightTitle | : string, title of the ... right column |
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
| string | sql query |
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
| string | sql query |
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
| period_array | : an array provided by hoursTab($sql) or daysTab($sql) | |
| periodTitle | : title of the first column, type of period | |
| linkOnPeriod | : |
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
| string | sql query |
Definition at line 136 of file statsUtils.lib.inc.php.
| renderStatBlock | ( | $ | header, | |
| $ | content, | |||
| $ | footer = '' | |||
| ) |
Display a standardblock of
| $header | string title of block | |
| $content | string content of the block | |
| $footer | string some additionnal infos (optionnal) |
Definition at line 28 of file statsUtils.lib.inc.php.
1.6.3