Dotclear 2.24
|
Public Member Functions | |
__construct (string $type) | |
userOptions (?string $option=null) | |
values (bool $escape=false, bool $ui_only=false) | |
value (string $id, ?string $undefined=null) | |
__get (string $id) | |
add ($filter=null, $value=null) | |
remove (string $id) | |
params () | |
show (bool $set=false) | |
js (string $reset_url='') | |
display ($adminurl, string $extra='') | |
Protected Member Functions | |
parseOptions () | |
Protected Attributes | |
$type | |
$filters = [] | |
$show = false | |
$has_user_pref = false | |
__construct | ( | string | $type | ) |
Constructs a new instance.
string | $type | The filter form main id |
Reimplemented in adminMediaFilter.
References $type, and parseOptions().
userOptions | ( | ?string | $option = null | ) |
Get user defined filter options (sortby, order, nb)
string | $option | The option |
References adminUserPref\getUserFilters().
Referenced by parseOptions().
|
protected |
Parse _GET user pref options (sortby, order, nb)
References dcAdminCombos\getOrderCombo(), adminUserPref\getUserFilters(), show(), and userOptions().
Referenced by __construct().
values | ( | bool | $escape = false , |
bool | $ui_only = false |
||
) |
Get filters key/value pairs
boolean | $escape | Escape widlcard % |
boolean | $ui_only | Limit to filters with ui |
Referenced by adminMediaPage\breadcrumb(), adminMediaFilter\legacyBehavior(), adminMediaList\mediaLine(), and params().
value | ( | string | $id, |
?string | $undefined = null |
||
) |
__get | ( | string | $id | ) |
Magic get filter value
string | $id | The filter id |
References value().
add | ( | $filter = null , |
|
$value = null |
|||
) |
Add filter(s)
array | string | dcAdminFilter | null | $filter | The filter(s) array or id or object |
mixed | $value | The filter value if $filter is id |
Referenced by adminCommentFilter\__construct(), adminUserFilter\__construct(), adminBlogFilter\__construct(), adminMediaFilter\__construct(), adminPostFilter\__construct(), add(), and adminMediaFilter\legacyBehavior().
remove | ( | string | $id | ) |
Remove a filter
string | $id | The filter id |
show | ( | bool | $set = false | ) |
Show foldable filters form
boolean | $set | Force to show filter form |
Referenced by add(), adminMediaList\display(), js(), parseOptions(), and show().
js | ( | string | $reset_url = '' | ) |
Get js filters foldable form control
string | $reset_url | The filter reset url |
References dcPage\jsFilterControl(), dcPage\jsJson(), and show().
display | ( | $adminurl, | |
string | $extra = '' |
||
) |
Echo filter form
array | string | $adminurl | The registered adminurl |
string | $extra | The extra contents |
References dcCore\app(), form\hidden(), formLabel\INSIDE_TEXT_AFTER, formLabel\OUTSIDE_LABEL_BEFORE, and value().
|
protected |
|
protected |
|
protected |