ILIAS
Release_4_1_x_branch Revision 61804
|
Reads ECS events and stores them in the database. More...
Public Member Functions | |
__construct () | |
Constructor. | |
getEvents () | |
get all events | |
deleteAll () | |
Delete all events. | |
deleteAllEContentEvents () | |
Delete all econtents. | |
deleteAllExportedEvents () | |
Delete all exported events. | |
refresh () | |
Fetch events from ECS server. | |
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 () |
handle admin reset | |
static | handleExportReset () |
Handle export reset. |
Data Fields | |
const | TYPE_ECONTENT = 'econtents' |
const | TYPE_EXPORTED = 'exported' |
const | OPERATION_DELETE = 'delete' |
const | OPERATION_UPDATE = 'update' |
const | OPERATION_CREATE = 'create' |
const | OPERATION_NEWLY_CREATED = 'newly-created' |
const | ADMIN_RESET = 'reset' |
const | ADMIN_RESET_ALL = 'reset_all' |
Protected Attributes | |
$log | |
$db | |
$events = array() | |
$econtent_ids = array() |
Private Member Functions | |
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 34 of file class.ilECSEventQueueReader.php.
ilECSEventQueueReader::__construct | ( | ) |
Constructor.
public
Definition at line 58 of file class.ilECSEventQueueReader.php.
References $ilDB, $ilLog, ilECSSettings\_getInstance(), and read().
ilECSEventQueueReader::add | ( | $a_type, | |
$a_id, | |||
$a_op | |||
) |
add
public
Definition at line 355 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, and $res.
Referenced by refresh().
|
private |
delete private
int | event id |
Definition at line 402 of file class.ilECSEventQueueReader.php.
ilECSEventQueueReader::deleteAll | ( | ) |
ilECSEventQueueReader::deleteAllEContentEvents | ( | ) |
ilECSEventQueueReader::deleteAllExportedEvents | ( | ) |
ilECSEventQueueReader::getEvents | ( | ) |
get all events
public
Definition at line 193 of file class.ilECSEventQueueReader.php.
|
static |
Handle export reset.
Delete exported econtent and create it again
Definition at line 171 of file class.ilECSEventQueueReader.php.
References ilECSExport\_getExportedIDs().
Referenced by refresh().
|
static |
handle admin reset
Definition at line 78 of file class.ilECSEventQueueReader.php.
References $ilLog, $reader, ilECSExport\_deleteEContentIds(), ilECSExport\_getAllEContentIds(), ilECSImport\_getAllImportedLinks(), OPERATION_CREATE, OPERATION_DELETE, OPERATION_UPDATE, and TYPE_ECONTENT.
Referenced by ilECSSettingsGUI\readAll(), and refresh().
ilECSEventQueueReader::read | ( | ) |
Read public.
Definition at line 417 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct(), and refresh().
ilECSEventQueueReader::refresh | ( | ) |
Fetch events from ECS server.
public
@throws | ilECSConnectorException, ilECSReaderException |
Definition at line 250 of file class.ilECSEventQueueReader.php.
References $ilLog, $res, add(), handleExportReset(), handleImportReset(), read(), and update().
ilECSEventQueueReader::shift | ( | ) |
get and delete the first event entry
public
Definition at line 335 of file class.ilECSEventQueueReader.php.
|
private |
update one entry
private
Definition at line 385 of file class.ilECSEventQueueReader.php.
References $ilDB, $query, and $res.
Referenced by refresh().
|
protected |
Definition at line 48 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 51 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 50 of file class.ilECSEventQueueReader.php.
|
protected |
Definition at line 47 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::ADMIN_RESET = 'reset' |
Definition at line 44 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::ADMIN_RESET_ALL = 'reset_all' |
Definition at line 45 of file class.ilECSEventQueueReader.php.
const ilECSEventQueueReader::OPERATION_CREATE = 'create' |
Definition at line 41 of file class.ilECSEventQueueReader.php.
Referenced by handleImportReset().
const ilECSEventQueueReader::OPERATION_DELETE = 'delete' |
Definition at line 39 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents(), and handleImportReset().
const ilECSEventQueueReader::OPERATION_NEWLY_CREATED = 'newly-created' |
Definition at line 42 of file class.ilECSEventQueueReader.php.
Referenced by ilECSTaskScheduler\handleEvents().
const ilECSEventQueueReader::OPERATION_UPDATE = 'update' |
Definition at line 40 of file class.ilECSEventQueueReader.php.
Referenced by handleImportReset().
const ilECSEventQueueReader::TYPE_ECONTENT = 'econtents' |
Definition at line 36 of file class.ilECSEventQueueReader.php.
Referenced by handleImportReset().
const ilECSEventQueueReader::TYPE_EXPORTED = 'exported' |
Definition at line 37 of file class.ilECSEventQueueReader.php.