class SearchHelper

搜素排序

Methods

static string
key(string $default_order, array $allowed = [], string $input_key = '_order')

获取排序的key

static string
order(string $key = '_order')

排序类型

Details

at line 19
static string key(string $default_order, array $allowed = [], string $input_key = '_order')

获取排序的key

Parameters

string $default_order 默认的排序
array $allowed 允许的key
string $input_key 默认的input键

Return Value

string

at line 45
static string order(string $key = '_order')

排序类型

Parameters

string $key key

Return Value

string