[ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
Parameters used to display links the admin view (eg admin/index.php)
File Size: | 280 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
AdminParams:: (11 methods):
__construct()
get_per_page()
get_page()
get_search()
get_search_in()
get_sort_by()
get_param_long_name()
get_sort_order()
get_click_filter()
get_click_limit()
get_date_params()
Class: AdminParams - X-Ref
Class AdminParams to get admin view parameters (number of links to display, search, ...)__construct() X-Ref |
Admin constructor : populate all default parameters |
get_per_page(int $default) X-Ref |
Get the number of links to display per page return: int param: int $default default number of links to display since: 1.8.2 |
get_page() X-Ref |
Get the current page number to be displayed return: int since: 1.8.2 |
get_search() X-Ref |
Get search text (the 'Search for') from query string variables search_protocol, search_slashes and search Some servers don't like query strings containing "(ht|f)tp(s)://". A javascript bit explodes the search text into protocol, slashes and the rest (see JS function split_search_text_before_search()) and this function glues pieces back together See issue https://github.com/YOURLS/YOURLS/issues/1576 return: string since: 1.8.2 |
get_search_in() X-Ref |
Get the 'Search In' parameter (one of 'all', 'keyword', 'url', 'title', 'ip') return: string since: 1.8.2 |
get_sort_by() X-Ref |
Get the 'Sort by' parameter return: string since: 1.8.2 |
get_param_long_name(string $param) X-Ref |
Get the correct phrasing associated to a search or sort parameter (ie 'all' -> 'All fields' for instance) No checks : you need to supply an existing parameter, see $params_translations return: string param: string $param since: 1.8.2 |
get_sort_order() X-Ref |
Get the sort order (asc or desc) return: mixed since: 1.8.2 |
get_click_filter() X-Ref |
Get the click "more or less than" return: mixed since: 1.8.2 |
get_click_limit() X-Ref |
Get the click threshold return: int|string since: 1.8.2 |
get_date_params() X-Ref |
Get the date parameters : the date "filter" and the two dates return: array since: 1.8.2 |
Generated: Sat Feb 22 05:10:06 2025 | Cross-referenced by PHPXref 0.7.1 |