|
ILIAS
release_8 Revision v8.24
|
Reads ECS events and stores them in the database. More...
Collaboration diagram for ilECSEventQueueReader: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.
@access public
Definition at line 54 of file class.ilECSEventQueueReader.php.
References $DIC, $settings, ILIAS\Repository\logger(), read(), and ILIAS\Repository\settings().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSEventQueueReader::delete | ( | ) |
Delete by server id.
Definition at line 305 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
Here is the call graph for this function:| ilECSEventQueueReader::deleteAll | ( | ) |
Delete all events.
Definition at line 236 of file class.ilECSEventQueueReader.php.
References $query, and ILIAS\Repository\settings().
Here is the call graph for this function:| ilECSEventQueueReader::deleteAllEContentEvents | ( | array | $a_types | ) |
Delete all econtents.
Definition at line 247 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
Referenced by handleImportReset().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Delete all exported events.
Definition at line 259 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
Referenced by handleExportReset().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 516 of file class.ilECSEventQueueReader.php.
| ilECSEventQueueReader::deleteEvent | ( | int | $a_event_id | ) |
delete
Definition at line 483 of file class.ilECSEventQueueReader.php.
References $query, and getServer().
Here is the call graph for this function:
|
static |
All available content types.
Definition at line 77 of file class.ilECSEventQueueReader.php.
Referenced by handleExportReset(), and handleImportReset().
Here is the caller graph for this function:
|
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 $server, $type, and ilRemoteObjectBase\getInstanceByEventType().
Referenced by handleExportReset(), and handleImportReset().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Referenced by handleImportReset().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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(), getAllEContentTypes(), getAllResourceIds(), ilECSExportManager\getInstance(), ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Here is the call graph for this function:| 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, getAllEContentTypes(), getAllResourceIds(), getEventTypeFromObjectType(), ilECSImportManager\getInstance(), ilECSUtils\getPossibleRemoteTypes(), ILIAS\Repository\logger(), ILIAS\Repository\settings(), and ilECSEvent\UPDATED.
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
|
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(), TYPE_CMS_COURSE_MEMBERS, TYPE_CMS_COURSES, TYPE_COURSE_URLS, TYPE_DIRECTORY_TREES, TYPE_ENROLMENT_STATUS, TYPE_REMOTE_CATEGORY, TYPE_REMOTE_COURSE, TYPE_REMOTE_FILE, TYPE_REMOTE_GLOSSARY, TYPE_REMOTE_GROUP, TYPE_REMOTE_LEARNING_MODULE, TYPE_REMOTE_TEST, TYPE_REMOTE_WIKI, and ilECSEvent\UPDATED.
Referenced by refresh().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_CMS_COURSES = 'courses' |
Definition at line 29 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_COURSE_URLS = 'course_urls' |
Definition at line 39 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_DIRECTORY_TREES = 'directory_trees' |
Definition at line 28 of file class.ilECSEventQueueReader.php.
Referenced by ilECSMappingSettingsGUI\dSynchronizeTrees(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_ENROLMENT_STATUS = 'member_status' |
Definition at line 40 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| 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(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_COURSE = 'rcrs' |
Definition at line 31 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_FILE = 'rfil' |
Definition at line 33 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_GLOSSARY = 'rglo' |
Definition at line 34 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_GROUP = 'rgrp' |
Definition at line 35 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_LEARNING_MODULE = 'rlm' |
Definition at line 36 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_TEST = 'rtst' |
Definition at line 38 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_WIKI = 'rwik' |
Definition at line 37 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().