The UI to clear statistics.
tempcode
clear
()
An interface for choosing between dates.
tempcode
get_between
(tempcode $title, [boolean $stats_table = false], [?tempcode $extra_fields = NULL], [?tempcode $message = NULL])
-
tempcode
$title: The title to display.
-
boolean
$stats_table: Whether display is dependent on what we kept in our stats table.
-
?tempcode
$extra_fields: Extra fields to request (NULL: none).
-
?tempcode
$message: The message to show for date selection (NULL: default).
Standard modular entry-point finder function.
?array
get_entry_points
()
Standard modular info function.
?array
info
()
Standard modular install function.
void
install
([?integer $upgrade_from = NULL], [?integer $upgrade_from_hack = NULL])
-
?integer
$upgrade_from: What version we're upgrading from (NULL: new install)
-
?integer
$upgrade_from_hack: What hack version we're upgrading from (NULL: new-install/not-upgrading-from-a-hacked-version)
Install geolocation data.
tempcode
install_geolocation_data
()
The UI to show top search keywords.
tempcode
keywords
()
The UI to show page load times.
tempcode
load_times
()
The do-next manager for before content management.
tempcode
misc
()
The UI to show page view statistics for the front page.
tempcode
overview
()
The UI to show page view statistics.
tempcode
page_stats
()
Create a pie chart of the ratios of the specified statistic for the specified page. The chart is saved as an SVG image in /data_custom/admin_stats/, and the tempcode for display of the graph and results table is returned
array
page_x_share
(PATH $page, string $type, string $graph_title, string $graph_description, string $list_title)
-
PATH
$page: The page path
-
string
$type: The statistic to use
-
string
$graph_title: Language identifier for the graph title
-
string
$graph_description: Language identifier for the graph description
-
string
$list_title: Language identifier for the list title
The UI to show referrers.
tempcode
referrers
()
Standard modular run function.
tempcode
run
()
Save a graph to the server so it can be viewed client-side.
void
save_graph
(string $path, string $graph)
-
string
$path: Name of the graph (no path or extension)
-
string
$graph: SVG markup
The UI to show page view statistics for a single page.
tempcode
show_page
()
The UI to show submission rates.
tempcode
submission_rates
()
Standard modular uninstall function.
void
uninstall
()
The UI to show user online statistics.
tempcode
users_online
()
Create a bar chart of the views the specified page has received in relation to the specified hours. The bar chart is stored in /data_custom/admin_stats/ as an SVG image, and the tempcode for display of the graph and results table is returned.
array
views_per_x
(PATH $page, string $type, string $graph_title, string $graph_description, [integer $hours = 1], [integer $total = 24])
-
PATH
$page: The page path
-
string
$type: The statistic type (for use in sort parameters and such)
-
string
$graph_title: Language identifier for the graph title
-
string
$graph_description: Language identifier for the graph description
-
integer
$hours: The steps of hours to use
-
integer
$total: The total hours to plot
The actualiser to clear statistics.
tempcode
_clear
()