[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Enhance tiki filter
"Elifeleti Mukisa Dan \(@Danelif\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <691dc7e599dd5_2a371d9c46343@gitlab-sidekiq-low-urgency-cpu-bound-v2-cbb4bb8f8-4plvv.mail> |
Elifeleti Mukisa Dan pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
6ef560ab by Espoir Baraka at 2025-11-19T13:28:24+00:00
[ENH] Enhance tiki filter
---
* [ENH] Enhance tiki filter
See merge request tikiwiki/tiki!9063
- - - - -
4 changed files:
- tiki-view_forum.php
- tiki-view_sheets.php
- tiki-view_tracker.php
- tiki-view_tracker_item.php
Changes:
=====================================
tiki-view_forum.php
=====================================
@@ -15,33 +15,43 @@ $inputConfiguration = [
'forumId' => 'int', //post
'comments_threadId' => 'int', //post
'comments_title' => 'topicname', //post
- 'openpost' => 'word', //post
- 'sort_mode' => 'word', //get
- 'report' => 'int', //get
- 'remove_attachment' => 'int', //get
- 'lock' => 'bool', //get
- 'comments_threshold' => 'int', //post
- 'comments_postComment' => 'bool', //post
- 'comments_vote' => 'word', //get
- 'comments_remove' => 'none', //get
- 'comments_data' => 'xss', //post
- 'comment_topictype' => 'word', //post
- 'comment_topicsummary' => 'word', //post
- 'comments_previewComment' => 'bool', //post
- 'comments_per_page' => 'int', //get
- 'thread_sort_mode' => 'word', //get
- 'comments_commentFind' => 'word', //post
- 'comments_offset' => 'int', //get
- 'comments_parentId' => 'int', //get
- 'time_control' => 'word', //post
- 'show_archived' => 'int', //post
- 'poster' => 'word', //post
- 'filter_type' => 'word', //post
- 'watch_event' => 'word', //post
- 'watch_action' => 'word', //post
- 'watch_object' => 'int', //post
- 'freetag_string' => 'string', //get
- ]
+ 'openpost' => 'alpha', //get/post
+ 'sort_mode' => 'alnumdash', //get
+ 'report' => 'int', //get
+ 'remove_attachment' => 'int', //get
+ 'lock' => 'alpha', //get
+ 'comments_threshold' => 'int', //get/post
+ 'comments_postComment' => 'bool', //post
+ 'comments_postCancel' => 'bool', //post
+ 'comments_vote' => 'int', //get
+ 'comments_remove' => 'none', //get
+ 'comments_data' => 'xss', //post
+ 'comment_topictype' => 'alpha', //post
+ 'comment_topicsummary' => 'text', //post
+ 'comment_topicsmiley' => 'text', //post
+ 'comment_password' => 'password', //post
+ 'comments_previewComment' => 'bool', //post
+ 'comments_per_page' => 'int', //get
+ 'thread_sort_mode' => 'alnumdash', //get/post
+ 'comments_commentFind' => 'text', //post
+ 'comments_offset' => 'int', //get/post
+ 'comments_parentId' => 'int', //get
+ 'time_control' => 'int', //post
+ 'show_archived' => 'bool', //post
+ 'poster' => 'text', //post
+ 'filter_type' => 'word', //post
+ 'reply_state' => 'text', //post
+ 'watch_event' => 'word', //post
+ 'watch_action' => 'word', //post
+ 'watch_object' => 'int', //post
+ 'freetag_string' => 'string', //post
+ 'anonymous_email' => 'email', //post
+ 'anonymous_name' => 'text', //post
+ 'set_thread_watch' => 'alpha', //post
+ ],
+ 'staticKeyFiltersForArrays' => [
+ 'forumtopic' => 'int', //post
+ ],
],
];
require_once('tiki-setup.php');
=====================================
tiki-view_sheets.php
=====================================
@@ -19,16 +19,16 @@ $inputConfiguration = [
'staticKeyFilters' => [
'sheetId' => 'int', //get
'file' => 'word', //get
- 'fileId' => 'word', //get
+ 'fileId' => 'int', //get
'page' => 'page', //get
'height' => 'int', //get
- 'parse' => 'word', //get
+ 'parse' => 'alpha', //get
's' => 'string', //get
'readdate' => 'int', //get
- 'relate' => 'int', //get
+ 'relate' => 'alpha', //get
'trackerId' => 'int', //get
'childSheetId' => 'int', //get
- 'sheetonly' => 'bool', //get
+ 'sheetonly' => 'alpha', //get
]
],
];
=====================================
tiki-view_tracker.php
=====================================
@@ -17,10 +17,10 @@ $inputConfiguration = [
'show' => 'word', //get
'cookietab' => 'word', //get
'new' => 'word', //get
- 'my' => 'word', //get
+ 'my' => 'username', //get
'ours' => 'word', //get
'status' => 'word', //get
- 'sort_mode' => 'word', //get
+ 'sort_mode' => 'alnumdash', //get
'remove' => 'int', //get
'force' => 'bool', //get
'batchaction' => 'word', //get
=====================================
tiki-view_tracker_item.php
=====================================
@@ -22,12 +22,12 @@ $inputConfiguration = [
'grouptracker' => 'bool', //get
'group' => 'groupname', //get
'offset' => 'int', //get
- 'sort_mode' => 'word', //get
- 'find' => 'word', //post
+ 'sort_mode' => 'alnumdash', //get
+ 'find' => 'text', //post
'filterfield' => 'word', //get
'filtervalue' => 'word', //get
'exactvalue' => 'word', //get
- 'reloff' => 'word', //get
+ 'reloff' => 'int', //get
'move' => 'word', //get
'count' => 'int', //get
'remove' => 'int', //post
@@ -54,6 +54,11 @@ $inputConfiguration = [
'attach_longdesc' => 'word', //get
'status' => 'word', //get
'conflictoverride' => 'bool', //get
+ 'editattach' => 'int', //get
+ 'vi_tpl' => 'text', //get
+ 'ei_tpl' => 'text', //get
+ 'maxRecords' => 'int', //get
+ 'initial' => 'text', //get
]
],
];
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/6ef560abc51fadfb80407bfce3397b6049b50e1a
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/6ef560abc51fadfb80407bfce3397b6049b50e1a
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs