|
Stud.IP
4.1 Revision
|

Public Member Functions | |
| setFilter ($type, $value) | |
| execute ($flags=null) | |
| clearFilters () | |
Static Public Member Functions | |
| static | addType ($name, $values_callback, $filter_callback) |
| static | getValuesForType ($type) |
Data Fields | |
| const | USE_CACHE = false |
| const | CACHE_DURATION = 3600 |
| const | FLAG_SORT_NAME = 1 |
| const | FLAG_RETURN_FULL_INFO = 2 |
| const | USE_COMBINED_STUDYGROUP_FILTER = 'use-combined-studygroup-filter' |
Protected Member Functions | |
| getFilters () | |
Static Protected Member Functions | |
| static | fachValues () |
| static | abschlussValues () |
| static | fachsemesterValues () |
| static | institutFilter ($needles) |
| static | institutValues () |
| static | statusFilter ($needles) |
| static | statusValues () |
| static | domainFilter ($needles) |
| static | domainValues () |
Static Protected Attributes | |
| static | $types |
|
staticprotected |
Return all studydegrees

|
static |
Adds or updates a filter criterion the global set of criteria.
| string | $name | Name of the criterion type |
| callback | $values_callback | Callback for the type's values |
| callback | $filter_callback | Actual filter callback for a defined set of needles |
| clearFilters | ( | ) |
Clears all defined filters.
|
staticprotected |
Return all users with a matching domain given in $needles
| array | $needles | List of domain ids to filter against |

|
staticprotected |
Return all valid domains

| execute | ( | $flags = null | ) |
Executes the actual lookup by executing all individual filter types and returning the intersection of all according result sets.
Possible flags:
| int | $flags | Optional set of flags as seen above |

|
staticprotected |
Create a array with all possible values for studysemesters

|
staticprotected |
Return all studycourses

|
protected |

|
static |
Returns all valid values for a certain criterion type.
| string | $type | Name of the criterion type |


|
staticprotected |
Return all users with a matching institut_id given in $needles
| array | $needles | List of institut ids to filter against |

|
staticprotected |
Return all faculty's and instituts

| setFilter | ( | $type, | |
| $value | |||
| ) |
Adds another type filter to the set of current filters.
Multiple filters for the same filter type result in an AND filter within this type while multiple filters across filter types result in an OR filter across these types.
| string | $type | Type of filter to add |
| string | $value | Value to filter against |
|
staticprotected |
Return all users with a matching status given in $needles
| array | $needles | List of statusses to filter against |

|
staticprotected |
Return all valid statusses
|
staticprotected |
| const CACHE_DURATION = 3600 |
| const FLAG_RETURN_FULL_INFO = 2 |
| const FLAG_SORT_NAME = 1 |
| const USE_CACHE = false |
| const USE_COMBINED_STUDYGROUP_FILTER = 'use-combined-studygroup-filter' |