|
Stud.IP
2.4 Revision 48548
|

Static Public Member Functions | |
| static | existSeminars () |
| static | checkSeminar ($seminar_id) |
| static | saveSeminar ($seminar_id, $status) |
| static | updateSeminar ($seminar_id, $status, $remove=false) |
| static | deleteSeminar ($seminar_id) |
| static | getAllSeminars ($only_sem_id=false) |
| static | getSeminar ($seminar_id) |
| static | saveAutoInsertUser ($seminar_id, $user_id) |
| static | checkAutoInsertUser ($seminar_id, $user_id) |
| static | checkNewUser ($status, $user_id) |
| static | checkOldUser ($old_status, $new_status, $user_id) |
AutoInsert.class.php Provides functions required by StEP00216:
Example of use:
|
static |
Tests whether a user was already automatically registered for a certain seminar.
| string | $seminar_id | Id of the seminar |
| string | $user_id | If of the user |


|
static |
Checks whether a user is already automatically registered for all seminars according to his status. PLEASE NOTE: The user will be registered in all seminars he's not yet registered in.
| string | $status | Current user status |
| string | $user_id | Id of the user |


|
static |
Checks whether a user is already automatically registered for all seminars according to his changed status. PLEASE NOTE: The user will be registered in all seminars he's not yet registered in.
| string | $old_status | Old user status |
| string | $new_status | Current user status |
| string | $user_id | Id of the user |


|
static |
Tests if a seminar already has an autoinsert record
| string | $seminar_id | Id of the seminar |


|
static |
Removes a seminar from the autoinsertion process.
| string | $seminar_id | Id of the seminar |


|
static |
Check if at least one seminar is used by the autoinsert functions

|
static |
Returns a list of all seminars enabled for autoinsertion
| bool | Indicates whether only the seminar ids (true) or the full dataset shall be returned (false) |


|
static |
Returns a seminar's info for autoinsertion
| string | $seminar_id | Id of the seminar |

|
static |
Store the user's automatic registration in a seminar redundantly to avoid an annoying reregistration although the user explicitely left the according seminar
| string | $user_id | Id of the user |
| string | $seminar_id | Id of the seminar |


|
static |
Enables a seminar for autoinsertion of users with the given status(ses)
| string | $seminar_id | Id of the seminar |
| mixed | $status | Either a single string or an array of strings containing the status(ses) to enable for autoinsertion |


|
static |
Updates an autoinsert record for a given seminar, dependent on the parameter $remove it either inserts or removes the record for the given parameters
| string | $seminar_id | Id of the seminar |
| string | $status | Status for autoinsertion |
| bool | $remove | Whether the record should be added or removed |

