ILIAS
release_8 Revision v8.19
|
Reads ECS events and stores them in the database. More...
Public Member Functions | |
__construct (ilECSSetting $settings) | |
Constructor. More... | |
handleImportReset () | |
Reread all imported econtent. More... | |
handleExportReset () | |
Handle export reset. More... | |
getServer () | |
get server settings 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. More... | |
delete () | |
Delete by server id. More... | |
shift () | |
get and delete the first event entry More... | |
add (string $a_type, int $a_id, string $a_op) | |
add More... | |
deleteEvent (int $a_event_id) | |
delete More... | |
Static Public Member Functions | |
static | getAllEContentTypes () |
All available content types. More... | |
static | deleteByServerId (int $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 (string $a_obj_type) |
Convert object type to event type. More... | |
static | getAllResourceIds (ilECSSetting $server, array $a_types, bool $a_sender_only=false) |
Get all resource ids by resource type. More... | |
Protected Attributes | |
array | $events = array() |
array | $econtent_ids = array() |
Private Member Functions | |
writeEventToDB (ilECSEvent $ev) | |
Write event to db. More... | |
update (string $a_type, int $a_id, string $a_operation) | |
update one entry More... | |
read () | |
Read. More... | |
Private Attributes | |
ilLogger | $logger |
ilDBInterface | $db |
ilECSSetting | $settings |
Reads ECS events and stores them in the database.
Definition at line 25 of file class.ilECSEventQueueReader.php.
ilECSEventQueueReader::__construct | ( | ilECSSetting | $settings | ) |
Constructor.
public
Definition at line 54 of file class.ilECSEventQueueReader.php.
References $DIC, $settings, ILIAS\Repository\logger(), read(), and ILIAS\Repository\settings().
ilECSEventQueueReader::add | ( | string | $a_type, |
int | $a_id, | ||
string | $a_op | ||
) |
add
Definition at line 444 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
Referenced by handleImportReset().
ilECSEventQueueReader::delete | ( | ) |
Delete by server id.
Definition at line 305 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
ilECSEventQueueReader::deleteAll | ( | ) |
Delete all events.
Definition at line 236 of file class.ilECSEventQueueReader.php.
References $query, and ILIAS\Repository\settings().
ilECSEventQueueReader::deleteAllEContentEvents | ( | array | $a_types | ) |
Delete all econtents.
Definition at line 247 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
Referenced by handleImportReset().
|
protected |
Delete all exported events.
Definition at line 259 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
Referenced by handleExportReset().
|
static |
ilECSEventQueueReader::deleteEvent | ( | int | $a_event_id | ) |
delete
Definition at line 483 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
|
static |
All available content types.
Definition at line 77 of file class.ilECSEventQueueReader.php.
|
staticprotected |
Get all resource ids by resource type.
ilECSSetting | $server | |
string[] | $a_types | |
bool | $a_sender_only |
Definition at line 92 of file class.ilECSEventQueueReader.php.
References $type, and ilRemoteObjectBase\getInstanceByEventType().
ilECSEventQueueReader::getEvents | ( | ) |
get all events
Definition at line 228 of file class.ilECSEventQueueReader.php.
|
staticprotected |
Convert object type to event type.
Definition at line 68 of file class.ilECSEventQueueReader.php.
ilECSEventQueueReader::getServer | ( | ) |
get server settings
Definition at line 219 of file class.ilECSEventQueueReader.php.
References $settings.
Referenced by add(), delete(), deleteAllEContentEvents(), deleteAllExportedEvents(), deleteEvent(), read(), refresh(), and writeEventToDB().
ilECSEventQueueReader::handleExportReset | ( | ) |
Handle export reset.
Delete exported econtent and create it again
ilException,ilECSConnectorException |
Definition at line 182 of file class.ilECSEventQueueReader.php.
References deleteAllExportedEvents(), ilECSExportManager\getInstance(), ILIAS\Repository\logger(), and ILIAS\Repository\settings().
ilECSEventQueueReader::handleImportReset | ( | ) |
Reread all imported econtent.
ilException,ilECSConnectorException |
Definition at line 110 of file class.ilECSEventQueueReader.php.
References $type, ilObject\_lookupType(), add(), ilECSEvent\CREATED, deleteAllEContentEvents(), ilECSEvent\DESTROYED, ilECSImportManager\getInstance(), ilECSUtils\getPossibleRemoteTypes(), ILIAS\Repository\logger(), ILIAS\Repository\settings(), and ilECSEvent\UPDATED.
|
private |
Read.
Definition at line 496 of file class.ilECSEventQueueReader.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, getServer(), and ILIAS\Repository\int().
Referenced by __construct().
ilECSEventQueueReader::refresh | ( | ) |
Fetch events from fifo Using fifo.
ilECSConnectorException |
Definition at line 273 of file class.ilECSEventQueueReader.php.
References Vendor\Package\$e, $res, getServer(), ILIAS\Repository\logger(), and writeEventToDB().
ilECSEventQueueReader::shift | ( | ) |
get and delete the first event entry
Definition at line 434 of file class.ilECSEventQueueReader.php.
|
private |
update one entry
Definition at line 470 of file class.ilECSEventQueueReader.php.
References $query, and ILIAS\Repository\settings().
|
private |
Write event to db.
Definition at line 315 of file class.ilECSEventQueueReader.php.
References $query, $res, $type, ilECSEvent\CREATED, ilECSEvent\DESTROYED, ilDBConstants\FETCHMODE_OBJECT, ilECSEvent\getRessourceId(), ilECSEvent\getRessourceType(), getServer(), ilECSEvent\getStatus(), and ilECSEvent\UPDATED.
Referenced by refresh().
|
private |
Definition at line 43 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 46 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 45 of file class.ilECSEventQueueReader.php.
|
private |
Definition at line 42 of file class.ilECSEventQueueReader.php.
|
private |
Definition at line 47 of file class.ilECSEventQueueReader.php.
Referenced by __construct(), and getServer().
const ilECSEventQueueReader::TYPE_CMS_COURSE_MEMBERS = 'course_members' |
Definition at line 30 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_CMS_COURSES = 'courses' |
Definition at line 29 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_COURSE_URLS = 'course_urls' |
Definition at line 39 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_DIRECTORY_TREES = 'directory_trees' |
Definition at line 28 of file class.ilECSEventQueueReader.php.
Referenced by ilECSMappingSettingsGUI\dSynchronizeTrees(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_ENROLMENT_STATUS = 'member_status' |
Definition at line 40 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_EXPORTED = 'exported' |
Definition at line 27 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::TYPE_REMOTE_CATEGORY = 'rcat' |
Definition at line 32 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_COURSE = 'rcrs' |
Definition at line 31 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_FILE = 'rfil' |
Definition at line 33 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_GLOSSARY = 'rglo' |
Definition at line 34 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_GROUP = 'rgrp' |
Definition at line 35 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_LEARNING_MODULE = 'rlm' |
Definition at line 36 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_TEST = 'rtst' |
Definition at line 38 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::TYPE_REMOTE_WIKI = 'rwik' |
Definition at line 37 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), and ilECSTaskScheduler\handleEvents().