ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
trait.ilObjFileCopyrightInput.php File Reference

Go to the source code of this file.

Functions

 getLanguage ()
 

Variables

trait ilObjFileCopyrightInput
 

Function Documentation

◆ getLanguage()

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:34
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getLanguage()
This is how the factory for UI elements looks.
Definition: Factory.php:37
withOption(string $value, string $label, ?string $byline=null)
Definition: Radio.php:74
Author
Lukas Zehnder lukas.nosp@m.@sr..nosp@m.solut.nosp@m.ions

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