ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | handleEvent (int $a_event, ilWikiPage $a_page_obj, ?int $a_user_id=null, array $a_additional_data=null) |
Handle wiki page event. More... | |
static | handlePageCreated (ilWikiPage $a_page_obj, int $a_user_id) |
Handle wiki page creation. More... | |
static | handlePageUpdated (ilWikiPage $a_page_obj, int $a_user_id, array $a_page_data=null) |
Handle wiki page update. More... | |
static | handlePageRead (ilWikiPage $a_page_obj, int $a_user_id) |
static | handlePageDeletion (ilWikiPage $a_page_obj, int $a_user_id) |
static | handlePageRating (ilWikiPage $a_page_obj, int $a_user_id) |
static | getAvailableMonths (int $a_wiki_id) |
static | getFigures () |
static | getFiguresPage () |
static | getFigureTitle (int $a_figure) |
static | getFigureData (int $a_wiki_id, int $a_figure, string $a_from, string $a_to) |
static | getFigureDataPage (int $a_wiki_id, int $a_page_id, int $a_figure, string $a_from, string $a_to) |
static | getFigureOptions () |
static | getFigureOptionsPage () |
Static Protected Member Functions | |
static | getTimestamp () |
Get current time frame (hourly) More... | |
static | writeData (string $a_table, array $a_primary, array $a_values) |
Write data to DB. More... | |
static | writeStat (string $a_wiki_id, array $a_values) |
Write data to wiki_stat. More... | |
static | writeStatPage (int $a_wiki_id, int $a_page_id, array $a_values) |
Write data to wiki_stat_page. More... | |
static | writeStatPageUser (int $a_wiki_id, int $a_page_id, int $a_user_id, array $a_values) |
Write data to wiki_stat_page_user. More... | |
static | writeStatUser (int $a_wiki_id, int $a_user_id, array $a_values) |
Write to wiki_stat_user. More... | |
static | countPages (int $a_wiki_id) |
Count pages in wiki. More... | |
static | getAverageRating (int $a_wiki_id, ?int $a_page_id=null) |
Get average rating for wiki or wiki page. More... | |
static | getWikiAggr (int $a_wiki_id, string $a_day_from, string $a_day_to, string $a_table, string $a_field, string $a_aggr_value, ?string $a_sub_field=null, ?int $a_sub_id=null, bool $a_build_full_period=false) |
static | getWikiLast (int $a_wiki_id, string $a_day_from, string $a_table, string $a_field, ?string $a_sub_field=null, ?int $a_sub_id=null) |
static | getWikiAggrSub (int $a_wiki_id, string $a_day_from, string $a_day_to, string $a_table, string $a_field, string $a_aggr_by, string $a_aggr_value, string $a_aggr_sub, ?string $a_sub_field=null, ?int $a_sub_id=null, bool $a_build_full_period=false) |
static | buildFullPeriodData (array &$a_res, string $a_day_from, string $a_day_to, ?int $a_last_before_period=null, bool $a_allow_zero=false) |
static | getWikiNumPages (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiNewPagesSum (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiNewPagesAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiDeletedPages (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiReadPages (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiEditPagesSum (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiEditPagesAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiUserEditPages (int $a_wiki_id, string $a_day_from, string $a_day_to, ?string $a_sub_field=null, ?int $a_sub_id=null) |
static | getWikiUserEditPagesAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiNumRating (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiNumRatingAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiRatingAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiInternalLinks (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiInternalLinksAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiExternalLinks (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiExternalLinksAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiWords (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiWordsAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiCharacters (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiCharactersAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiFootnotes (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiFootnotesAvg (int $a_wiki_id, string $a_day_from, string $a_day_to) |
static | getWikiPageChanges (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageChangesAvg (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageUserEdit (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageRead (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageInternalLinks (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageExternalLinks (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageWords (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageCharacters (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageFootnotes (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
static | getWikiPageRatings (int $a_wiki_id, int $a_page_id, string $a_day_from, string $a_day_to) |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Wiki statistics class
Timestamp / Current Record
Table / Primary Key / Stats / Events
(1) number of pages ev: page created, page deleted action: count pages of wiki and replace number in current record (2) deleted pages ev: page deleted action: increment number in current record +1 (3) average rating ev: rating saved [action: do (10), then for current records in wiki_stat_page: sum average rating / number of records where average rating is > 0] REVISION action: do (10), then build average rating from wiki page rating records NOT wiki_stat_page
(4) internal links ev: page saved action: count internal links and replace number in current record (5) external links see internal links (6) footnotes see internal links (7) ratings ev: rating saved action: count ratings and replace number in current record (8) words see internal links (9) characters see internal links (10) average rating ev: rating saved sum ratings / number of ratings (0 if no rating given)
(11) new pages ev: page created action: increment number of user in current record + 1
(12) changes ev: page saved action: increment number of user/page in current record + 1 (13) read ev: page read action: increment number of user/page in current record + 1
Events
Deleted pages
All historic records are kept. A current wiki_stat_page record with all values 0 is replaced/created. (?)
Definition at line 93 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 781 of file class.ilWikiStat.php.
|
staticprotected |
Count pages in wiki.
Definition at line 342 of file class.ilWikiStat.php.
References ilWikiPage\getAllWikiPages().
|
static |
Definition at line 1199 of file class.ilWikiStat.php.
References $DIC, $ilDB, and $res.
Referenced by ilWikiStatGUI\viewToolbar().
|
staticprotected |
Get average rating for wiki or wiki page.
Definition at line 351 of file class.ilWikiStat.php.
References ilRating\getOverallRatingForObject().
|
static |
Definition at line 1311 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\getChartData(), and ilWikiStatGUI\getListData().
|
static |
Definition at line 1387 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\getChartData(), and ilWikiStatGUI\getListData().
|
static |
Definition at line 1428 of file class.ilWikiStat.php.
References $res.
Referenced by ilWikiStatGUI\getListData(), and ilWikiStatGUI\viewToolbar().
|
static |
Definition at line 1439 of file class.ilWikiStat.php.
References $res.
Referenced by ilWikiStatGUI\getListData(), and ilWikiStatGUI\viewToolbar().
|
static |
Definition at line 1220 of file class.ilWikiStat.php.
|
static |
Definition at line 1248 of file class.ilWikiStat.php.
|
static |
Definition at line 1264 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\export(), and ilWikiStatGUI\renderGraph().
|
staticprotected |
Get current time frame (hourly)
Definition at line 187 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 538 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 643 of file class.ilWikiStat.php.
References $DIC, $ilDB, $res, and exit.
|
staticprotected |
Definition at line 1067 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1075 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 845 of file class.ilWikiStat.php.
|
staticprotected |
|
staticprotected |
|
staticprotected |
Definition at line 1035 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1043 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1083 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1091 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1019 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1027 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 615 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 837 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 829 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 821 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 988 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 996 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1104 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1113 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1167 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1149 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1176 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1140 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1185 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1131 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1122 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1158 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1004 of file class.ilWikiStat.php.
References $res.
|
staticprotected |
Definition at line 853 of file class.ilWikiStat.php.
|
staticprotected |
|
staticprotected |
|
staticprotected |
Definition at line 1051 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1059 of file class.ilWikiStat.php.
|
static |
Handle wiki page event.
Definition at line 142 of file class.ilWikiStat.php.
References $DIC, $ilUser, and ANONYMOUS_USER_ID.
Referenced by ilWikiPage\afterUpdate(), ilWikiPage\create(), ilWikiPage\delete(), ilWikiPageGUI\increaseViewCount(), and ilWikiPageGUI\updateStatsRating().
|
static |
Handle wiki page creation.
Definition at line 373 of file class.ilWikiStat.php.
References ilWikiPage\getWikiId().
|
static |
Definition at line 443 of file class.ilWikiStat.php.
References $data, $DIC, $ilDB, ilPageObject\getId(), and ilWikiPage\getWikiId().
|
static |
Definition at line 495 of file class.ilWikiStat.php.
References ilPageObject\getId(), and ilWikiPage\getWikiId().
|
static |
Definition at line 428 of file class.ilWikiStat.php.
References ilPageObject\getId(), and ilWikiPage\getWikiId().
|
static |
Handle wiki page update.
Definition at line 400 of file class.ilWikiStat.php.
References ilPageObject\getId(), and ilWikiPage\getWikiId().
|
staticprotected |
Write data to DB.
Definition at line 198 of file class.ilWikiStat.php.
References $DIC, $ilDB, ilDBInterface\manipulate(), ilDBInterface\numRows(), ilDBInterface\query(), and ilDBInterface\quote().
|
staticprotected |
Write data to wiki_stat.
Definition at line 279 of file class.ilWikiStat.php.
|
staticprotected |
Write data to wiki_stat_page.
int | $a_wiki_id | |
int | $a_page_id | |
array | $a_values |
Definition at line 295 of file class.ilWikiStat.php.
|
staticprotected |
Write data to wiki_stat_page_user.
Definition at line 310 of file class.ilWikiStat.php.
|
staticprotected |
Write to wiki_stat_user.
Definition at line 327 of file class.ilWikiStat.php.
const ilWikiStat::EVENT_PAGE_CREATED = 1 |
Definition at line 95 of file class.ilWikiStat.php.
Referenced by ilWikiPage\create().
const ilWikiStat::EVENT_PAGE_DELETED = 4 |
Definition at line 98 of file class.ilWikiStat.php.
Referenced by ilWikiPage\delete().
const ilWikiStat::EVENT_PAGE_RATING = 5 |
Definition at line 99 of file class.ilWikiStat.php.
Referenced by ilWikiPageGUI\updateStatsRating().
const ilWikiStat::EVENT_PAGE_READ = 3 |
Definition at line 97 of file class.ilWikiStat.php.
Referenced by ilWikiPageGUI\increaseViewCount().
const ilWikiStat::EVENT_PAGE_UPDATED = 2 |
Definition at line 96 of file class.ilWikiStat.php.
Referenced by ilWikiPage\afterUpdate().
const ilWikiStat::KEY_FIGURE_WIKI_CHARS = 19 |
Definition at line 119 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_CHARS_AVG = 20 |
Definition at line 120 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_DELETED_PAGES = 6 |
Definition at line 106 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_EDIT_PAGES = 4 |
Definition at line 104 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_EDIT_PAGES_AVG = 5 |
Definition at line 105 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_EXTERNAL_LINKS = 15 |
Definition at line 115 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_EXTERNAL_LINKS_AVG = 16 |
Definition at line 116 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_FOOTNOTES = 21 |
Definition at line 121 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_FOOTNOTES_AVG = 22 |
Definition at line 122 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_INTERNAL_LINKS = 13 |
Definition at line 113 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_INTERNAL_LINKS_AVG = 14 |
Definition at line 114 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_NEW_PAGES = 2 |
Definition at line 102 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_NEW_PAGES_AVG = 3 |
Definition at line 103 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_NUM_PAGES = 1 |
Definition at line 101 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph(), and ilWikiStatGUI\viewToolbar().
const ilWikiStat::KEY_FIGURE_WIKI_NUM_RATING = 10 |
Definition at line 110 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_NUM_RATING_AVG = 11 |
Definition at line 111 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_CHANGES = 23 |
Definition at line 124 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph(), and ilWikiStatGUI\viewToolbar().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_CHANGES_AVG = 24 |
Definition at line 125 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_CHARS = 30 |
Definition at line 131 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_EXTERNAL_LINKS = 28 |
Definition at line 129 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_FOOTNOTES = 31 |
Definition at line 132 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_INTERNAL_LINKS = 27 |
Definition at line 128 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_RATINGS = 32 |
Definition at line 133 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_READ = 26 |
Definition at line 127 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_USER_EDIT = 25 |
Definition at line 126 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_WORDS = 29 |
Definition at line 130 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_RATING_AVG = 12 |
Definition at line 112 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_READ_PAGES = 7 |
Definition at line 107 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_USER_EDIT_PAGES = 8 |
Definition at line 108 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_USER_EDIT_PAGES_AVG = 9 |
Definition at line 109 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_WORDS = 17 |
Definition at line 117 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_WORDS_AVG = 18 |
Definition at line 118 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().