Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
DatafieldCondition Class Reference
Inheritance diagram for DatafieldCondition:
UserFilterField

Public Member Functions

 __construct ($typeparam, $fieldId= '')
 
 getName ()
 
 getUsers ($restrictions=[])
 
 getUserValues ($userId, $additional=null)
 
 load ()
 
 setValue ($newValue)
 
 store ()
 
- Public Member Functions inherited from UserFilterField
 __construct ($fieldId= '')
 
 checkValue ($values)
 
 delete ()
 
 generateId ()
 
 getCompareOperator ()
 
 getCompareOperatorAsText ()
 
 getId ()
 
 getName ()
 
 getUsers ($restrictions=[])
 
 getUserValues ($userId, $additional=null)
 
 getValidCompareOperators ()
 
 getValidValues ()
 
 getValue ()
 
 load ()
 
 setCompareOperator ($newOperator)
 
 setConditionId ($id)
 
 setValue ($newValue)
 
 store ()
 
 __clone ()
 

Static Public Member Functions

static getParameterizedTypes ()
 
- Static Public Member Functions inherited from UserFilterField
static getParameterizedTypes ()
 
static getAvailableFilterFields ()
 

Data Fields

 $datafield_id
 
 $null_yields
 
 $datafield_name
 
 $sortOrder = 6
 
- Data Fields inherited from UserFilterField
 $compareOperator = ''
 
 $conditionId = ''
 
 $id = ''
 
 $validCompareOperators = []
 
 $validValues = []
 
 $value = null
 
 $sortOrder = 99
 
 $valuesDbTable = ''
 
 $valuesDbIdField = ''
 
 $valuesDbNameField = ''
 
 $userDataDbTable = ''
 
 $userDataDbField = ''
 
 $relations = []
 

Static Public Attributes

static $isParameterized = true
 
- Static Public Attributes inherited from UserFilterField
static $isParameterized = false
 

Constructor & Destructor Documentation

__construct (   $typeparam,
  $fieldId = '' 
)

Member Function Documentation

getName ( )

Get this field's display name.

Returns
String
static getParameterizedTypes ( )
static
getUsers (   $restrictions = [])
getUserValues (   $userId,
  $additional = null 
)

Gets the value for the given user that is relevant for this

Parameters
String$userIdUser to check.
Array$additionaladditional conditions that are required for check.
Returns
array The value(s) for this user.
load ( )

Helper function for loading data from DB.

setValue (   $newValue)

Sets a new selected value.

Parameters
StringnewValue
Returns
UserFilterField
store ( )

Stores data to DB.

Field Documentation

$datafield_id
$datafield_name
$isParameterized = true
static
$null_yields
$sortOrder = 6

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