|
| checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) |
|
◆ __construct()
ilCronDeleteInactivatedUserAccounts::__construct |
( |
| ) |
|
Definition at line 22 of file class.ilCronDeleteInactivatedUserAccounts.php.
References $ilSetting, and array.
26 if (is_object($ilSetting)) {
27 $this->include_roles = $ilSetting->get(
28 'cron_inactivated_user_delete_include_roles',
31 if ($this->include_roles === null) {
32 $this->include_roles =
array();
34 $this->include_roles = explode(
',', $this->include_roles);
37 $this->period = $ilSetting->get(
38 'cron_inactivated_user_delete_period',
39 self::DEFAULT_INACTIVITY_PERIOD
Create styles array
The data for the language used.
◆ addCustomSettingsToForm()
ilCronDeleteInactivatedUserAccounts::addCustomSettingsToForm |
( |
ilPropertyFormGUI |
$a_form | ) |
|
Definition at line 131 of file class.ilCronDeleteInactivatedUserAccounts.php.
References $ilSetting, $lng, ilPropertyFormGUI\addItem(), ilNumberInputGUI\allowDecimals(), array, and ilFormPropertyGUI\setInfo().
135 include_once(
'Services/Form/classes/class.ilMultiSelectInputGUI.php');
137 $lng->txt(
'delete_inactivated_user_accounts_include_roles'),
138 'cron_inactivated_user_delete_include_roles' 140 $sub_mlist->
setInfo($lng->txt(
'delete_inactivated_user_accounts_include_roles_desc'));
142 foreach ($rbacreview->getGlobalRoles() as $role_id) {
143 if ($role_id != ANONYMOUS_ROLE_ID) {
144 $roles[$role_id] = $ilObjDataCache->lookupTitle($role_id);
147 $sub_mlist->setOptions($roles);
148 $setting = $ilSetting->get(
'cron_inactivated_user_delete_include_roles', null);
149 if ($setting === null) {
152 $setting = explode(
',', $setting);
154 $sub_mlist->setValue($setting);
155 $sub_mlist->setWidth(300);
156 #$sub_mlist->setHeight(100); 159 $default_setting = self::DEFAULT_INACTIVITY_PERIOD;
161 $lng->txt(
'delete_inactivated_user_accounts_period'),
162 'cron_inactivated_user_delete_period' 165 $sub_text->setInfo($lng->txt(
'delete_inactivated_user_accounts_period_desc'));
166 $sub_text->setValue($ilSetting->get(
"cron_inactivated_user_delete_period", $default_setting));
167 $sub_text->setSize(4);
168 $sub_text->setMaxLength(4);
169 $sub_text->setRequired(
true);
Create styles array
The data for the language used.
◆ 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 182 of file class.ilCronDeleteInactivatedUserAccounts.php.
References $_POST, and $ilSetting.
186 $setting = implode(
',',
$_POST[
'cron_inactivated_user_delete_include_roles']);
187 if (!strlen($setting)) {
190 $ilSetting->set(
'cron_inactivated_user_delete_include_roles', $setting);
191 $ilSetting->set(
'cron_inactivated_user_delete_period',
$_POST[
'cron_inactivated_user_delete_period']);
◆ $include_roles
ilCronDeleteInactivatedUserAccounts::$include_roles = null |
|
private |
◆ $period
ilCronDeleteInactivatedUserAccounts::$period = null |
|
private |
◆ DEFAULT_INACTIVITY_PERIOD
const ilCronDeleteInactivatedUserAccounts::DEFAULT_INACTIVITY_PERIOD = 365 |
The documentation for this class was generated from the following file: