ILIAS
Release_3_10_x_branch Revision 61812
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilCronCheck.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
24
34
class
ilCronCheck
35
{
36
function
ilCronCheck
()
37
{
38
global
$ilLog
;
39
40
$this->log =&
$ilLog
;
41
}
42
43
function
start
()
44
{
45
global $ilias;
46
47
include_once(
'Services/LDAP/classes/class.ilLDAPCronSynchronization.php'
);
48
$ldap_sync =
new
ilLDAPCronSynchronization
();
49
$ldap_sync->start();
50
51
// Check user accounts if enabled in settings
52
if
($ilias->getSetting(
'cron_user_check'
))
53
{
54
include_once
'./cron/classes/class.ilCronCheckUserAccounts.php'
;
55
56
$check_ua =&
new
ilCronCheckUserAccounts
();
57
$check_ua->check();
58
}
59
60
// Start lucene indexer
61
if
($ilias->getSetting(
"cron_lucene_index"
))
62
{
63
include_once
'./Services/Search/classes/Lucene/class.ilLuceneIndexer.php'
;
64
65
$lucene_ind =&
new
ilLuceneIndexer
();
66
$lucene_ind->index();
67
}
68
69
// Start Link check
70
if
($ilias->getSetting(
'cron_link_check'
))
71
{
72
include_once
'./cron/classes/class.ilCronLinkCheck.php'
;
73
74
$check_lnk =&
new
ilCronLinkCheck
();
75
$check_lnk->check();
76
77
}
78
79
// Start web resource check
80
if
($ilias->getSetting(
'cron_web_resource_check'
))
81
{
82
include_once
'./cron/classes/class.ilCronWebResourceCheck.php'
;
83
84
$check_lnk =&
new
ilCronWebResourceCheck
();
85
$check_lnk->check();
86
}
87
88
// Start sending forum notifications
89
if
($ilias->getSetting(
'forum_notification'
) == 2)
90
{
91
include_once
'./cron/classes/class.ilCronForumNotification.php'
;
92
93
$frm_not =&
new
ilCronForumNotification
();
94
$frm_not->sendNotifications();
95
96
}
97
98
// Start sending mail notifications
99
if
($ilias->getSetting(
'mail_notification'
) == 1)
100
{
101
include_once
'./cron/classes/class.ilCronMailNotification.php'
;
102
103
$mail_not =&
new
ilCronMailNotification
();
104
$mail_not->sendNotifications();
105
}
106
107
}
108
}
109
110
111
112
113
?>
cron
classes
class.ilCronCheck.php
Generated on Tue Apr 26 2016 19:00:32 for ILIAS by
1.8.1.2 (using
Doxyfile
)