|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Collaboration diagram for ILIAS\Survey\Code\CodeManager:Public Member Functions | |
| __construct (CodeDBRepo $code_repo, InternalDataService $data, \ilObjSurvey $survey, InternalDomainService $domain_service, int $user_id) | |
| deleteAll (bool $force=false) | |
| Delete all codes of survey. More... | |
| delete (string $code) | |
| Delete single code. More... | |
| exists (string $code) | |
| Does code exist in survey? More... | |
| add (Code $code) | |
| Saves a survey access code for a registered user to the database. More... | |
| addCodes (int $nr) | |
| Add multiple new codes. More... | |
| updateExternalData (int $code_id, string $email, string $last_name, string $first_name, int $sent) | |
| Update external data of a code. More... | |
| getAll () | |
| Get all access keys of a survey. More... | |
| getAllData () | |
| Get all codes of a survey. More... | |
| bindUser (string $code, int $user_id) | |
| Bind registered user to a code. More... | |
| getByUserId (int $user_id) | |
| Get access key for a registered user. More... | |
| getByCodeId (int $code_id) | |
| getByUserKey (string $user_key) | |
| Get code object for an access key. More... | |
Protected Member Functions | |
| checkPermission () | |
Protected Attributes | |
| int | $survey_ref_id = 0 |
| CodeDBRepo | $code_repo |
| InternalDataService | $data |
| int | $survey_id |
| AccessManager | $access |
| ilLanguage | $lng |
Code manager.
Definition at line 31 of file class.CodeManager.php.
| ILIAS\Survey\Code\CodeManager::__construct | ( | CodeDBRepo | $code_repo, |
| InternalDataService | $data, | ||
| \ilObjSurvey | $survey, | ||
| InternalDomainService | $domain_service, | ||
| int | $user_id | ||
| ) |
Definition at line 40 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\$code_repo, ILIAS\Survey\Code\CodeManager\$data, $user_id, ILIAS\Repository\access(), ILIAS\Survey\InternalDomainService\access(), ilObject\getRefId(), ilObjSurvey\getSurveyId(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\Survey\Code\CodeManager::add | ( | Code | $code | ) |
Saves a survey access code for a registered user to the database.
Definition at line 106 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\$code_repo, ILIAS\Survey\Code\CodeDBRepo\add(), ILIAS\Survey\Code\Code\getCode(), ILIAS\Survey\Code\Code\getEmail(), ILIAS\Survey\Code\Code\getFirstName(), ILIAS\Survey\Code\Code\getLastName(), ILIAS\Survey\Code\Code\getSent(), ILIAS\Survey\Code\Code\getTimestamp(), and ILIAS\Survey\Code\Code\getUserId().
Here is the call graph for this function:| ILIAS\Survey\Code\CodeManager::addCodes | ( | int | $nr | ) |
Add multiple new codes.
| int | $nr | number of codes that should be generated/added |
Definition at line 130 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\checkPermission().
Here is the call graph for this function:| ILIAS\Survey\Code\CodeManager::bindUser | ( | string | $code, |
| int | $user_id | ||
| ) |
Bind registered user to a code.
Definition at line 183 of file class.CodeManager.php.
References ANONYMOUS_USER_ID.
|
protected |
Definition at line 61 of file class.CodeManager.php.
References ILIAS\Repository\access(), and ILIAS\Repository\lng().
Referenced by ILIAS\Survey\Code\CodeManager\addCodes(), ILIAS\Survey\Code\CodeManager\delete(), ILIAS\Survey\Code\CodeManager\deleteAll(), ILIAS\Survey\Code\CodeManager\getAll(), ILIAS\Survey\Code\CodeManager\getAllData(), and ILIAS\Survey\Code\CodeManager\updateExternalData().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Survey\Code\CodeManager::delete | ( | string | $code | ) |
Delete single code.
Definition at line 86 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\$code_repo, ILIAS\Survey\Code\CodeManager\checkPermission(), and ILIAS\Survey\Code\CodeDBRepo\delete().
Here is the call graph for this function:| ILIAS\Survey\Code\CodeManager::deleteAll | ( | bool | $force = false | ) |
Delete all codes of survey.
Definition at line 73 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\$code_repo, ILIAS\Survey\Code\CodeManager\checkPermission(), and ILIAS\Survey\Code\CodeDBRepo\deleteAll().
Here is the call graph for this function:| ILIAS\Survey\Code\CodeManager::exists | ( | string | $code | ) |
Does code exist in survey?
Definition at line 96 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\$code_repo, and ILIAS\Survey\Code\CodeDBRepo\exists().
Here is the call graph for this function:| ILIAS\Survey\Code\CodeManager::getAll | ( | ) |
Get all access keys of a survey.
Definition at line 162 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\checkPermission().
Here is the call graph for this function:| ILIAS\Survey\Code\CodeManager::getAllData | ( | ) |
Get all codes of a survey.
Definition at line 173 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\checkPermission().
Here is the call graph for this function:| ILIAS\Survey\Code\CodeManager::getByCodeId | ( | int | $code_id | ) |
Definition at line 202 of file class.CodeManager.php.
| ILIAS\Survey\Code\CodeManager::getByUserId | ( | int | $user_id | ) |
| ILIAS\Survey\Code\CodeManager::getByUserKey | ( | string | $user_key | ) |
Get code object for an access key.
Definition at line 211 of file class.CodeManager.php.
| ILIAS\Survey\Code\CodeManager::updateExternalData | ( | int | $code_id, |
| string | $email, | ||
| string | $last_name, | ||
| string | $first_name, | ||
| int | $sent | ||
| ) |
Update external data of a code.
Definition at line 140 of file class.CodeManager.php.
References ILIAS\Survey\Code\CodeManager\checkPermission().
Here is the call graph for this function:
|
protected |
Definition at line 37 of file class.CodeManager.php.
|
protected |
Definition at line 34 of file class.CodeManager.php.
Referenced by ILIAS\Survey\Code\CodeManager\__construct(), ILIAS\Survey\Code\CodeManager\add(), ILIAS\Survey\Code\CodeManager\delete(), ILIAS\Survey\Code\CodeManager\deleteAll(), and ILIAS\Survey\Code\CodeManager\exists().
|
protected |
Definition at line 35 of file class.CodeManager.php.
Referenced by ILIAS\Survey\Code\CodeManager\__construct().
|
protected |
Definition at line 38 of file class.CodeManager.php.
|
protected |
Definition at line 36 of file class.CodeManager.php.
|
protected |
Definition at line 33 of file class.CodeManager.php.