Stud.IP
6.0
|
Public Member Functions | |
isFiltering () | |
getCategory () | |
setCategory ($category) | |
hasCategory () | |
getSemester () | |
setSemester (\Semester $semester=null) | |
hasSemester () | |
validate () | |
toArray () | |
Static Public Member Functions | |
static | getCategories () |
Protected Attributes | |
$category | |
$semester | |
Simple class to hold everything about files search's filtering.
GPL2 or any later version
|
static |
Returns all filter categories.
id
=> label
pairs getCategory | ( | ) |
Return the active filter category.
getSemester | ( | ) |
Return the active filter semester.
hasCategory | ( | ) |
Is a an active filter category set?
hasSemester | ( | ) |
Is a an active filter semester set?
isFiltering | ( | ) |
Is this filter really filtering?
setCategory | ( | $category | ) |
Set the active filter category.
string | $category | the active filter category |
$this
for chaining setSemester | ( | \Semester | $semester = null | ) |
toArray | ( | ) |
Returns a representation of this filter as an array.
validate | ( | ) |
Validate the filter.
|
protected |
|
protected |