ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLearningModuleCronLinkCheck Class Reference
+ Inheritance diagram for ilLearningModuleCronLinkCheck:
+ Collaboration diagram for ilLearningModuleCronLinkCheck:

Public Member Functions

 getId ()
 Get id.
 getTitle ()
 Get title.
 getDescription ()
 Get description.
 getDefaultScheduleType ()
 Get schedule type.
 getDefaultScheduleValue ()
 Get schedule value.
 hasAutoActivation ()
 Is to be activated on "installation".
 hasFlexibleSchedule ()
 Can the schedule be configured?
 run ()
 Run job.
- Public Member Functions inherited from ilCronJob
 isActive ($a_ts_last_run, $a_schedule_type, $a_schedule_value, $a_manual=false)
 Is job currently active?
 getScheduleType ()
 Get current schedule type (if flexible)
 getScheduleValue ()
 Get current schedule value (if flexible)
 setSchedule ($a_type, $a_value)
 Update current schedule (if flexible)
 getValidScheduleTypes ()
 Get all available schedule types.
 isManuallyExecutable ()
 Defines whether or not a cron job can be started manually.
 hasCustomSettings ()
 Has cron job any custom setting which can be edited?
 addCustomSettingsToForm (ilPropertyFormGUI $a_form)
 Add custom settings to form.
 saveCustomSettings (ilPropertyFormGUI $a_form)
 Save custom settings.
 addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active)
 Add external settings to form.
 activationWasToggled ($a_currently_active)
 Cron job status was changed.

Additional Inherited Members

- Data Fields inherited from ilCronJob
const SCHEDULE_TYPE_DAILY = 1
const SCHEDULE_TYPE_IN_MINUTES = 2
const SCHEDULE_TYPE_IN_HOURS = 3
const SCHEDULE_TYPE_IN_DAYS = 4
const SCHEDULE_TYPE_WEEKLY = 5
const SCHEDULE_TYPE_MONTHLY = 6
const SCHEDULE_TYPE_QUARTERLY = 7
const SCHEDULE_TYPE_YEARLY = 8
- Protected Member Functions inherited from ilCronJob
 checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value)

Detailed Description

Definition at line 14 of file class.ilLearningModuleCronLinkCheck.php.

Member Function Documentation

ilLearningModuleCronLinkCheck::getDefaultScheduleType ( )

Get schedule type.

Returns
int

Reimplemented from ilCronJob.

Definition at line 35 of file class.ilLearningModuleCronLinkCheck.php.

References ilCronJob\SCHEDULE_TYPE_DAILY.

ilLearningModuleCronLinkCheck::getDefaultScheduleValue ( )

Get schedule value.

Returns
int|array

Reimplemented from ilCronJob.

Definition at line 40 of file class.ilLearningModuleCronLinkCheck.php.

{
return;
}
ilLearningModuleCronLinkCheck::getDescription ( )

Get description.

Returns
string

Reimplemented from ilCronJob.

Definition at line 28 of file class.ilLearningModuleCronLinkCheck.php.

References $lng.

{
global $lng;
return $lng->txt("check_link_desc");
}
ilLearningModuleCronLinkCheck::getId ( )

Get id.

Returns
string

Reimplemented from ilCronJob.

Definition at line 16 of file class.ilLearningModuleCronLinkCheck.php.

{
return "lm_link_check";
}
ilLearningModuleCronLinkCheck::getTitle ( )

Get title.

Returns
string

Reimplemented from ilCronJob.

Definition at line 21 of file class.ilLearningModuleCronLinkCheck.php.

References $lng.

{
global $lng;
return $lng->txt("check_link");
}
ilLearningModuleCronLinkCheck::hasAutoActivation ( )

Is to be activated on "installation".

Returns
boolean

Reimplemented from ilCronJob.

Definition at line 45 of file class.ilLearningModuleCronLinkCheck.php.

{
return false;
}
ilLearningModuleCronLinkCheck::hasFlexibleSchedule ( )

Can the schedule be configured?

Returns
boolean

Reimplemented from ilCronJob.

Definition at line 50 of file class.ilLearningModuleCronLinkCheck.php.

{
return false;
}
ilLearningModuleCronLinkCheck::run ( )

Run job.

Returns
ilCronJobResult

Reimplemented from ilCronJob.

Definition at line 55 of file class.ilLearningModuleCronLinkCheck.php.

References $ilLog, $result, ilCronJobResult\STATUS_NO_ACTION, and ilCronJobResult\STATUS_OK.

{
global $ilLog, $ilDB;
include_once'./Services/LinkChecker/classes/class.ilLinkChecker.php';
$link_checker =& new ilLinkChecker($ilDB);
$link_checker->setMailStatus(true);
$link_checker->checkLinks();
$counter = 0;
foreach($link_checker->getLogMessages() as $message)
{
$ilLog->write($message);
$counter++;
}
if($counter)
{
}
$result->setStatus($status);
return $result;
}

The documentation for this class was generated from the following file: