ILIAS
release_4-3 Revision
|
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 12 of file class.ilLinkChecker.php.
ilLinkChecker::__appendInvalidLink | ( | $a_link | ) |
Definition at line 351 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__appendLogMessage | ( | $a_string | ) |
Definition at line 357 of file class.ilLinkChecker.php.
Referenced by __sendMail(), __validateLinks(), checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__checkNotify | ( | ) |
Definition at line 572 of file class.ilLinkChecker.php.
References $query, $res, and getInvalidLinks().
Referenced by __saveInDB().
ilLinkChecker::__clearDBData | ( | ) |
Definition at line 592 of file class.ilLinkChecker.php.
References $query, $res, getObjId(), and getValidateAll().
Referenced by __saveInDB().
ilLinkChecker::__clearInvalidLinks | ( | ) |
Definition at line 347 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__clearLogMessages | ( | ) |
Definition at line 361 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__fetchUserData | ( | $a_usr_id | ) |
Definition at line 236 of file class.ilLinkChecker.php.
References $data, $query, $row, and DB_FETCHMODE_OBJECT.
ilLinkChecker::__getLinks | ( | $a_page | ) |
Definition at line 366 of file class.ilLinkChecker.php.
References __getObjIdByPageId().
Referenced by checkLinks().
ilLinkChecker::__getNotifyLinks | ( | ) |
Definition at line 341 of file class.ilLinkChecker.php.
Referenced by __sendMail().
ilLinkChecker::__getObjIdByPageId | ( | $a_page_id | ) |
Definition at line 523 of file class.ilLinkChecker.php.
References $query, $row, and DB_FETCHMODE_OBJECT.
Referenced by __getLinks().
ilLinkChecker::__getTitle | ( | $a_lm_obj_id | ) |
Definition at line 257 of file class.ilLinkChecker.php.
References $query, $row, and DB_FETCHMODE_OBJECT.
Referenced by __sendMail().
ilLinkChecker::__getType | ( | ) |
Definition at line 60 of file class.ilLinkChecker.php.
Referenced by __sendMail().
ilLinkChecker::__getWebResourceLinks | ( | ) |
Definition at line 401 of file class.ilLinkChecker.php.
References getObjId().
Referenced by checkWebResourceLinks().
ilLinkChecker::__isInvalid | ( | $a_page_id, | |
$a_url | |||
) |
Definition at line 533 of file class.ilLinkChecker.php.
References getInvalidLinks().
ilLinkChecker::__saveInDB | ( | ) |
Definition at line 546 of file class.ilLinkChecker.php.
References $query, $res, __checkNotify(), __clearDBData(), getInvalidLinks(), and getMailStatus().
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__sendMail | ( | ) |
Definition at line 269 of file class.ilLinkChecker.php.
References $data, $ilUser, $usr_id, __appendLogMessage(), __getNotifyLinks(), __getTitle(), __getType(), __txt(), ilLinkCheckNotify\_getAllNotifiers(), ilObjectFactory\getInstanceByObjId(), and getMailStatus().
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__setType | ( | $a_type | ) |
Definition at line 56 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::__txt | ( | $language, | |
$key, | |||
$module = 'common' |
|||
) |
Definition at line 228 of file class.ilLinkChecker.php.
References ilLanguage\_lookupEntry().
Referenced by __sendMail().
ilLinkChecker::__validateLinks | ( | $a_links | ) |
Definition at line 451 of file class.ilLinkChecker.php.
References __appendLogMessage(), ilProxySettings\_getInstance(), ilObject\_lookupObjId(), and ilObject\_lookupType().
Referenced by checkLinks(), and checkWebResourceLinks().
ilLinkChecker::checkLinks | ( | ) |
Definition at line 151 of file class.ilLinkChecker.php.
References $query, $res, $row, __appendInvalidLink(), __appendLogMessage(), __clearInvalidLinks(), __clearLogMessages(), __getLinks(), __saveInDB(), __sendMail(), __setType(), __validateLinks(), DB_FETCHMODE_OBJECT, getInvalidLinks(), getObjId(), and getValidateAll().
ilLinkChecker::checkPear | ( | ) |
Definition at line 217 of file class.ilLinkChecker.php.
ilLinkChecker::checkWebResourceLinks | ( | ) |
Definition at line 125 of file class.ilLinkChecker.php.
References __appendInvalidLink(), __appendLogMessage(), __clearInvalidLinks(), __clearLogMessages(), __getWebResourceLinks(), __saveInDB(), __sendMail(), __setType(), __validateLinks(), and getInvalidLinks().
ilLinkChecker::getCheckPeriod | ( | ) |
Definition at line 42 of file class.ilLinkChecker.php.
ilLinkChecker::getInvalidLinks | ( | ) |
Definition at line 84 of file class.ilLinkChecker.php.
Referenced by __checkNotify(), __isInvalid(), __saveInDB(), checkLinks(), and checkWebResourceLinks().
ilLinkChecker::getInvalidLinksFromDB | ( | ) |
Definition at line 89 of file class.ilLinkChecker.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and getObjId().
ilLinkChecker::getLastCheckTimestamp | ( | ) |
Definition at line 106 of file class.ilLinkChecker.php.
References $query, $res, $row, getObjId(), and getValidateAll().
ilLinkChecker::getLogMessages | ( | ) |
Definition at line 79 of file class.ilLinkChecker.php.
ilLinkChecker::getMailStatus | ( | ) |
Definition at line 51 of file class.ilLinkChecker.php.
References $mail_status.
Referenced by __saveInDB(), and __sendMail().
ilLinkChecker::getObjId | ( | ) |
Definition at line 69 of file class.ilLinkChecker.php.
References $page_id.
Referenced by __clearDBData(), __getWebResourceLinks(), checkLinks(), getInvalidLinksFromDB(), and getLastCheckTimestamp().
ilLinkChecker::getValidateAll | ( | ) |
Definition at line 74 of file class.ilLinkChecker.php.
Referenced by __clearDBData(), checkLinks(), and getLastCheckTimestamp().
ilLinkChecker::ilLinkChecker | ( | & | $db, |
$a_validate_all = true |
|||
) |
Definition at line 23 of file class.ilLinkChecker.php.
References $db.
ilLinkChecker::setCheckPeriod | ( | $a_period | ) |
Definition at line 38 of file class.ilLinkChecker.php.
ilLinkChecker::setMailStatus | ( | $a_status | ) |
Definition at line 47 of file class.ilLinkChecker.php.
ilLinkChecker::setObjId | ( | $a_page_id | ) |
Definition at line 65 of file class.ilLinkChecker.php.
ilLinkChecker::$db = null |
Definition at line 14 of file class.ilLinkChecker.php.
Referenced by ilLinkChecker().
ilLinkChecker::$invalid_links = array() |
Definition at line 16 of file class.ilLinkChecker.php.
ilLinkChecker::$log_messages = array() |
Definition at line 15 of file class.ilLinkChecker.php.
ilLinkChecker::$mail_status = false |
Definition at line 19 of file class.ilLinkChecker.php.
Referenced by getMailStatus().
ilLinkChecker::$page_id = 0 |
Definition at line 20 of file class.ilLinkChecker.php.
Referenced by getObjId().
ilLinkChecker::$validate_all = true |
Definition at line 18 of file class.ilLinkChecker.php.