18 declare(strict_types=1);
    38         $this->
logger = $DIC->logger()->wsrv();
    69             $details = $crs_reader->getCourse($a_content_id, 
true);
    70             $this->mid = $details->getMySender();
    74             if (!$part->isImportEnabled()) {
    75                 $this->
logger->info(__METHOD__ . 
': Import disabled for mid ' . $this->
getMid());
    83             $enabled = $gl_settings->isCourseAllocationEnabled();
    85                 $this->
logger->info(__METHOD__ . 
': Course allocation disabled for ' . $this->
getMid());
    89             $this->
logger->error(__METHOD__ . 
': Reading course details failed with message ' . $e->getMessage());
   104             $course = $this->
readCourse($server, $a_content_id);
   105             $this->
logger->info(__METHOD__ . 
': ' . print_r($course, 
true));
   106             $this->
doUpdate($a_content_id, $course);
   109             $this->
logger->error(__METHOD__ . 
': Course creation failed  with mesage ' . $e->getMessage());
   134             $course = $this->
readCourse($server, $a_content_id);
   135             $this->
doUpdate($a_content_id, $course);
   138             $this->
logger->error(__METHOD__ . 
': Course creation failed  with mesage ' . $e->getMessage());
   148     protected function doUpdate(
int $a_content_id, $course): void
   150         $this->
logger->info(__METHOD__ . 
': Starting course creation/update');
   153         $creation_handler->handle($a_content_id, $course);
 
static getInstance(int $a_server_id, int $mid)
Get instance by server id and mid. 
 
static getInstanceByServerMid(int $a_server_id, int $a_mid)
Get instance. 
 
server()
 description: > This example shows how a Progress Bar can be rendered and updated by the server...
 
handleCreate(ilECSSetting $server, $a_content_id)
Handle create. 
 
Interface for all command queue handler classes. 
 
doUpdate(int $a_content_id, $course)
Perform update. 
 
handleUpdate(ilECSSetting $server, $a_content_id)
Handle update. 
 
handleDelete(ilECSSetting $server, $a_content_id)
Handle delete. 
 
checkAllocationActivation(ilECSSetting $server, $a_content_id)
Check if course allocation is activated for one recipient of the. 
 
__construct(ilECSSetting $server)
Constructor. 
 
readCourse(ilECSSetting $server, $a_content_id)
Read course from ecs.