|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Reads ECS events and stores them in the database. More...
Collaboration diagram for ilECSEventQueueReader: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 @access 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 @access private More... | |
| read () | |
| Read @access 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 @global 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.
@access public
Definition at line 64 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, ilECSSetting\getInstanceByServerId(), read(), and settings().
Here is the call graph for this function:| ilECSEventQueueReader::add | ( | $a_type, | |
| $a_id, | |||
| $a_op | |||
| ) |
add
@access public
Definition at line 531 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
Here is the call graph for this function:| ilECSEventQueueReader::delete | ( | $a_event_id | ) |
delete @access private
| int | event id |
Definition at line 584 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
Here is the call graph for this function:| ilECSEventQueueReader::deleteAll | ( | ) |
Delete all events.
@access public
Definition at line 281 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
Here is the call graph for this function:| ilECSEventQueueReader::deleteAllEContentEvents | ( | array | $a_types | ) |
Delete all econtents.
@access public
| array | $a_types |
Definition at line 299 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
Here is the call graph for this function:
|
protected |
Delete all exported events.
@access public
Definition at line 317 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
Here is the call graph for this function:
|
static |
Definition at line 626 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, and $query.
Referenced by ilECSSetting\delete().
Here is the caller graph for this function:
|
static |
Delete by server id @global ilDB $ilDB.
| int | $a_server_id |
Definition at line 374 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, and $query.
Referenced by ilECSSettingsGUI\doDelete().
Here is the caller graph for this function:
|
static |
All available content types.
Definition at line 97 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 | |
| array | $a_types | |
| bool | $a_sender_only |
Definition at line 112 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
@access public
Definition at line 271 of file class.ilECSEventQueueReader.php.
|
staticprotected |
Convert object type to event type.
| string | $a_obj_type |
Definition at line 86 of file class.ilECSEventQueueReader.php.
Referenced by handleImportReset().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
static |
Handle export reset.
Delete exported econtent and create it again
throws ilException, ilECSConnectorException
Definition at line 220 of file class.ilECSEventQueueReader.php.
References $GLOBALS, $server, ilECSExport\_deleteEContentIds(), ilECSExport\_getAllEContentIds(), getAllEContentTypes(), and getAllResourceIds().
Referenced by ilECSSettingsGUI\readAll().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Reread all imported econtent.
throws ilException, ilECSConnectorException
Definition at line 133 of file class.ilECSEventQueueReader.php.
References $DIC, $GLOBALS, $server, $type, ilObject\_lookupType(), ilECSEvent\CREATED, ilECSEvent\DESTROYED, getAllEContentTypes(), ilECSImport\getAllImportedRemoteObjects(), getAllResourceIds(), getEventTypeFromObjectType(), ilECSUtils\getPossibleRemoteTypes(), and ilECSEvent\UPDATED.
Referenced by ilECSSettingsGUI\readAll().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSEventQueueReader::read | ( | ) |
Read @access public.
Definition at line 602 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and getServer().
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 @access public.
| ilECSConnectorException |
Definition at line 336 of file class.ilECSEventQueueReader.php.
References Vendor\Package\$e, $GLOBALS, $res, $result, getServer(), and writeEventToDB().
Here is the call graph for this function:| ilECSEventQueueReader::shift | ( | ) |
get and delete the first event entry
@access public
Definition at line 513 of file class.ilECSEventQueueReader.php.
|
private |
update one entry
@access private
Definition at line 564 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $query, $res, and getServer().
Here is the call graph for this function:
|
private |
Write event to db.
Definition at line 388 of file class.ilECSEventQueueReader.php.
References $DIC, $ilDB, $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:
|
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(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_CMS_COURSES = 'courses' |
Definition at line 40 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_COURSE_URLS = 'course_urls' |
Definition at line 50 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_DIRECTORY_TREES = 'directory_trees' |
Definition at line 39 of file class.ilECSEventQueueReader.php.
Referenced by ilECSMappingSettingsGUI\dSynchronizeTrees(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_ENROLMENT_STATUS = 'member_status' |
Definition at line 51 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| 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(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_COURSE = 'rcrs' |
Definition at line 42 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_FILE = 'rfil' |
Definition at line 44 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_GLOSSARY = 'rglo' |
Definition at line 45 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_GROUP = 'rgrp' |
Definition at line 46 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_LEARNING_MODULE = 'rlm' |
Definition at line 47 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_TEST = 'rtst' |
Definition at line 49 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().
| const ilECSEventQueueReader::TYPE_REMOTE_WIKI = 'rwik' |
Definition at line 48 of file class.ilECSEventQueueReader.php.
Referenced by ilRemoteObjectBase\getInstanceByEventType(), ilECSTaskScheduler\handleEvents(), and writeEventToDB().