| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
class for checking external links in page objects Normally used in Cron jobs, but should be extensible for use in learning modules. More...
 Collaboration diagram for ilLinkChecker:
 Collaboration diagram for ilLinkChecker:| 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 | |
| Protected Member Functions | |
| createPermanentLink ($a_obj_id, $a_usr_id, $a_obj_type) | |
| creates a permanent link | |
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 384 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__appendLogMessage | ( | $a_string | ) | 
Definition at line 390 of file class.ilLinkChecker.php.
Referenced by __sendMail(), __validateLinks(), checkLinks(), and checkWebResourceLinks().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__checkNotify | ( | ) | 
Definition at line 605 of file class.ilLinkChecker.php.
References $query, $res, and getInvalidLinks().
Referenced by __saveInDB().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__clearDBData | ( | ) | 
Definition at line 625 of file class.ilLinkChecker.php.
References $query, $res, getObjId(), and getValidateAll().
Referenced by __saveInDB().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__clearInvalidLinks | ( | ) | 
Definition at line 380 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__clearLogMessages | ( | ) | 
Definition at line 394 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__fetchUserData | ( | $a_usr_id | ) | 
Definition at line 236 of file class.ilLinkChecker.php.
References $query, $row, and DB_FETCHMODE_OBJECT.
| ilLinkChecker::__getLinks | ( | $a_page | ) | 
Definition at line 399 of file class.ilLinkChecker.php.
References __getObjIdByPageId().
Referenced by checkLinks().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__getNotifyLinks | ( | ) | 
Definition at line 374 of file class.ilLinkChecker.php.
Referenced by __sendMail().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__getObjIdByPageId | ( | $a_page_id | ) | 
Definition at line 556 of file class.ilLinkChecker.php.
References $query, $row, and DB_FETCHMODE_OBJECT.
Referenced by __getLinks().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__getType | ( | ) | 
Definition at line 60 of file class.ilLinkChecker.php.
Referenced by __sendMail().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__getWebResourceLinks | ( | ) | 
Definition at line 434 of file class.ilLinkChecker.php.
References getObjId().
Referenced by checkWebResourceLinks().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__isInvalid | ( | $a_page_id, | |
| $a_url | |||
| ) | 
Definition at line 566 of file class.ilLinkChecker.php.
References getInvalidLinks().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLinkChecker::__saveInDB | ( | ) | 
Definition at line 579 of file class.ilLinkChecker.php.
References $query, $res, __checkNotify(), __clearDBData(), getInvalidLinks(), and getMailStatus().
Referenced by checkLinks(), and checkWebResourceLinks().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__sendMail | ( | ) | 
Definition at line 269 of file class.ilLinkChecker.php.
References $ilUser, $usr_id, __appendLogMessage(), __getNotifyLinks(), __getTitle(), __getType(), __txt(), ilLinkCheckNotify\_getAllNotifiers(), createPermanentLink(), ilObjectFactory\getInstanceByObjId(), and getMailStatus().
Referenced by checkLinks(), and checkWebResourceLinks().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__setType | ( | $a_type | ) | 
Definition at line 56 of file class.ilLinkChecker.php.
Referenced by checkLinks(), and checkWebResourceLinks().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__txt | ( | $language, | |
| $key, | |||
| $module = 'common' | |||
| ) | 
Definition at line 228 of file class.ilLinkChecker.php.
References ilLanguage\_lookupEntry().
Referenced by __sendMail().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::__validateLinks | ( | $a_links | ) | 
Definition at line 484 of file class.ilLinkChecker.php.
References $options, __appendLogMessage(), ilProxySettings\_getInstance(), ilObject\_lookupObjId(), and ilObject\_lookupType().
Referenced by checkLinks(), and checkWebResourceLinks().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
creates a permanent link
| $a_obj_id | |
| $a_usr_id | |
| $a_obj_type | 
Definition at line 351 of file class.ilLinkChecker.php.
References $ref_id, ilObject\_getAllReferences(), and ilLink\_getLink().
Referenced by __sendMail().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::getInvalidLinksFromDB | ( | ) | 
Definition at line 89 of file class.ilLinkChecker.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and getObjId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLinkChecker::getLastCheckTimestamp | ( | ) | 
Definition at line 106 of file class.ilLinkChecker.php.
References $query, $res, $row, getObjId(), and getValidateAll().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::getObjId | ( | ) | 
Definition at line 69 of file class.ilLinkChecker.php.
References $page_id.
Referenced by __clearDBData(), __getWebResourceLinks(), checkLinks(), getInvalidLinksFromDB(), and getLastCheckTimestamp().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLinkChecker::getValidateAll | ( | ) | 
Definition at line 74 of file class.ilLinkChecker.php.
Referenced by __clearDBData(), checkLinks(), and getLastCheckTimestamp().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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.