Public Member Functions

ilCronCheck Class Reference

Public Member Functions

 ilCronCheck ()
 start ()

Detailed Description

Definition at line 34 of file class.ilCronCheck.php.


Member Function Documentation

ilCronCheck::ilCronCheck (  ) 

Definition at line 36 of file class.ilCronCheck.php.

References $ilLog.

        {
                global $ilLog;

                $this->log =& $ilLog;
        }

ilCronCheck::start (  ) 

Definition at line 43 of file class.ilCronCheck.php.

References $ilias.

        {
                global $ilias;

                // Check user accounts if enabled in settings
                if($ilias->getSetting('cron_user_check'))
                {
                        include_once './cron/classes/class.ilCronCheckUserAccounts.php';

                        $check_ua =& new ilCronCheckUserAccounts();
                        $check_ua->check();
                }

                // Start Link check
                if($ilias->getSetting('cron_link_check'))
                {
                        include_once './cron/classes/class.ilCronLinkCheck.php';

                        $check_lnk =& new ilCronLinkCheck();
                        $check_lnk->check();

                }

                // Start web resource check
                if($ilias->getSetting('cron_web_resource_check'))
                {
                        include_once './cron/classes/class.ilCronWebResourceCheck.php';

                        $check_lnk =& new ilCronWebResourceCheck();
                        $check_lnk->check();
                }
                // Start lucene indexer
                if($ilias->getSetting("cron_lucene_index"))
                {
                        include_once './Services/Search/classes/Lucene/class.ilLuceneIndexer.php';

                        $lucene_ind =& new ilLuceneIndexer();
                        $lucene_ind->index();
                }

                // Start sending forum notifications
                if($ilias->getSetting('forum_notification') == 2)
                {
                        include_once './cron/classes/class.ilCronForumNotification.php';

                        $check_lnk =& new ilCronForumNotification();
                        $check_lnk->sendNotifications();

                }

        }


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