|
Stud.IP
3.1 Revision 48552
|

Public Member Functions | |
| instance () | |
| __construct () | |
| saveUser ($user_id, $status=FALSE) | |
| deleteUserSeminare ($user_id) | |
Static Public Member Functions | |
| static | existSeminars () |
| static | checkSeminar ($seminar_id, $domain_id=FALSE) |
| static | saveSeminar ($seminar_id, $status, $domain_id) |
| static | updateSeminar ($seminar_id, $domain= '', $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) |
AutoInsert.class.php Provides functions required by StEP00216:
Example of use:
| __construct | ( | ) |
|
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 |
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 |


| deleteUserSeminare | ( | $user_id | ) |
| type | $user_id |

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

| instance | ( | ) |

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


| saveUser | ( | $user_id, | |
$status = FALSE |
|||
| ) |
Trägt den Benutzer in den Eingestellten veranstaltungen automatisch ein.
| type | $user_id | |
| type | $status | Wenn Status nicht angegeben wird, wird der Status des Users aus user_id genommen |

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

