Stud.IP
5.4
|
Public Member Functions | |
__construct () | |
saveUser ($user_id, $status=false) | |
Static Public Member Functions | |
static | instance () |
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) |
Static Protected Member Functions | |
static | getSeminarCache () |
Static Protected Attributes | |
static | $seminar_cache = null |
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 |
|
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 |
|
staticprotected |
Returns the cache for seminars.
|
static |
|
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.
string | $user_id | |
bool | $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 |
|
staticprotected |