ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
getServer () | |
Get server setting. More... | |
startTaskExecution () | |
Start Tasks. More... | |
checkNextExecution () | |
Start. More... | |
Static Public Member Functions | |
static | _getInstanceByServerId ($a_server_id) |
get singleton instance Private access use ilECSTaskScheduler::start() or ilECSTaskScheduler::startTaskExecution More... | |
static | start () |
Start task scheduler for each server instance. More... | |
static | startExecution () |
Static version iterates over all active instances. More... | |
Data Fields | |
const | MAX_TASKS = 30 |
Protected Member Functions | |
initNextExecution () | |
Call next task scheduler run. More... | |
Protected Attributes | |
$log | |
$settings = null | |
$db | |
Private Member Functions | |
__construct (ilECSSetting $setting) | |
Singleton constructor. More... | |
readEvents () | |
Read EContent. More... | |
handleEvents () | |
Handle events. More... | |
handleDeprecatedAccounts () | |
Delete deprecate ECS accounts. More... | |
readMIDs () | |
Read MID's of this installation. More... | |
Private Attributes | |
$event_reader = null | |
$mids = array() | |
Static Private Attributes | |
static | $instances = array() |
Definition at line 32 of file class.ilECSTaskScheduler.php.
|
private |
Singleton constructor.
public
Definition at line 56 of file class.ilECSTaskScheduler.php.
References $GLOBALS, $ilDB, $ilLog, and settings().
|
static |
get singleton instance Private access use ilECSTaskScheduler::start() or ilECSTaskScheduler::startTaskExecution
private
Definition at line 80 of file class.ilECSTaskScheduler.php.
References ilECSSetting\getInstanceByServerId().
Referenced by ilSoapUtils\handleECSTasks(), and ilECSSettingsGUI\readAll().
ilECSTaskScheduler::checkNextExecution | ( | ) |
Start.
public
Definition at line 375 of file class.ilECSTaskScheduler.php.
References $ilDB, $query, settings(), and time.
ilECSTaskScheduler::getServer | ( | ) |
Get server setting.
Definition at line 134 of file class.ilECSTaskScheduler.php.
References $settings.
Referenced by handleEvents(), readEvents(), and readMIDs().
|
private |
Delete deprecate ECS accounts.
private
Definition at line 315 of file class.ilECSTaskScheduler.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and ilObjectFactory\getInstanceByObjId().
Referenced by startTaskExecution().
|
private |
Handle events.
private
Definition at line 192 of file class.ilECSTaskScheduler.php.
References $GLOBALS, $res, array, ilECSEvent\CREATED, ilECSEvent\DESTROYED, ilRemoteObjectBase\getInstanceByEventType(), getServer(), ilECSEvent\NEW_EXPORT, ilECSEventQueueReader\TYPE_CMS_COURSE_MEMBERS, ilECSEventQueueReader\TYPE_CMS_COURSES, ilECSEventQueueReader\TYPE_COURSE_URLS, ilECSEventQueueReader\TYPE_DIRECTORY_TREES, ilECSEventQueueReader\TYPE_ENROLMENT_STATUS, ilECSEventQueueReader\TYPE_REMOTE_CATEGORY, ilECSEventQueueReader\TYPE_REMOTE_COURSE, ilECSEventQueueReader\TYPE_REMOTE_FILE, ilECSEventQueueReader\TYPE_REMOTE_GLOSSARY, ilECSEventQueueReader\TYPE_REMOTE_GROUP, ilECSEventQueueReader\TYPE_REMOTE_LEARNING_MODULE, ilECSEventQueueReader\TYPE_REMOTE_TEST, ilECSEventQueueReader\TYPE_REMOTE_WIKI, and ilECSEvent\UPDATED.
Referenced by startTaskExecution().
|
protected |
Call next task scheduler run.
Definition at line 415 of file class.ilECSTaskScheduler.php.
References $_COOKIE, $client_id, $ilLog, $res, ilSession\_duplicate(), array, and ilSoapFunctions\handleECSTasks().
|
private |
Read EContent.
private
Definition at line 172 of file class.ilECSTaskScheduler.php.
References getServer().
Referenced by startTaskExecution().
|
private |
Read MID's of this installation.
private
Definition at line 343 of file class.ilECSTaskScheduler.php.
References $reader, array, ilECSCommunityReader\getInstanceByServerId(), and getServer().
Referenced by startTaskExecution().
|
static |
Start task scheduler for each server instance.
Definition at line 96 of file class.ilECSTaskScheduler.php.
References $server, ilContext\CONTEXT_WEB, ilECSServerSettings\getInstance(), and ilContext\getType().
Referenced by ilInitialisation\initILIAS().
|
static |
Static version iterates over all active instances.
Definition at line 119 of file class.ilECSTaskScheduler.php.
References $server, and ilECSServerSettings\getInstance().
ilECSTaskScheduler::startTaskExecution | ( | ) |
Start Tasks.
private
Definition at line 146 of file class.ilECSTaskScheduler.php.
References $ilLog, handleDeprecatedAccounts(), handleEvents(), readEvents(), and readMIDs().
|
protected |
Definition at line 46 of file class.ilECSTaskScheduler.php.
|
private |
Definition at line 43 of file class.ilECSTaskScheduler.php.
|
staticprivate |
Definition at line 36 of file class.ilECSTaskScheduler.php.
|
protected |
Definition at line 41 of file class.ilECSTaskScheduler.php.
|
private |
Definition at line 48 of file class.ilECSTaskScheduler.php.
|
protected |
Definition at line 45 of file class.ilECSTaskScheduler.php.
Referenced by getServer().
const ilECSTaskScheduler::MAX_TASKS = 30 |
Definition at line 34 of file class.ilECSTaskScheduler.php.