1<?
php declare(strict_types=1);
56 $pageObject->setParentId($contentPageId);
57 $pageObject->setId($contentPageId);
58 $pageObject->setLanguage($language);
59 $pageObject->createFromXML();
72 $pageObjectGUI->setEnabledTabs(
false);
73 $pageObjectGUI->setFileDownloadLink(ILIAS_HTTP_PATH);
74 $pageObjectGUI->setFullscreenLink(ILIAS_HTTP_PATH);
75 $pageObjectGUI->setSourcecodeDownloadScript(ILIAS_HTTP_PATH);
76 $pageObjectGUI->setProfileBackUrl(ILIAS_HTTP_PATH);
77 $text = $pageObjectGUI->getHTML();
79 $readingTimeTransformation = $this->refinery->string()->estimatedReadingTime();
80 $readingTime =
new PageReadingTime($readingTimeTransformation->transform($text));
88 $this->pageMetricsRepository->store($pageMetrics);
98 return $this->pageMetricsRepository->findBy(
99 $command->getContentPageId(),
100 $command->getContentPageId(),
101 $command->getLanguage()
An exception for terminatinating execution or to throw for unit testing.
store(StorePageMetricsCommand $command)
__construct(PageMetricsRepository $pageMetricsRepository, Factory $refinery)
PageMetricsService constructor.
ensurePageObjectExists(int $contentPageId, string $language)
doesPageExistsForLanguage(int $contentPageId, string $language)
Class ilContentPagePageGUI @ilCtrl_Calls ilContentPagePageGUI: ilPageEditorGUI, ilEditClipboardGUI,...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
Interface ilContentPageObjectConstants.