ONO::FW::Apps::Core::Stats

This module offers functions that allow to generate and view ONO app exercise stats.

Functions

stats();

Generate statistics.

Switches:

-a absolute position
-B buttom margin 10px
-c center
-C 'completed' instead of 'correct'
-e use "total errors" instead of "not correct"
-h hint box
-H hint box V2
-m mistakes
-M mistakes, red
-L left margin 10px
-p pages (also see -s and -x)
-P phone -> disappear if screen smaller than 800 px
-q sQuare display (2+2)
-R right margin 10px
-s use "screen" instead of "page"
-S submit button
-t top margin 10px
-T hide 'todo' tab
-v vertical (also see 'q' ass an alternative)
-V vertical limit to 150px (also see 'q' ass an alternative)
-W hide 'wrong' tab
-x use "exercise" instead of "page"
-z set correct to zero by default, not replacement string

ONO::FW::Apps::Core::Stats->stats( $MORE, $BLK_ref, $switches );

stats_multi_pages();

Multi-page statistics.

ONO::FW::Apps::Core::Stats->stats_multi_pages( $questions, $stat_correct, $stat_wrong, $page, $pages, $questions_per_page );
returns: ($stat_correct,$stat_todo_total)

stats_replace();

Replace placeholders by actual data.

ONO::FW::Apps::Core::Stats->stats_replace( );
returns: $data[1]

Sub-Modules

none

Dependencies

none

Code