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

Public Member Functions

 __construct ($ruleId='', $courseSetId= '')
 isFCFSallowed ()
 delete ()
 getDistributionTime ()
 getTemplate ()
 load ()
 setAllData ($data)
 setDistributionTime ($newDistributionTime)
 store ()
 toString ()
 validate ($data)
- Public Member Functions inherited from AdmissionRule
 afterSeatDistribution (&$courseset)
 checkTimeFrame ()
 generateId ($tableName)
 getAffectedUsers ()
 getEndTime ()
 getInput ()
 getId ()
 getMessage ()
 getStartTime ()
 beforeSeatDistribution (&$courseset)
 ruleApplies ($userId, $courseId)
 setEndTime ($newEndTime)
 setMessage ($newMessage)
 setStartTime ($newStartTime)
 __toString ()
 isCombinationAllowed ($admission_rule)

Static Public Member Functions

static getDescription ()
static getName ()
- Static Public Member Functions inherited from AdmissionRule
static getAvailableAdmissionRules ($activeOnly=true)
static getInputFrame ()

Data Fields

 $distributionTime = null
 $first_come_first_served_allowed = false
 $allowed_combinations = array('LimitedAdmission','ConditionalAdmission','TimedAdmission')
 $minimum_timespan_to_distribution_time = 120
- Data Fields inherited from AdmissionRule
 $endTime = 0
 $id = ''
 $message = ''
 $default_message = ''
 $startTime = 0
 $courseSetId = ''
 $allowed_combinations = array()

Constructor & Destructor Documentation

__construct (   $ruleId = '',
  $courseSetId = '' 
)

Standard constructor

Parameters
StringruleId

Reimplemented from AdmissionRule.

Here is the call graph for this function:

Member Function Documentation

delete ( )

Deletes the admission rule and all associated data.

Reimplemented from AdmissionRule.

Here is the call graph for this function:

static getDescription ( )
static

Gets some text that describes what this AdmissionRule (or respective subclass) does.

Reimplemented from AdmissionRule.

getDistributionTime ( )

Gets the time for seat distribution algorithm.

Returns
int
static getName ( )
static

Return this rule's name.

Reimplemented from AdmissionRule.

getTemplate ( )

Gets the template that provides a configuration GUI for this rule.

Returns
String

Reimplemented from AdmissionRule.

isFCFSallowed ( )
load ( )

Helper function for loading rule definition from database.

Reimplemented from AdmissionRule.

Here is the call graph for this function:

Here is the caller graph for this function:

setAllData (   $data)

Uses the given data to fill the object values. This can be used as a generic function for storing data if the concrete rule type isn't known in advance.

Parameters
Array$data
Returns
AdmissionRule This object.

Reimplemented from AdmissionRule.

Here is the call graph for this function:

setDistributionTime (   $newDistributionTime)

Sets a new timestamp for seat distribution algorithm execution.

Parameters
intnewDistributionTime
Returns
TimedAdmission

Here is the caller graph for this function:

store ( )

Store rule definition to database.

Reimplemented from AdmissionRule.

Here is the call graph for this function:

toString ( )

A textual description of the current rule.

Returns
String

Reimplemented from AdmissionRule.

validate (   $data)

Validates if the given request data is sufficient to configure this rule (e.g. if required values are present).

Parameters
ArrayRequest data
Returns
Array Error messages.

Reimplemented from AdmissionRule.

Field Documentation

$allowed_combinations = array('LimitedAdmission','ConditionalAdmission','TimedAdmission')
$distributionTime = null

Timestamp for execution of seat distribution algorithm

$first_come_first_served_allowed = false
$minimum_timespan_to_distribution_time = 120

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