ILIAS
Release_4_2_x_branch Revision 61807
|
Public Member Functions | |
getServer () | |
Get server setting. | |
startTaskExecution () | |
Start Tasks. | |
checkNextExecution () | |
Start. |
Static Public Member Functions | |
static | _getInstanceByServerId ($a_server_id) |
get singleton instance Private access use ilECSTaskScheduler::start() or ilECSTaskScheduler::startTaskExecution | |
static | start () |
Start task scheduler for each server instance. | |
static | startExecution () |
Static version iterates over all active instances. |
Data Fields | |
const | MAX_TASKS = 30 |
Protected Member Functions | |
initNextExecution () | |
Call next task scheduler run. |
Protected Attributes | |
$settings = null | |
$log = null | |
$db |
Private Member Functions | |
__construct (ilECSSetting $setting) | |
Singleton constructor. | |
readEvents () | |
Read EContent. | |
handleEvents () | |
Handle events. | |
handleNewlyCreate ($a_obj_id) | |
handleDelete ($econtent_id, $a_mid=0) | |
Handle delete private. | |
handleUpdate (ilECSEContent $content, ilECSEContentDetails $details) | |
Handle update/creation of remote courses. | |
handleDeprecatedAccounts () | |
Delete deprecate ECS accounts. | |
readMIDs () | |
Read MID's of this installation. |
Private Attributes | |
$event_reader = null | |
$mids = array() | |
$content = array() | |
$to_create = array() | |
$to_update = array() | |
$to_delete = array() |
Static Private Attributes | |
static | $instances = array() |
Definition at line 32 of file class.ilECSTaskScheduler.php.
|
private |
|
static |
get singleton instance Private access use ilECSTaskScheduler::start() or ilECSTaskScheduler::startTaskExecution
private
Definition at line 79 of file class.ilECSTaskScheduler.php.
References ilECSSetting\getInstanceByServerId().
Referenced by ilSoapUtils\handleECSTasks(), and ilECSSettingsGUI\readAll().
ilECSTaskScheduler::checkNextExecution | ( | ) |
Start.
public
Definition at line 460 of file class.ilECSTaskScheduler.php.
References $ilDB, $ilLog, and $query.
ilECSTaskScheduler::getServer | ( | ) |
Get server setting.
Definition at line 127 of file class.ilECSTaskScheduler.php.
References $settings.
Referenced by handleEvents(), handleNewlyCreate(), handleUpdate(), readEvents(), and readMIDs().
|
private |
Handle delete private.
array | array of event data |
Definition at line 306 of file class.ilECSTaskScheduler.php.
References $GLOBALS, $ref_id, ilObject\_getAllReferences(), ilECSImport\_lookupObjId(), ilECSImport\_lookupObjIds(), and ilObjectFactory\getInstanceByRefId().
Referenced by handleEvents().
|
private |
Delete deprecate ECS accounts.
private
Definition at line 399 of file class.ilECSTaskScheduler.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and ilObjectFactory\getInstanceByObjId().
Referenced by startTaskExecution().
|
private |
Handle events.
private
Definition at line 185 of file class.ilECSTaskScheduler.php.
References $reader, ilECSEvent\DESTROYED, getServer(), handleDelete(), handleNewlyCreate(), handleUpdate(), MAX_TASKS, and ilECSEvent\NEW_EXPORT.
Referenced by startTaskExecution().
|
private |
Definition at line 236 of file class.ilECSTaskScheduler.php.
References $ilLog, $reader, ilObjectFactory\getInstanceByObjId(), and getServer().
Referenced by handleEvents().
|
private |
Handle update/creation of remote courses.
private
array | array of ecscontent |
Definition at line 344 of file class.ilECSTaskScheduler.php.
References $content, $GLOBALS, $ilLog, ilObjRemoteCourse\_createFromECSEContent(), ilECSImport\_isImported(), ilECSEContent\getEContentId(), ilObjectFactory\getInstanceByObjId(), ilECSParticipantSettings\getInstanceByServerId(), ilECSEContent\getOwner(), ilECSEContentDetails\getReceivers(), and getServer().
Referenced by handleEvents().
|
protected |
Call next task scheduler run.
Definition at line 500 of file class.ilECSTaskScheduler.php.
References $_COOKIE, $client_id, $ilLog, $res, duplicate_session(), and ilSoapFunctions\handleECSTasks().
|
private |
Read EContent.
private
Definition at line 165 of file class.ilECSTaskScheduler.php.
References getServer().
Referenced by startTaskExecution().
|
private |
Read MID's of this installation.
private
Definition at line 427 of file class.ilECSTaskScheduler.php.
References $reader, ilECSCommunityReader\getInstanceByServerId(), and getServer().
Referenced by startTaskExecution().
|
static |
Start task scheduler for each server instance.
Definition at line 94 of file class.ilECSTaskScheduler.php.
References $server, and ilECSServerSettings\getInstance().
|
static |
Static version iterates over all active instances.
Definition at line 111 of file class.ilECSTaskScheduler.php.
References $server, and ilECSServerSettings\getInstance().
ilECSTaskScheduler::startTaskExecution | ( | ) |
Start Tasks.
private
Definition at line 139 of file class.ilECSTaskScheduler.php.
References $ilLog, handleDeprecatedAccounts(), handleEvents(), readEvents(), and readMIDs().
|
private |
Definition at line 45 of file class.ilECSTaskScheduler.php.
Referenced by handleUpdate().
|
protected |
Definition at line 42 of file class.ilECSTaskScheduler.php.
|
private |
Definition at line 38 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 44 of file class.ilECSTaskScheduler.php.
|
protected |
Definition at line 40 of file class.ilECSTaskScheduler.php.
Referenced by getServer().
|
private |
Definition at line 46 of file class.ilECSTaskScheduler.php.
|
private |
Definition at line 48 of file class.ilECSTaskScheduler.php.
|
private |
Definition at line 47 of file class.ilECSTaskScheduler.php.
const ilECSTaskScheduler::MAX_TASKS = 30 |
Definition at line 34 of file class.ilECSTaskScheduler.php.
Referenced by handleEvents().