| 
|   | getId () | 
|   | 
|   | getTitle () | 
|   | 
|   | getDescription () | 
|   | 
|   | getDefaultScheduleType () | 
|   | 
|   | getDefaultScheduleValue () | 
|   | 
|   | hasAutoActivation () | 
|   | 
|   | hasFlexibleSchedule () | 
|   | 
|   | hasCustomSettings () | 
|   | 
|   | run () | 
|   | 
|   | addCustomSettingsToForm (ilPropertyFormGUI $a_form) | 
|   | 
|   | saveCustomSettings (ilPropertyFormGUI $a_form) | 
|   | 
|   | setDateTimeProvider (?Closure $date_time_provider) | 
|   | 
|   | isDue (?DateTimeImmutable $last_run, ?CronJobScheduleType $schedule_type, ?int $schedule_value, bool $is_manually_executed=false) | 
|   | 
|   | getScheduleType () | 
|   | Get current schedule type (if flexible)  More...
  | 
|   | 
|   | getScheduleValue () | 
|   | Get current schedule value (if flexible)  More...
  | 
|   | 
|   | setSchedule (?CronJobScheduleType $a_type, ?int $a_value) | 
|   | Update current schedule (if flexible)  More...
  | 
|   | 
|   | getAllScheduleTypes () | 
|   | Get all available schedule types.  More...
  | 
|   | 
|   | getScheduleTypesWithValues () | 
|   | 
|   | getValidScheduleTypes () | 
|   | Returns a collection of all valid schedule types for a specific job.  More...
  | 
|   | 
|   | isManuallyExecutable () | 
|   | 
|   | hasCustomSettings () | 
|   | 
|   | addCustomSettingsToForm (ilPropertyFormGUI $a_form) | 
|   | 
|   | saveCustomSettings (ilPropertyFormGUI $a_form) | 
|   | 
|   | addToExternalSettingsForm (int $a_form_id, array &$a_fields, bool $a_is_active) | 
|   | 
|   | activationWasToggled (ilDBInterface $db, ilSetting $setting, bool $a_currently_active) | 
|   | Important: This method is (also) called from the setup process, where the constructor of an ilCronJob ist NOT executed.  More...
  | 
|   | 
|   | getId () | 
|   | 
|   | getTitle () | 
|   | 
|   | getDescription () | 
|   | 
|   | hasAutoActivation () | 
|   | Is to be activated on "installation", does only work for ILIAS core cron jobs.  More...
  | 
|   | 
|   | hasFlexibleSchedule () | 
|   | 
|   | getDefaultScheduleType () | 
|   | 
|   | getDefaultScheduleValue () | 
|   | 
|   | run () | 
|   | 
◆ addCustomSettingsToForm()
      
        
          | ilCronDeleteInactivatedUserAccounts::addCustomSettingsToForm  | 
          ( | 
          ilPropertyFormGUI  | 
          $a_form | ) | 
           | 
        
      
 
Definition at line 161 of file class.ilCronDeleteInactivatedUserAccounts.php.
References ilPropertyFormGUI\addItem(), ANONYMOUS_ROLE_ID, ILIAS\Repository\lng(), ILIAS\Repository\objectDataCache(), ilFormPropertyGUI\setInfo(), and ILIAS\Repository\settings().
  164             $this->
lng->txt(
'delete_inactivated_user_accounts_include_roles'),
   165             'cron_inactivated_user_delete_include_roles'   167         $sub_mlist->
setInfo($this->
lng->txt(
'delete_inactivated_user_accounts_include_roles_desc'));
   169         foreach ($this->rbac_review->getGlobalRoles() as $role_id) {
   174         $sub_mlist->setOptions($roles);
   175         $setting = $this->
settings->get(
'cron_inactivated_user_delete_include_roles', null);
   176         if ($setting === null) {
   179             $setting = explode(
',', $setting);
   181         $sub_mlist->setValue($setting);
   182         $sub_mlist->setWidth(300);
   186             $this->
lng->txt(
'delete_inactivated_user_accounts_period'),
   187             'cron_inactivated_user_delete_period'   189         $sub_text->allowDecimals(
false);
   190         $sub_text->setInfo($this->
lng->txt(
'delete_inactivated_user_accounts_period_desc'));
   193                 'cron_inactivated_user_delete_period',
   194                 (
string) self::DEFAULT_INACTIVITY_PERIOD
   197         $sub_text->setSize(4);
   198         $sub_text->setMaxLength(4);
   199         $sub_text->setRequired(
true);
 
 
 
 
◆ getDefaultScheduleType()
      
        
          | ilCronDeleteInactivatedUserAccounts::getDefaultScheduleType  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getDefaultScheduleValue()
      
        
          | ilCronDeleteInactivatedUserAccounts::getDefaultScheduleValue  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getDescription()
      
        
          | ilCronDeleteInactivatedUserAccounts::getDescription  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getId()
      
        
          | ilCronDeleteInactivatedUserAccounts::getId  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getTitle()
      
        
          | ilCronDeleteInactivatedUserAccounts::getTitle  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ hasAutoActivation()
      
        
          | ilCronDeleteInactivatedUserAccounts::hasAutoActivation  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ hasCustomSettings()
      
        
          | ilCronDeleteInactivatedUserAccounts::hasCustomSettings  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ hasFlexibleSchedule()
      
        
          | ilCronDeleteInactivatedUserAccounts::hasFlexibleSchedule  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ run()
      
        
          | ilCronDeleteInactivatedUserAccounts::run  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ saveCustomSettings()
Definition at line 203 of file class.ilCronDeleteInactivatedUserAccounts.php.
References ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ILIAS\Repository\settings().
  205         $roles = implode(
',', $this->
http->wrapper()->post()->retrieve(
   206             'cron_inactivated_user_delete_include_roles',
   208                 $this->refinery->kindlyTo()->listOf($this->
refinery->kindlyTo()->int()),
   213         $period = $this->
http->wrapper()->post()->retrieve(
   214             'cron_inactivated_user_delete_period',
   216                 $this->refinery->kindlyTo()->int(),
   221         $this->
settings->set(
'cron_inactivated_user_delete_include_roles', $roles);
   222         $this->
settings->set(
'cron_inactivated_user_delete_period', (
string) ($period ?? self::DEFAULT_INACTIVITY_PERIOD));
 
static http()
Fetches the global http state from ILIAS. 
 
 
 
 
◆ $http
  
  
      
        
          | ILIAS HTTP GlobalHttpState ilCronDeleteInactivatedUserAccounts::$http | 
         
       
   | 
  
private   | 
  
 
 
◆ $include_roles
  
  
      
        
          | array ilCronDeleteInactivatedUserAccounts::$include_roles | 
         
       
   | 
  
private   | 
  
 
 
◆ $lng
  
  
      
        
          | ilLanguage ilCronDeleteInactivatedUserAccounts::$lng | 
         
       
   | 
  
private   | 
  
 
 
◆ $objectDataCache
◆ $period
  
  
      
        
          | int ilCronDeleteInactivatedUserAccounts::$period | 
         
       
   | 
  
private   | 
  
 
 
◆ $rbac_review
  
  
      
        
          | ilRbacReview ilCronDeleteInactivatedUserAccounts::$rbac_review | 
         
       
   | 
  
private   | 
  
 
 
◆ $refinery
  
  
      
        
          | ILIAS Refinery Factory ilCronDeleteInactivatedUserAccounts::$refinery | 
         
       
   | 
  
private   | 
  
 
 
◆ $settings
  
  
      
        
          | ilSetting ilCronDeleteInactivatedUserAccounts::$settings | 
         
       
   | 
  
private   | 
  
 
 
◆ DEFAULT_INACTIVITY_PERIOD
  
  
      
        
          | const ilCronDeleteInactivatedUserAccounts::DEFAULT_INACTIVITY_PERIOD = 365 | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: