|
Stud.IP
2.4 Revision 48548
|

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 |
Static Protected Member Functions | |
| static | arrayQuery ($query, $values) |
| static | fachFilter ($needles) |
| static | fachValues () |
| static | abschlussFilter ($needles) |
| static | abschlussValues () |
| static | fachsemesterFilter ($needles) |
| static | fachsemesterValues () |
| static | institutFilter ($needles) |
| static | institutValues () |
| static | statusFilter ($needles) |
| static | statusValues () |
Static Protected Attributes | |
| static | $types |
UserLookup.class.php provides an easy way to look up user ids by certain filter criteria
Example of use:
|
staticprotected |
Return all user with matching abschluss_id in $needles
| array | $needles | List of abschluss ids to filter against |

|
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 |
|
staticprotected |
Convenience method to query over an array via ".. WHERE x IN (<array>)". Any ?? is substituted by the array of values.
| string | $query | The query to execute |
| array | $values | Array containing the values to search for |


| clearFilters | ( | ) |
Clears all defined filters.
| 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 |
Return all user with matching studiengang_id in $needles
| array | $needles | List of studiengang ids to filter against |

|
staticprotected |
Return all users with a matching fachsemester given in $needles
| array | $needles | List of fachsemesters to filter against |

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

|
staticprotected |
Return all studycourses

|
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 |