ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Survey settings db repository. More...
Public Member Functions | |
__construct (\ilDBInterface $db=null, SettingsFactory $set_factory=null) | |
Constructor. More... | |
hasEnded (array $survey_ids) | |
Check if surveys have ended. More... | |
getObjIdsForSurveyIds (array $survey_ids) | |
Check if surveys have ended. More... | |
getAccessSettings (array $survey_ids) | |
Get access settings. More... | |
Protected Member Functions | |
toUnixTS ($date) | |
Unix time from survey date. More... | |
Protected Attributes | |
$db | |
$set_factory | |
Survey settings db repository.
This should wrap all svy_svy calls in the future.
Definition at line 14 of file SettingsDBRepository.php.
ILIAS\Survey\Settings\SettingsDBRepository::__construct | ( | \ilDBInterface | $db = null , |
SettingsFactory | $set_factory = null |
||
) |
Constructor.
Definition at line 29 of file SettingsDBRepository.php.
References ILIAS\Survey\Settings\SettingsDBRepository\$db, $DIC, and ILIAS\Survey\Settings\SettingsDBRepository\$set_factory.
ILIAS\Survey\Settings\SettingsDBRepository::getAccessSettings | ( | array | $survey_ids | ) |
Get access settings.
int[] | $survey_ids |
Definition at line 110 of file SettingsDBRepository.php.
References ILIAS\Survey\Settings\SettingsDBRepository\$db, and ILIAS\Survey\Settings\SettingsDBRepository\toUnixTS().
ILIAS\Survey\Settings\SettingsDBRepository::getObjIdsForSurveyIds | ( | array | $survey_ids | ) |
Check if surveys have ended.
int[] | $survey_ids survey IDs |
Definition at line 71 of file SettingsDBRepository.php.
References ILIAS\Survey\Settings\SettingsDBRepository\$db.
ILIAS\Survey\Settings\SettingsDBRepository::hasEnded | ( | array | $survey_ids | ) |
Check if surveys have ended.
int[] | $survey_ids survey IDs |
Definition at line 48 of file SettingsDBRepository.php.
References ILIAS\Survey\Settings\SettingsDBRepository\$db, and ILIAS\Survey\Settings\SettingsDBRepository\toUnixTS().
|
protected |
Unix time from survey date.
string |
Definition at line 94 of file SettingsDBRepository.php.
Referenced by ILIAS\Survey\Settings\SettingsDBRepository\getAccessSettings(), and ILIAS\Survey\Settings\SettingsDBRepository\hasEnded().
|
protected |
Definition at line 19 of file SettingsDBRepository.php.
Referenced by ILIAS\Survey\Settings\SettingsDBRepository\__construct(), ILIAS\Survey\Settings\SettingsDBRepository\getAccessSettings(), ILIAS\Survey\Settings\SettingsDBRepository\getObjIdsForSurveyIds(), and ILIAS\Survey\Settings\SettingsDBRepository\hasEnded().
|
protected |
Definition at line 24 of file SettingsDBRepository.php.
Referenced by ILIAS\Survey\Settings\SettingsDBRepository\__construct().