ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Wiki statistics class. More...
Static Public Member Functions | |
static | handleEvent ($a_event, ilWikiPage $a_page_obj, $a_user_id=null, array $a_additional_data=null) |
Handle wiki page event. More... | |
static | handlePageCreated (ilWikiPage $a_page_obj, $a_user_id) |
Handle wiki page creation. More... | |
static | handlePageUpdated (ilWikiPage $a_page_obj, $a_user_id, array $a_page_data=null) |
Handle wiki page update. More... | |
static | handlePageRead (ilWikiPage $a_page_obj, $a_user_id) |
Handle wiki page read. More... | |
static | handlePageDeletion (ilWikiPage $a_page_obj, $a_user_id) |
Handle wiki page deletion. More... | |
static | handlePageRating (ilWikiPage $a_page_obj, $a_user_id) |
Handle wiki page rating. More... | |
static | getAvailableMonths ($a_wiki_id) |
static | getFigures () |
static | getFiguresPage () |
static | getFigureTitle ($a_figure) |
static | getFigureData ($a_wiki_id, $a_figure, $a_from, $a_to) |
static | getFigureDataPage ($a_wiki_id, $a_page_id, $a_figure, $a_from, $a_to) |
static | getFigureOptions () |
static | getFigureOptionsPage () |
Static Protected Member Functions | |
static | getTimestamp () |
Get current time frame (hourly) More... | |
static | writeData ($a_table, array $a_primary, array $a_values) |
Write data to DB. More... | |
static | writeStat ($a_wiki_id, $a_values) |
Write data to wiki_stat. More... | |
static | writeStatPage ($a_wiki_id, $a_page_id, $a_values) |
Write data to wiki_stat_page. More... | |
static | writeStatPageUser ($a_wiki_id, $a_page_id, $a_user_id, $a_values) |
Write data to wiki_stat_page_user. More... | |
static | writeStatUser ($a_wiki_id, $a_user_id, $a_values) |
Write to wiki_stat_user. More... | |
static | countPages ($a_wiki_id) |
Count pages in wiki. More... | |
static | getAverageRating ($a_wiki_id, $a_page_id=null) |
Get average rating for wiki or wiki page. More... | |
static | getWikiAggr ($a_wiki_id, $a_day_from, $a_day_to, $a_table, $a_field, $a_aggr_value, $a_sub_field=null, $a_sub_id=null, $a_build_full_period=false) |
static | getWikiLast ($a_wiki_id, $a_day_from, $a_table, $a_field, $a_sub_field=null, $a_sub_id=null) |
static | getWikiAggrSub ($a_wiki_id, $a_day_from, $a_day_to, $a_table, $a_field, $a_aggr_by, $a_aggr_value, $a_aggr_sub, $a_sub_field=null, $a_sub_id=null, $a_build_full_period=false) |
static | buildFullPeriodData (array &$a_res, $a_day_from, $a_day_to, $a_last_before_period, $a_allow_zero=false) |
static | getWikiNumPages ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiNewPagesSum ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiNewPagesAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiDeletedPages ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiReadPages ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiEditPagesSum ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiEditPagesAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiUserEditPages ($a_wiki_id, $a_day_from, $a_day_to, $a_sub_field=null, $a_sub_id=null) |
static | getWikiUserEditPagesAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiNumRating ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiNumRatingAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiRatingAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiInternalLinks ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiInternalLinksAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiExternalLinks ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiExternalLinksAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiWords ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiWordsAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiCharacters ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiCharactersAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiFootnotes ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiFootnotesAvg ($a_wiki_id, $a_day_from, $a_day_to) |
static | getWikiPageChanges ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageChangesAvg ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageUserEdit ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageRead ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageInternalLinks ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageExternalLinks ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageWords ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageCharacters ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageFootnotes ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
static | getWikiPageRatings ($a_wiki_id, $a_page_id, $a_day_from, $a_day_to) |
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 81 of file class.ilWikiStat.php.
|
staticprotected |
|
staticprotected |
Count pages in wiki.
int | $a_wiki_id |
Definition at line 339 of file class.ilWikiStat.php.
References ilWikiPage\getAllWikiPages().
|
static |
Definition at line 1078 of file class.ilWikiStat.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilWikiStatGUI\viewToolbar().
|
staticprotected |
Get average rating for wiki or wiki page.
int | $a_wiki_id | |
int | $a_page_id |
Definition at line 351 of file class.ilWikiStat.php.
References ilRating\getOverallRatingForObject().
|
static |
Definition at line 1188 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\getChartData(), and ilWikiStatGUI\getListData().
|
static |
Definition at line 1259 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\getChartData(), and ilWikiStatGUI\getListData().
|
static |
Definition at line 1294 of file class.ilWikiStat.php.
References $res.
Referenced by ilWikiStatGUI\getListData(), and ilWikiStatGUI\viewToolbar().
|
static |
Definition at line 1305 of file class.ilWikiStat.php.
References $res.
Referenced by ilWikiStatGUI\getListData(), and ilWikiStatGUI\viewToolbar().
|
static |
Definition at line 1098 of file class.ilWikiStat.php.
|
static |
Definition at line 1126 of file class.ilWikiStat.php.
|
static |
Definition at line 1142 of file class.ilWikiStat.php.
References $DIC, $lng, and $map.
Referenced by ilWikiStatGUI\export(), and ilWikiStatGUI\renderGraph().
|
staticprotected |
|
staticprotected |
|
staticprotected |
Definition at line 642 of file class.ilWikiStat.php.
References $DIC, $ilDB, $res, $row, $values, and exit.
|
staticprotected |
Definition at line 998 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1003 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 823 of file class.ilWikiStat.php.
|
staticprotected |
|
staticprotected |
|
staticprotected |
Definition at line 978 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 983 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1008 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1013 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 968 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 973 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 620 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 818 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 813 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 808 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 946 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 951 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1023 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1028 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1058 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1048 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1063 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1043 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1068 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1038 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1033 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 1053 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 956 of file class.ilWikiStat.php.
References $res.
|
staticprotected |
Definition at line 828 of file class.ilWikiStat.php.
|
staticprotected |
|
staticprotected |
|
staticprotected |
Definition at line 988 of file class.ilWikiStat.php.
|
staticprotected |
Definition at line 993 of file class.ilWikiStat.php.
|
static |
Handle wiki page event.
int | $a_event | |
ilWikiPage | $a_page_obj | |
int | $a_user_id | |
int | $a_additional_data |
Definition at line 135 of file class.ilWikiStat.php.
Referenced by ilWikiPage\afterUpdate(), ilWikiPage\create(), ilWikiPage\delete(), ilWikiPageGUI\increaseViewCount(), and ilWikiPageGUI\updateStatsRating().
|
static |
Handle wiki page creation.
ilWikiPage | $a_page_obj | |
int | $a_user_id |
Definition at line 376 of file class.ilWikiStat.php.
References ilWikiPage\getWikiId().
|
static |
Handle wiki page deletion.
ilWikiPage | $a_page_obj | |
int | $a_user_id |
Definition at line 455 of file class.ilWikiStat.php.
References $data, $DIC, $ilDB, $values, ilPageObject\getId(), and ilWikiPage\getWikiId().
|
static |
Handle wiki page rating.
ilWikiPage | $a_page_obj | |
int | $a_user_id |
Definition at line 511 of file class.ilWikiStat.php.
References ilPageObject\getId(), and ilWikiPage\getWikiId().
|
static |
Handle wiki page read.
ilWikiPage | $a_page_obj | |
int | $a_user_id |
Definition at line 436 of file class.ilWikiStat.php.
References ilPageObject\getId(), and ilWikiPage\getWikiId().
|
static |
Handle wiki page update.
ilWikiPage | $a_page_obj | |
int | $a_user_id | |
array | $a_page_data |
Definition at line 405 of file class.ilWikiStat.php.
References $values, ilPageObject\getId(), and ilWikiPage\getWikiId().
|
staticprotected |
Write data to DB.
string | $a_table | |
array | $a_primary | |
array | $a_values |
Definition at line 194 of file class.ilWikiStat.php.
References $columns, $DIC, $ilDB, $values, ilDBInterface\manipulate(), ilDBInterface\numRows(), ilDBInterface\query(), and ilDBInterface\quote().
|
staticprotected |
Write data to wiki_stat.
int | $a_wiki_id | |
array | $a_values |
Definition at line 275 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 290 of file class.ilWikiStat.php.
|
staticprotected |
Write data to wiki_stat_page_user.
int | $a_wiki_id | |
int | $a_page_id | |
int | $a_user_id | |
array | $a_values |
Definition at line 307 of file class.ilWikiStat.php.
|
staticprotected |
Write to wiki_stat_user.
int | $a_wiki_id | |
int | $a_user_id | |
array | $a_values |
Definition at line 324 of file class.ilWikiStat.php.
const ilWikiStat::EVENT_PAGE_CREATED = 1 |
Definition at line 83 of file class.ilWikiStat.php.
Referenced by ilWikiPage\create().
const ilWikiStat::EVENT_PAGE_DELETED = 4 |
Definition at line 86 of file class.ilWikiStat.php.
Referenced by ilWikiPage\delete().
const ilWikiStat::EVENT_PAGE_RATING = 5 |
Definition at line 87 of file class.ilWikiStat.php.
Referenced by ilWikiPageGUI\updateStatsRating().
const ilWikiStat::EVENT_PAGE_READ = 3 |
Definition at line 85 of file class.ilWikiStat.php.
Referenced by ilWikiPageGUI\increaseViewCount().
const ilWikiStat::EVENT_PAGE_UPDATED = 2 |
Definition at line 84 of file class.ilWikiStat.php.
Referenced by ilWikiPage\afterUpdate().
const ilWikiStat::KEY_FIGURE_WIKI_CHARS = 19 |
Definition at line 107 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_CHARS_AVG = 20 |
Definition at line 108 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_DELETED_PAGES = 6 |
Definition at line 94 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_EDIT_PAGES = 4 |
Definition at line 92 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_EDIT_PAGES_AVG = 5 |
Definition at line 93 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_EXTERNAL_LINKS = 15 |
Definition at line 103 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_EXTERNAL_LINKS_AVG = 16 |
Definition at line 104 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_FOOTNOTES = 21 |
Definition at line 109 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_FOOTNOTES_AVG = 22 |
Definition at line 110 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_INTERNAL_LINKS = 13 |
Definition at line 101 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_INTERNAL_LINKS_AVG = 14 |
Definition at line 102 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_NEW_PAGES = 2 |
Definition at line 90 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_NEW_PAGES_AVG = 3 |
Definition at line 91 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_NUM_PAGES = 1 |
Definition at line 89 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph(), and ilWikiStatGUI\viewToolbar().
const ilWikiStat::KEY_FIGURE_WIKI_NUM_RATING = 10 |
Definition at line 98 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_NUM_RATING_AVG = 11 |
Definition at line 99 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_CHANGES = 23 |
Definition at line 112 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph(), and ilWikiStatGUI\viewToolbar().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_CHANGES_AVG = 24 |
Definition at line 113 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_CHARS = 30 |
Definition at line 119 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_EXTERNAL_LINKS = 28 |
Definition at line 117 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_FOOTNOTES = 31 |
Definition at line 120 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_INTERNAL_LINKS = 27 |
Definition at line 116 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_RATINGS = 32 |
Definition at line 121 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_READ = 26 |
Definition at line 115 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_USER_EDIT = 25 |
Definition at line 114 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_PAGE_WORDS = 29 |
Definition at line 118 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_RATING_AVG = 12 |
Definition at line 100 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_READ_PAGES = 7 |
Definition at line 95 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_USER_EDIT_PAGES = 8 |
Definition at line 96 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_USER_EDIT_PAGES_AVG = 9 |
Definition at line 97 of file class.ilWikiStat.php.
const ilWikiStat::KEY_FIGURE_WIKI_WORDS = 17 |
Definition at line 105 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().
const ilWikiStat::KEY_FIGURE_WIKI_WORDS_AVG = 18 |
Definition at line 106 of file class.ilWikiStat.php.
Referenced by ilWikiStatGUI\renderGraph().