ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
trait.ilObjFileCopyrightInput.php File Reference

Go to the source code of this file.

Functions

 getLanguage ()
 

Variables

trait ilObjFileCopyrightInput
 

Function Documentation

◆ getLanguage()

getLanguage ( )
abstractprotected

Referenced by ilPageObject\buildDom(), ViewControlContainerTest\buildFieldFactory(), ViewControlTestBase\buildFieldFactory(), TableTestBase\buildFieldFactory(), MarkdownTest\buildMinimalFieldFactory(), ViewControlContainerTest\buildVCFactory(), ViewControlTestBase\buildVCFactory(), ilPCContentTemplate\create(), ilPageObject\createFromXML(), ilPageObject\delete(), ilWikiPage\delete(), ilAccess\doConditionCheck(), ilAccess\doPathCheck(), ilAccess\doTreeCheck(), ilPCTable\getCellNode(), TableRendererTestBase\getColumnFactory(), TreeMultiSelectTest\getFieldFactory(), TreeSelectTest\getFieldFactory(), ilPageObject\getHistoryEntries(), ilPageObject\getHistoryEntry(), ilPageObject\getHistoryInfo(), DataRendererTest\getRenderer(), OrderingRendererTest\getRenderer(), ViewControlPaginationTest\getStubRenderer(), TableTestBase\getTableFactory(), ScoreSettingsTest\getUIPack(), TableTestBase\getViewControlFactory(), ilExerciseMailNotification\initLanguage(), ilPageObjectGUI\initPageObject(), ilObjFileGUI\initUploadForm(), ilPageObject\isTranslationPage(), ilPCDataTable\makeEmptyCell(), ilPageObject\read(), ilWikiPageGUI\renamePage(), ilWikiPage\saveInternalLinks(), ilPCParagraph\setText(), ILIAS\Tests\UI\Component\Dropzone\File\FileTestBase\setUp(), ILIAS\Tests\UI\Component\Input\Container\Form\FormWithoutSubmitButtonsTest\setUp(), ExamplesTest\setUpMockDependencies(), GlyphTest\testDontRenderCounter(), DefaultRendererTest\testPassesOtherOnAsRoot(), DefaultRendererTest\testPassesSelfAsRootIfNoRootExist(), DataRendererTest\testRenderEmptyDataCell(), PresentationTest\testRenderEmptyTableEntry(), ScoreSettingsTest\testScoreSettingsSectionSummary(), ilPageObject\update(), ilWikiPage\update(), and ilPageObject\updateFromXML().

+ Here is the caller graph for this function:

Variable Documentation

◆ ilObjFileCopyrightInput

trait ilObjFileCopyrightInput
Initial value:
{
public function getCopyrightSelectionInput(string $lang_var_title): Radio
{
static $copyright_input;
if ($copyright_input !== null) {
return $copyright_input;
}
$copyright_input = $this->getUIFactory()->input()->field()->radio($this->getLanguage()->txt($lang_var_title));
foreach ($this->lom_services->copyrightHelper()->getNonOutdatedCopyrightPresets() as $copyright_option) {
$copyright_input = $copyright_input->withOption(
$copyright_option->identifier(),
$copyright_option->title(),
$copyright_option->description()
);
if ($copyright_option->isDefault()) {
$copyright_input = $copyright_input->withValue($copyright_option->identifier());
}
}
return $copyright_input;
}
abstract protected function getUIFactory(): Factory
This implements the radio input.
Definition: Radio.php:35
withOption(string $value, string $label, ?string $byline=null)
Definition: Radio.php:74
This is how the factory for UI elements looks.
Definition: Factory.php:38
getLanguage()
Author
Lukas Zehnder lukas.nosp@m.@sr..nosp@m.solut.nosp@m.ions

Definition at line 27 of file trait.ilObjFileCopyrightInput.php.