| [ 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: | 287 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 param: int $default default number of links to display since: 1.8.2 return: int |
| get_page() X-Ref |
| Get the current page number to be displayed since: 1.8.2 return: int |
| 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 since: 1.8.2 return: string |
| get_search_in() X-Ref |
| Get the 'Search In' parameter (one of 'all', 'keyword', 'url', 'title', 'ip') since: 1.8.2 return: string |
| get_sort_by() X-Ref |
| Get the 'Sort by' parameter since: 1.8.2 return: string |
| 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 param: string $param since: 1.8.2 return: string |
| get_sort_order() X-Ref |
| Get the sort order (asc or desc) since: 1.8.2 return: mixed |
| get_click_filter() X-Ref |
| Get the click "more or less than" since: 1.8.2 return: mixed |
| get_click_limit() X-Ref |
| Get the click threshold since: 1.8.2 return: int|string |
| get_date_params() X-Ref |
| Get the date parameters : the date "filter" and the two dates since: 1.8.2 return: array |
| Generated: Wed Nov 5 05:10:36 2025 | Cross-referenced by PHPXref 0.7.1 |