ILIAS
Release_4_2_x_branch Revision 61807
|
Reads ECS events and stores them in the database. More...
Public Member Functions | |
__construct ($a_server_id) | |
Constructor. | |
getServer () | |
get server setting | |
getEvents () | |
get all events | |
deleteAll () | |
Delete all events. | |
deleteAllEContentEvents () | |
Delete all econtents. | |
deleteAllExportedEvents () | |
Delete all exported events. | |
refresh () | |
Fetch events from fifo Using fifo public. | |
shift () | |
get and delete the first event entry | |
add ($a_type, $a_id, $a_op) | |
add | |
read () | |
Read public. |
Static Public Member Functions | |
static | handleImportReset (ilECSSetting $server) |
Reread all imported econtent. | |
static | handleExportReset (ilECSSetting $server) |
Handle export reset. | |
static | deleteServer ($a_server_id) |
Delete by server id ilDB $ilDB. |
Data Fields | |
const | TYPE_ECONTENT = 'econtents' |
const | TYPE_EXPORTED = 'exported' |
const | ADMIN_RESET = 'reset' |
const | ADMIN_RESET_ALL = 'reset_all' |
Protected Attributes | |
$log | |
$db | |
$events = array() | |
$econtent_ids = array() |
Private Member Functions | |
writeEventToDB (ilECSEvent $ev) | |
Write event to db. | |
update ($a_type, $a_id, $a_operation) | |
update one entry | |
delete ($a_event_id) | |
delete private |
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 55 of file class.ilECSEventQueueReader.php.
References $ilDB, $ilLog, ilECSSetting\getInstanceByServerId(), and read().
ilECSEventQueueReader::add | ( | $a_type, | |
$a_id, | |||
$a_op | |||
) |
add
public
Definition at line 434 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, $res, and getServer().
|
private |
delete private
int | event id |
Definition at line 483 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, $res, and getServer().
ilECSEventQueueReader::deleteAll | ( | ) |
Delete all events.
public
Definition at line 243 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, $res, and getServer().
ilECSEventQueueReader::deleteAllEContentEvents | ( | ) |
Delete all econtents.
public
Definition at line 258 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, $res, and getServer().
Referenced by handleImportReset().
ilECSEventQueueReader::deleteAllExportedEvents | ( | ) |
Delete all exported events.
public
Definition at line 274 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, $res, and getServer().
Referenced by handleExportReset().
|
static |
Delete by server id ilDB $ilDB.
int | $a_server_id |
Definition at line 334 of file class.ilECSEventQueueReader.php.
Referenced by ilECSSettingsGUI\doDelete().
ilECSEventQueueReader::getEvents | ( | ) |
get all events
public
Definition at line 233 of file class.ilECSEventQueueReader.php.
ilECSEventQueueReader::getServer | ( | ) |
get server setting
Definition at line 221 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 161 of file class.ilECSEventQueueReader.php.
References $GLOBALS, $reader, ilECSExport\_deleteEContentIds(), ilECSExport\_getAllEContentIds(), deleteAllExportedEvents(), ilECSSetting\getServerId(), and ilECSEContentReader\SENDER_ONLY.
Referenced by ilECSSettingsGUI\readAll().
|
static |
Reread all imported econtent.
Definition at line 76 of file class.ilECSEventQueueReader.php.
References $ilLog, $reader, ilECSImport\_getAllImportedLinks(), ilECSEvent\CREATED, deleteAllEContentEvents(), ilECSEvent\DESTROYED, ilECSSetting\getServerId(), TYPE_ECONTENT, and ilECSEvent\UPDATED.
Referenced by ilECSSettingsGUI\readAll().
ilECSEventQueueReader::read | ( | ) |
Read public.
Definition at line 499 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and getServer().
Referenced by __construct().
ilECSEventQueueReader::refresh | ( | ) |
Fetch events from fifo Using fifo public.
ilECSConnectorException,ilECSReaderException |
Definition at line 291 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 414 of file class.ilECSEventQueueReader.php.
|
private |
update one entry
private
Definition at line 465 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, $res, and getServer().
|
private |
Write event to db.
Definition at line 346 of file class.ilECSEventQueueReader.php.
References $GLOBALS, $ilDB, $query, $res, $row, ilECSEvent\CREATED, DB_FETCHMODE_OBJECT, ilECSEvent\DESTROYED, ilECSEvent\getRessourceId(), getServer(), ilECSEvent\getStatus(), and ilECSEvent\UPDATED.
Referenced by refresh().
|
protected |
Definition at line 45 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 48 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 47 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 44 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::ADMIN_RESET = 'reset' |
Definition at line 41 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::ADMIN_RESET_ALL = 'reset_all' |
Definition at line 42 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::TYPE_ECONTENT = 'econtents' |
Definition at line 38 of file class.ilECSEventQueueReader.php.
Referenced by handleImportReset().
const ilECSEventQueueReader::TYPE_EXPORTED = 'exported' |
Definition at line 39 of file class.ilECSEventQueueReader.php.