| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Inheritance diagram for ilStudyProgrammeSettingsDBRepository:
 Collaboration diagram for ilStudyProgrammeSettingsDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db) | |
| createFor (int $obj_id) | |
| Create a record corresponding to a SP-Object and return representing settings.Will throw if a record allready exists.  More... | |
| get (int $obj_id) | |
| Load settings belonging to a SP-Object.Will throw if the record does not exist yet.  More... | |
| update (ilStudyProgrammeSettings $settings) | |
| Update settings belonging to a SP-Object.Will throw if the record does not exist yet.  More... | |
| delete (ilStudyProgrammeSettings $settings) | |
| Delete record corresponding to settings.Will throw if the record does not exist yet.  More... | |
| loadByType (int $type_id) | |
Load SP settings by assigned type.
  | |
| loadIdsByType (int $type_id) | |
| Load SP setting-ids by assigned type.  More... | |
| getProgrammeIdsWithRiskyToFailSettings () | |
| Programme must be active and have a setting to send mails if the user is at risk to fail completing the progress due to a deadline.  More... | |
| getProgrammeIdsWithMailsForExpiringValidity () | |
| Programme must be active and have a setting to send mails for qualifications about to expire.  More... | |
| getProgrammeIdsWithReassignmentForExpiringValidity () | |
| Programme must be active and have a setting to reassign users when validity expires.  More... | |
Static Public Member Functions | |
| static | clearCache () | 
Protected Member Functions | |
| insertDB (int $obj_id, int $subtype_id, int $status, int $lp_mode, int $points, string $last_change, int $deadline_period, int $vq_period, int $vq_restart_period, string $deadline_date=null, string $vq_date=null, int $rm_nr_by_usr_days=null, int $proc_end_no_success=null, bool $send_re_assigned_mail=false, bool $send_info_to_re_assign_mail=false, bool $send_risky_to_fail_mail=false, bool $vq_restart_recheck=false) | |
| loadDB (int $obj_id) | |
| createByRow (array $row) | |
| deleteDB (int $obj_id) | |
| updateDB (int $obj_id, int $subtype_id, int $status, int $lp_mode, int $points, string $last_change, int $deadline_period, int $vq_period, int $vq_restart_period, string $deadline_date=null, string $vq_date=null, int $rm_nr_by_usr_days=null, int $proc_end_no_success=null, bool $send_re_assigned_mail=false, bool $send_info_to_re_assign_mail=false, bool $send_risky_to_fail_mail=false, bool $vq_restart_recheck=false) | |
| LogicException  More... | |
| checkExists (int $obj_id) | |
Protected Attributes | |
| ilDBInterface | $db | 
Static Protected Attributes | |
| static array | $cache = [] | 
Private Attributes | |
| const | TABLE = 'prg_settings' | 
| const | FIELD_OBJ_ID = 'obj_id' | 
| const | FIELD_SUBTYPE_ID = 'subtype_id' | 
| const | FIELD_STATUS = 'status' | 
| const | FIELD_LP_MODE = 'lp_mode' | 
| const | FIELD_POINTS = 'points' | 
| const | FIELD_LAST_CHANGED = 'last_change' | 
| const | FIELD_DEADLINE_PERIOD = 'deadline_period' | 
| const | FIELD_DEADLINE_DATE = 'deadline_date' | 
| const | FIELD_VALIDITY_QUALIFICATION_DATE = 'vq_date' | 
| const | FIELD_VALIDITY_QUALIFICATION_PERIOD = 'vq_period' | 
| const | FIELD_VQ_RESTART_PERIOD = 'vq_restart_period' | 
| const | FIELD_VQ_RESTART_RECHECK = 'vq_restart_recheck' | 
| const | FIELD_RM_NOT_RESTARTED_BY_USER_DAY = 'rm_nr_by_usr_days' | 
| const | FIELD_PROC_ENDS_NOT_SUCCESSFUL = 'proc_end_no_success' | 
| const | FIELD_SEND_RE_ASSIGNED_MAIL = "send_re_assigned_mail" | 
| const | FIELD_SEND_INFO_TO_RE_ASSIGN_MAIL = "send_info_to_re_assign_mail" | 
| const | FIELD_SEND_RISKY_TO_FAIL_MAIL = "send_risky_to_fail_mail" | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 21 of file class.ilStudyProgrammeSettingsDBRepository.php.
| ilStudyProgrammeSettingsDBRepository::__construct | ( | ilDBInterface | $db | ) | 
Definition at line 46 of file class.ilStudyProgrammeSettingsDBRepository.php.
References $db.
      
  | 
  protected | 
Definition at line 518 of file class.ilStudyProgrammeSettingsDBRepository.php.
Referenced by deleteDB(), and updateDB().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 533 of file class.ilStudyProgrammeSettingsDBRepository.php.
Referenced by ilStudyProgrammeSettingsRepositoryTest\testPRGRepoEditAndUpdate().
 Here is the caller graph for this function:
      
  | 
  protected | 
| ilException | 
Definition at line 298 of file class.ilStudyProgrammeSettingsDBRepository.php.
References ilStudyProgrammeSettings\DATE_TIME_FORMAT, ilStudyProgrammeSettings\DEFAULT_POINTS, ilStudyProgrammeSettings\DEFAULT_SUBTYPE, ILIAS\Repository\int(), ilStudyProgrammeSettings\NO_DEADLINE, ilStudyProgrammeSettings\NO_RESTART, ilStudyProgrammeSettings\NO_VALIDITY_OF_QUALIFICATION_PERIOD, and ilStudyProgrammeSettings\STATUS_DRAFT.
Referenced by loadByType(), and loadDB().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeSettingsDBRepository::createFor | ( | int | $obj_id | ) | 
Create a record corresponding to a SP-Object and return representing settings.Will throw if a record allready exists.
| ilException | 
Implements ilStudyProgrammeSettingsRepository.
Definition at line 55 of file class.ilStudyProgrammeSettingsDBRepository.php.
References ilStudyProgrammeSettings\DATE_TIME_FORMAT, ilStudyProgrammeSettings\DEFAULT_POINTS, ilStudyProgrammeSettings\DEFAULT_SUBTYPE, insertDB(), ilStudyProgrammeSettings\MODE_UNDEFINED, ilStudyProgrammeSettings\NO_RESTART, ilStudyProgrammeSettings\NO_VALIDITY_OF_QUALIFICATION_PERIOD, and ilStudyProgrammeSettings\STATUS_DRAFT.
Referenced by ilStudyProgrammeSettingsRepositoryTest\testPRGRepoEditAndUpdate().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeSettingsDBRepository::delete | ( | ilStudyProgrammeSettings | $settings | ) | 
Delete record corresponding to settings.Will throw if the record does not exist yet.
Implements ilStudyProgrammeSettingsRepository.
Definition at line 172 of file class.ilStudyProgrammeSettingsDBRepository.php.
References deleteDB().
 Here is the call graph for this function:
      
  | 
  protected | 
| LogicException | 
Definition at line 405 of file class.ilStudyProgrammeSettingsDBRepository.php.
References checkExists().
Referenced by delete().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeSettingsDBRepository::get | ( | int | $obj_id | ) | 
Load settings belonging to a SP-Object.Will throw if the record does not exist yet.
| ilException | 
Implements ilStudyProgrammeSettingsRepository.
Definition at line 104 of file class.ilStudyProgrammeSettingsDBRepository.php.
References ilObject\_lookupType(), and loadDB().
 Here is the call graph for this function:| ilStudyProgrammeSettingsDBRepository::getProgrammeIdsWithMailsForExpiringValidity | ( | ) | 
Programme must be active and have a setting to send mails for qualifications about to expire.
Definition at line 566 of file class.ilStudyProgrammeSettingsDBRepository.php.
References $res, and ilStudyProgrammeSettings\STATUS_ACTIVE.
| ilStudyProgrammeSettingsDBRepository::getProgrammeIdsWithReassignmentForExpiringValidity | ( | ) | 
Programme must be active and have a setting to reassign users when validity expires.
Definition at line 588 of file class.ilStudyProgrammeSettingsDBRepository.php.
References $res, and ilStudyProgrammeSettings\STATUS_ACTIVE.
| ilStudyProgrammeSettingsDBRepository::getProgrammeIdsWithRiskyToFailSettings | ( | ) | 
Programme must be active and have a setting to send mails if the user is at risk to fail completing the progress due to a deadline.
Definition at line 544 of file class.ilStudyProgrammeSettingsDBRepository.php.
References $res, and ilStudyProgrammeSettings\STATUS_ACTIVE.
      
  | 
  protected | 
Definition at line 217 of file class.ilStudyProgrammeSettingsDBRepository.php.
Referenced by createFor().
 Here is the caller graph for this function:| ilStudyProgrammeSettingsDBRepository::loadByType | ( | int | $type_id | ) | 
Load SP settings by assigned type.
| ilException | 
Implements ilStudyProgrammeSettingsRepository.
Definition at line 182 of file class.ilStudyProgrammeSettingsDBRepository.php.
References $q, $res, and createByRow().
 Here is the call graph for this function:
      
  | 
  protected | 
| ilException | LogicException | 
Definition at line 264 of file class.ilStudyProgrammeSettingsDBRepository.php.
References createByRow().
Referenced by get().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeSettingsDBRepository::loadIdsByType | ( | int | $type_id | ) | 
Load SP setting-ids by assigned type.
Implements ilStudyProgrammeSettingsRepository.
Definition at line 212 of file class.ilStudyProgrammeSettingsDBRepository.php.
| ilStudyProgrammeSettingsDBRepository::update | ( | ilStudyProgrammeSettings | $settings | ) | 
Update settings belonging to a SP-Object.Will throw if the record does not exist yet.
Implements ilStudyProgrammeSettingsRepository.
Definition at line 120 of file class.ilStudyProgrammeSettingsDBRepository.php.
References ilStudyProgrammeSettings\DATE_TIME_FORMAT, ilStudyProgrammeSettings\getAssessmentSettings(), ilStudyProgrammeSettings\getAutoMailSettings(), ilStudyProgrammeSettings\getDeadlineSettings(), ilStudyProgrammeSettings\getLastChange(), ilStudyProgrammeSettings\getLPMode(), ilStudyProgrammeSettings\getObjId(), ilStudyProgrammeSettings\getTypeSettings(), ilStudyProgrammeSettings\getValidityOfQualificationSettings(), and updateDB().
 Here is the call graph for this function:
      
  | 
  protected | 
LogicException
Definition at line 419 of file class.ilStudyProgrammeSettingsDBRepository.php.
References checkExists().
Referenced by update().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  staticprotected | 
Definition at line 43 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  protected | 
Definition at line 44 of file class.ilStudyProgrammeSettingsDBRepository.php.
Referenced by __construct().
      
  | 
  private | 
Definition at line 32 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 31 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 30 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 28 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 25 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 29 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 38 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 37 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 40 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 39 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 41 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 27 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 26 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 33 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 34 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 35 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 36 of file class.ilStudyProgrammeSettingsDBRepository.php.
      
  | 
  private | 
Definition at line 23 of file class.ilStudyProgrammeSettingsDBRepository.php.