ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Reads ECS events and stores them in the database. More...
Public Member Functions | |
__construct ($a_server_id) | |
Constructor. More... | |
getServer () | |
get server setting More... | |
getEvents () | |
get all events More... | |
deleteAll () | |
Delete all events. More... | |
deleteAllEContentEvents (array $a_types) | |
Delete all econtents. More... | |
refresh () | |
Fetch events from fifo Using fifo public. More... | |
shift () | |
get and delete the first event entry More... | |
add ($a_type, $a_id, $a_op) | |
add More... | |
delete ($a_event_id) | |
delete private More... | |
read () | |
Read public. More... | |
Static Public Member Functions | |
static | getAllEContentTypes () |
All available content types. More... | |
static | handleImportReset (ilECSSetting $server) |
Reread all imported econtent. More... | |
static | handleExportReset (ilECSSetting $server) |
Handle export reset. More... | |
static | deleteServer ($a_server_id) |
Delete by server id ilDB $ilDB. More... | |
static | deleteByServerId ($a_server_id) |
Data Fields | |
const | TYPE_EXPORTED = 'exported' |
const | TYPE_DIRECTORY_TREES = 'directory_trees' |
const | TYPE_CMS_COURSES = 'courses' |
const | TYPE_CMS_COURSE_MEMBERS = 'course_members' |
const | TYPE_REMOTE_COURSE = 'rcrs' |
const | TYPE_REMOTE_CATEGORY = 'rcat' |
const | TYPE_REMOTE_FILE = 'rfil' |
const | TYPE_REMOTE_GLOSSARY = 'rglo' |
const | TYPE_REMOTE_GROUP = 'rgrp' |
const | TYPE_REMOTE_LEARNING_MODULE = 'rlm' |
const | TYPE_REMOTE_WIKI = 'rwik' |
const | TYPE_REMOTE_TEST = 'rtst' |
const | TYPE_COURSE_URLS = 'course_urls' |
const | TYPE_ENROLMENT_STATUS = 'member_status' |
Protected Member Functions | |
deleteAllExportedEvents () | |
Delete all exported events. More... | |
Static Protected Member Functions | |
static | getEventTypeFromObjectType ($a_obj_type) |
Convert object type to event type. More... | |
static | getAllResourceIds (ilECSSetting $server, array $a_types, $a_sender_only=false) |
Get all resource ids by resource type. More... | |
Protected Attributes | |
$log | |
$db | |
$events = array() | |
$econtent_ids = array() | |
Private Member Functions | |
writeEventToDB (ilECSEvent $ev) | |
Write event to db. More... | |
update ($a_type, $a_id, $a_operation) | |
update one entry More... | |
Reads ECS events and stores them in the database.
Definition at line 36 of file class.ilECSEventQueueReader.php.
ilECSEventQueueReader::__construct | ( | $a_server_id | ) |
Constructor.
public
Definition at line 64 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $ilLog, ilECSSetting\getInstanceByServerId(), read(), and settings().
ilECSEventQueueReader::add | ( | $a_type, | |
$a_id, | |||
$a_op | |||
) |
add
public
Definition at line 531 of file class.ilECSEventQueueReader.php.
References $a_type, $DIC, $ilDB, $query, $res, and getServer().
ilECSEventQueueReader::delete | ( | $a_event_id | ) |
delete private
int | event id |
Definition at line 584 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
ilECSEventQueueReader::deleteAll | ( | ) |
Delete all events.
public
Definition at line 281 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
ilECSEventQueueReader::deleteAllEContentEvents | ( | array | $a_types | ) |
Delete all econtents.
public
array | $a_types |
Definition at line 299 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
Referenced by handleImportReset().
|
protected |
Delete all exported events.
public
Definition at line 317 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
Referenced by handleExportReset().
|
static |
Definition at line 626 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, and $query.
Referenced by ilECSSetting\delete().
|
static |
Delete by server id ilDB $ilDB.
int | $a_server_id |
Definition at line 374 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, and $query.
Referenced by ilECSSettingsGUI\doDelete().
|
static |
All available content types.
Definition at line 97 of file class.ilECSEventQueueReader.php.
|
staticprotected |
Get all resource ids by resource type.
ilECSSetting | $server | |
array | $a_types | |
bool | $a_sender_only |
Definition at line 112 of file class.ilECSEventQueueReader.php.
References $list, $type, and ilRemoteObjectBase\getInstanceByEventType().
ilECSEventQueueReader::getEvents | ( | ) |
|
staticprotected |
Convert object type to event type.
string | $a_obj_type |
Definition at line 86 of file class.ilECSEventQueueReader.php.
ilECSEventQueueReader::getServer | ( | ) |
get server setting
Definition at line 259 of file class.ilECSEventQueueReader.php.
Referenced by add(), delete(), deleteAll(), deleteAllEContentEvents(), deleteAllExportedEvents(), read(), refresh(), update(), and writeEventToDB().
|
static |
Handle export reset.
Delete exported econtent and create it again
Definition at line 220 of file class.ilECSEventQueueReader.php.
References $GLOBALS, $list, ilECSExport\_deleteEContentIds(), ilECSExport\_getAllEContentIds(), deleteAllExportedEvents(), and ilECSSetting\getServerId().
Referenced by ilECSSettingsGUI\readAll().
|
static |
Reread all imported econtent.
Definition at line 133 of file class.ilECSEventQueueReader.php.
References $DIC, $GLOBALS, $ilLog, $list, $type, ilObject\_lookupType(), ilECSEvent\CREATED, deleteAllEContentEvents(), ilECSEvent\DESTROYED, ilECSImport\getAllImportedRemoteObjects(), ilECSUtils\getPossibleRemoteTypes(), ilECSSetting\getServerId(), and ilECSEvent\UPDATED.
Referenced by ilECSSettingsGUI\readAll().
ilECSEventQueueReader::read | ( | ) |
Read public.
Definition at line 602 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and getServer().
Referenced by __construct().
ilECSEventQueueReader::refresh | ( | ) |
Fetch events from fifo Using fifo public.
ilECSConnectorException |
Definition at line 336 of file class.ilECSEventQueueReader.php.
References $GLOBALS, $res, $result, getServer(), and writeEventToDB().
ilECSEventQueueReader::shift | ( | ) |
get and delete the first event entry
public
Definition at line 513 of file class.ilECSEventQueueReader.php.
|
private |
update one entry
private
Definition at line 564 of file class.ilECSEventQueueReader.php.
References $a_type, $DIC, $ilDB, $query, $res, and getServer().
|
private |
Write event to db.
Definition at line 388 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, $row, $type, ilECSEvent\CREATED, ilECSEvent\DESTROYED, ilDBConstants\FETCHMODE_OBJECT, ilECSEvent\getRessourceId(), ilECSEvent\getRessourceType(), getServer(), ilECSEvent\getStatus(), and ilECSEvent\UPDATED.
Referenced by refresh().
|
protected |
Definition at line 54 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 57 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 56 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 53 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::TYPE_CMS_COURSE_MEMBERS = 'course_members' |
Definition at line 41 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_CMS_COURSES = 'courses' |
Definition at line 40 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_COURSE_URLS = 'course_urls' |
Definition at line 50 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_DIRECTORY_TREES = 'directory_trees' |
Definition at line 39 of file class.ilECSEventQueueReader.php.
Referenced by ilECSMappingSettingsGUI\dSynchronizeTrees(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_ENROLMENT_STATUS = 'member_status' |
Definition at line 51 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_EXPORTED = 'exported' |
Definition at line 38 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::TYPE_REMOTE_CATEGORY = 'rcat' |
Definition at line 43 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_COURSE = 'rcrs' |
Definition at line 42 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_FILE = 'rfil' |
Definition at line 44 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_GLOSSARY = 'rglo' |
Definition at line 45 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_GROUP = 'rgrp' |
Definition at line 46 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_LEARNING_MODULE = 'rlm' |
Definition at line 47 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_TEST = 'rtst' |
Definition at line 49 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_WIKI = 'rwik' |
Definition at line 48 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().