• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

cron/classes/class.ilCronCheck.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2001 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00024 
00034 class ilCronCheck
00035 {
00036         function ilCronCheck()
00037         {
00038                 global $ilLog;
00039 
00040                 $this->log =& $ilLog;
00041         }
00042 
00043         function start()
00044         {
00045                 global $ilias;
00046                 
00047                 include_once('Services/LDAP/classes/class.ilLDAPCronSynchronization.php');
00048                 $ldap_sync = new ilLDAPCronSynchronization();
00049                 $ldap_sync->start();
00050 
00051                 // Check user accounts if enabled in settings
00052                 if($ilias->getSetting('cron_user_check'))
00053                 {
00054                         include_once './cron/classes/class.ilCronCheckUserAccounts.php';
00055 
00056                         $check_ua =& new ilCronCheckUserAccounts();
00057                         $check_ua->check();
00058                 }
00059 
00060                 // Start lucene indexer
00061                 if($ilias->getSetting("cron_lucene_index"))
00062                 {
00063                         include_once './Services/Search/classes/Lucene/class.ilLuceneIndexer.php';
00064 
00065                         $lucene_ind =& new ilLuceneIndexer();
00066                         $lucene_ind->index();
00067                 }
00068 
00069                 // Start Link check
00070                 if($ilias->getSetting('cron_link_check'))
00071                 {
00072                         include_once './cron/classes/class.ilCronLinkCheck.php';
00073 
00074                         $check_lnk =& new ilCronLinkCheck();
00075                         $check_lnk->check();
00076 
00077                 }
00078 
00079                 // Start web resource check
00080                 if($ilias->getSetting('cron_web_resource_check'))
00081                 {
00082                         include_once './cron/classes/class.ilCronWebResourceCheck.php';
00083 
00084                         $check_lnk =& new ilCronWebResourceCheck();
00085                         $check_lnk->check();
00086                 }
00087 
00088                 // Start sending forum notifications
00089                 if($ilias->getSetting('forum_notification') == 2)
00090                 {
00091                         include_once './cron/classes/class.ilCronForumNotification.php';
00092 
00093                         $frm_not =& new ilCronForumNotification();
00094                         $frm_not->sendNotifications();
00095 
00096                 }
00097 
00098                 // Start sending mail notifications
00099                 if($ilias->getSetting('mail_notification') == 1)
00100                 {
00101                         include_once './cron/classes/class.ilCronMailNotification.php';
00102 
00103                         $mail_not =& new ilCronMailNotification();
00104                         $mail_not->sendNotifications();
00105                 }
00106 
00107         }
00108 }
00109 
00110 
00111 
00112 
00113 ?>

Generated on Fri Dec 13 2013 17:56:49 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1