22 public function __construct($a_context = self::CONTEXT_REPOSITORY)
38 $this->static_link_enabled =
true;
39 $this->delete_enabled =
true;
40 $this->cut_enabled =
true;
41 $this->copy_enabled =
true;
42 $this->subscribe_enabled =
true;
43 $this->link_enabled =
true;
44 $this->info_screen_enabled =
true;
45 $this->type = self::OBJ_TYPE;
46 $this->gui_class_name =
'ilObjContentPageGUI';
50 $this->lng->loadLanguageModule(
'copa');
77 if (!$settingsStorage->getSettings()->isReadingTimeEnabled()) {
81 if (!$this->access->checkAccess(
'read',
'', $this->ref_id)) {
87 $language = $ot->getEffectiveContentLang($this->
user->getCurrentLanguage(),
$this->type);
89 $pageMetrics = $this->pageMetricsService->get(
93 $readingTimePropertyValue = sprintf(
94 $this->lng->txt(
'copa_value_reading_time_f_p'),
95 (string) $pageMetrics->readingTime()->minutes()
97 if (1 === $pageMetrics->readingTime()->minutes()) {
98 $readingTimePropertyValue = sprintf(
99 $this->lng->txt(
'copa_value_reading_time_f_s'),
100 (string) $pageMetrics->readingTime()->minutes()
106 'property' => $this->lng->txt(
'copa_prop_reading_time'),
107 'value' => $readingTimePropertyValue,
$pageMetricsService
PageMetricsService.
Class ilObjContentPageListGUI.
__construct($a_context=self::CONTEXT_REPOSITORY)
ilObjContentPageListGUI constructor.
checkInfoPageOnAsynchronousRendering()
__construct(Container $dic, ilPlugin $plugin)
static getInstance($a_obj_id)
Get instance.
const INFO_TAB_VISIBILITY
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.