Stud.IP  3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
UserFilter Class Reference
Collaboration diagram for UserFilter:
Collaboration graph

Public Member Functions

 __construct ($conditionId='')
 addField ($field)
 delete ()
 generateId ()
 getFields ()
 getId ()
 getUsers ()
 hasField ($className)
 isFulfilled ($userId)
 load ()
 removeField ($fieldId)
 store ()
 toString ()
 __toString ()

Data Fields

 $fields = array()
 $id = ''
 $show_user_count = false

Constructor & Destructor Documentation

__construct (   $conditionId = '')

Standard constructor.

Parameters
StringconditionId
Returns
UserFilter

Here is the call graph for this function:

Member Function Documentation

__toString ( )

Here is the call graph for this function:

addField (   $field)

Add a new condition field.

Parameters
ConditionFieldfieldId
Returns
UserFilter
delete ( )

Deletes the condition and all associated fields.

Here is the call graph for this function:

generateId ( )

Generate a new unique ID.

Parameters
StringtableName

Here is the call graph for this function:

Here is the caller graph for this function:

getFields ( )

Get all fields (without checking for validity according to the current time).

Returns
Array
getId ( )

Get ID.

Returns
String
getUsers ( )

Gets all users that fulfill the current condition.

Returns
Array

Here is the call graph for this function:

hasField (   $className)

Checks whether the current filter object contains a field of the given type.

Parameters
String$classNamethe type to check for
Returns
UserFilterField Return the found field or null if not applicable.

Here is the caller graph for this function:

isFulfilled (   $userId)

Is the current condition fulfilled (that means, are all required field values matched)?

Returns
boolean
load ( )

Helper function for loading data from DB.

Here is the call graph for this function:

Here is the caller graph for this function:

removeField (   $fieldId)

Removes the field with the given ID from the condition fields.

Parameters
StringfieldId
Returns
UserFilter
store ( )

Stores data to DB.

Here is the call graph for this function:

toString ( )

Here is the caller graph for this function:

Field Documentation

$fields = array()

All condition fields that form this condition.

$id = ''

Unique identifier for this condition.

$show_user_count = false

The documentation for this class was generated from the following file: