ILIAS
Release_3_10_x_branch Revision 61812
|
class for checking external links in page objects Normally used in Cron jobs, but should be extensible for use in learning modules. More...
Public Member Functions | |
ilLinkChecker (&$db, $a_validate_all=true) | |
setCheckPeriod ($a_period) | |
getCheckPeriod () | |
setMailStatus ($a_status) | |
getMailStatus () | |
__setType ($a_type) | |
__getType () | |
setObjId ($a_page_id) | |
getObjId () | |
getValidateAll () | |
getLogMessages () | |
getInvalidLinks () | |
getInvalidLinksFromDB () | |
getLastCheckTimestamp () | |
checkWebResourceLinks () | |
checkLinks () | |
checkPear () | |
__txt ($language, $key, $module= 'common') | |
__fetchUserData ($a_usr_id) | |
__getTitle ($a_lm_obj_id) | |
__sendMail () | |
__getNotifyLinks () | |
__clearInvalidLinks () | |
__appendInvalidLink ($a_link) | |
__appendLogMessage ($a_string) | |
__clearLogMessages () | |
__getLinks ($a_page) | |
__getWebResourceLinks () | |
__validateLinks ($a_links) | |
__getObjIdByPageId ($a_page_id) | |
__isInvalid ($a_page_id, $a_url) | |
__saveInDB () | |
__checkNotify () | |
__clearDBData () |
Data Fields | |
$db = null | |
$log_messages = array() | |
$invalid_links = array() | |
$validate_all = true | |
$mail_status = false | |
$page_id = 0 |
class for checking external links in page objects Normally used in Cron jobs, but should be extensible for use in learning modules.
In this case set second parameter of contructor = false, and use setPageObjectId()
Definition at line 32 of file class.ilLinkChecker.php.
ilLinkChecker::__appendInvalidLink | ( | $a_link | ) |
Definition at line 392 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__appendLogMessage | ( | $a_string | ) |
Definition at line 398 of file class.ilLinkChecker.php.
Referenced by __sendMail(), __validateLinks(), checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__checkNotify | ( | ) |
Definition at line 565 of file class.ilLinkChecker.php.
References $res, and getInvalidLinks().
Referenced by __saveInDB().
ilLinkChecker::__clearDBData | ( | ) |
Definition at line 585 of file class.ilLinkChecker.php.
References getObjId(), and getValidateAll().
Referenced by __saveInDB().
ilLinkChecker::__clearInvalidLinks | ( | ) |
Definition at line 388 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__clearLogMessages | ( | ) |
Definition at line 402 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__fetchUserData | ( | $a_usr_id | ) |
Definition at line 277 of file class.ilLinkChecker.php.
References $data, and DB_FETCHMODE_OBJECT.
ilLinkChecker::__getLinks | ( | $a_page | ) |
Definition at line 407 of file class.ilLinkChecker.php.
References __getObjIdByPageId().
Referenced by checkLinks().
ilLinkChecker::__getNotifyLinks | ( | ) |
Definition at line 382 of file class.ilLinkChecker.php.
Referenced by __sendMail().
ilLinkChecker::__getObjIdByPageId | ( | $a_page_id | ) |
Definition at line 512 of file class.ilLinkChecker.php.
References DB_FETCHMODE_OBJECT.
Referenced by __getLinks().
ilLinkChecker::__getTitle | ( | $a_lm_obj_id | ) |
Definition at line 298 of file class.ilLinkChecker.php.
References DB_FETCHMODE_OBJECT.
Referenced by __sendMail().
ilLinkChecker::__getType | ( | ) |
Definition at line 80 of file class.ilLinkChecker.php.
Referenced by __sendMail().
ilLinkChecker::__getWebResourceLinks | ( | ) |
Definition at line 442 of file class.ilLinkChecker.php.
References getObjId().
Referenced by checkWebResourceLinks().
ilLinkChecker::__isInvalid | ( | $a_page_id, | |
$a_url | |||
) |
Definition at line 522 of file class.ilLinkChecker.php.
References getInvalidLinks().
ilLinkChecker::__saveInDB | ( | ) |
Definition at line 535 of file class.ilLinkChecker.php.
References $res, __checkNotify(), __clearDBData(), getInvalidLinks(), and getMailStatus().
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__sendMail | ( | ) |
Definition at line 310 of file class.ilLinkChecker.php.
References $data, __appendLogMessage(), __getNotifyLinks(), __getTitle(), __getType(), __txt(), ilLinkCheckNotify\_getAllNotifiers(), ilObjectFactory\getInstanceByObjId(), and getMailStatus().
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__setType | ( | $a_type | ) |
Definition at line 76 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__txt | ( | $language, | |
$key, | |||
$module = 'common' |
|||
) |
Definition at line 247 of file class.ilLinkChecker.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by __sendMail().
ilLinkChecker::__validateLinks | ( | $a_links | ) |
Definition at line 470 of file class.ilLinkChecker.php.
References __appendLogMessage().
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::checkLinks | ( | ) |
Definition at line 170 of file class.ilLinkChecker.php.
References $res, __appendInvalidLink(), __appendLogMessage(), __clearInvalidLinks(), __clearLogMessages(), __getLinks(), __saveInDB(), __sendMail(), __setType(), __validateLinks(), DB_FETCHMODE_OBJECT, getInvalidLinks(), getObjId(), and getValidateAll().
ilLinkChecker::checkPear | ( | ) |
Definition at line 236 of file class.ilLinkChecker.php.
ilLinkChecker::checkWebResourceLinks | ( | ) |
Definition at line 144 of file class.ilLinkChecker.php.
References __appendInvalidLink(), __appendLogMessage(), __clearInvalidLinks(), __clearLogMessages(), __getWebResourceLinks(), __saveInDB(), __sendMail(), __setType(), __validateLinks(), and getInvalidLinks().
ilLinkChecker::getCheckPeriod | ( | ) |
Definition at line 62 of file class.ilLinkChecker.php.
ilLinkChecker::getInvalidLinks | ( | ) |
Definition at line 104 of file class.ilLinkChecker.php.
Referenced by __checkNotify(), __isInvalid(), __saveInDB(), checkLinks(), and checkWebResourceLinks().
ilLinkChecker::getInvalidLinksFromDB | ( | ) |
Definition at line 109 of file class.ilLinkChecker.php.
References $res, DB_FETCHMODE_OBJECT, and getObjId().
ilLinkChecker::getLastCheckTimestamp | ( | ) |
Definition at line 126 of file class.ilLinkChecker.php.
References DB_FETCHMODE_OBJECT, getObjId(), and getValidateAll().
ilLinkChecker::getLogMessages | ( | ) |
Definition at line 99 of file class.ilLinkChecker.php.
ilLinkChecker::getMailStatus | ( | ) |
Definition at line 71 of file class.ilLinkChecker.php.
References $mail_status.
Referenced by __saveInDB(), and __sendMail().
ilLinkChecker::getObjId | ( | ) |
Definition at line 89 of file class.ilLinkChecker.php.
References $page_id.
Referenced by __clearDBData(), __getWebResourceLinks(), checkLinks(), getInvalidLinksFromDB(), and getLastCheckTimestamp().
ilLinkChecker::getValidateAll | ( | ) |
Definition at line 94 of file class.ilLinkChecker.php.
Referenced by __clearDBData(), checkLinks(), and getLastCheckTimestamp().
ilLinkChecker::ilLinkChecker | ( | & | $db, |
$a_validate_all = true |
|||
) |
Definition at line 43 of file class.ilLinkChecker.php.
References $db.
ilLinkChecker::setCheckPeriod | ( | $a_period | ) |
Definition at line 58 of file class.ilLinkChecker.php.
ilLinkChecker::setMailStatus | ( | $a_status | ) |
Definition at line 67 of file class.ilLinkChecker.php.
ilLinkChecker::setObjId | ( | $a_page_id | ) |
Definition at line 85 of file class.ilLinkChecker.php.
ilLinkChecker::$db = null |
Definition at line 34 of file class.ilLinkChecker.php.
Referenced by ilLinkChecker().
ilLinkChecker::$invalid_links = array() |
Definition at line 36 of file class.ilLinkChecker.php.
ilLinkChecker::$log_messages = array() |
Definition at line 35 of file class.ilLinkChecker.php.
ilLinkChecker::$mail_status = false |
Definition at line 39 of file class.ilLinkChecker.php.
Referenced by getMailStatus().
ilLinkChecker::$page_id = 0 |
Definition at line 40 of file class.ilLinkChecker.php.
Referenced by getObjId().
ilLinkChecker::$validate_all = true |
Definition at line 38 of file class.ilLinkChecker.php.