41         $this->lm_set = new \ilSetting(
"lm");
    43         $this->page_manager = new \ILIAS\COPage\ReadingTime\ReadingTimeManager();
    48         return (
bool) $this->lm_set->get(
"est_reading_time");
    53         return $this->repo->isActivated($lm_id);
    60     public function activate(
int $lm_id, 
bool $activate): void
    62         $is_active = $this->repo->isActivated($lm_id);
    63         $this->repo->activate($lm_id, $activate);
    64         if (!$is_active && $activate) {
    65             $this->page_manager->setMissingReadingTimes(
"lm", $lm_id);
    77         $reading_time = $this->page_manager->getParentReadingTime(
"lm", $lm_id);
    78         $this->repo->saveReadingTime($lm_id, $reading_time);
    83         $this->repo->loadData($lm_ids);
    91         return $this->repo->getReadingTime($lm_id);
 
activate(int $lm_id, bool $activate)
Set activation. 
 
updateReadingTime(int $lm_id)
Gets the calculated reading time from all pages of the LM and stores it (redundantly for quick access...
 
getReadingTime(int $lm_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...