20 declare(strict_types=1);
    46         if (!isset($this->positionRepo)) {
    48             $this->positionRepo = 
$dic[
"repo.Positions"];
    59         $html = $this->render();
    72         if (!is_array($authorities)) {
    75         foreach ($authorities as $authority) {
    86         $this->value = $a_value;
   100     protected function render(): 
string   102         $tpl = 
new ilTemplate(
"tpl.authority_input.html", 
true, 
true, 
"components/ILIAS/OrgUnit");
   116         $tpl->setVariable(
"POST_VAR", 
$postvar);
   121             $txt = $this->
dic()->language()->txt(
'scope_' . $scope);
   122             $scope_html .= 
"<option value='{$scope}'>{$txt}</option>";
   124         $tpl->setVariable(
"SCOPE_OPTIONS", $scope_html);
   128         $title = $this->
lang()->txt(
'over_' . $over_everyone);
   129         $over_html = 
"<option value='{$over_everyone}'>{$title}</option>";
   131             $over_html .= 
"<option value='{$id}'>{$title}</option>";
   133         $tpl->setVariable(
"OVER_OPTIONS", $over_html);
   147         $tpl->touchBlock(
"inline_in_bl");
   162         $lang = $this->
dic()->language();
   164             $lang->loadLanguageModule(
'orgu');
   176     protected function initJS(): 
void   183         $globalTpl->addJavascript(
"assets/js/authority.js");
   185         $config = json_encode(array());
   189         foreach ($authorities as $authority) {
   191                 'id' => $authority->getId(),
   192                 'over' => $authority->getOver(),
   193                 'scope' => $authority->getScope()
   196         $data = json_encode($auth);
   198         $globalTpl->addOnLoadCode(
"ilOrgUnitAuthorityInput.init({$config}, {$data});");
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
Interface Observer  Contains several chained tasks and infos about them. 
 
setVariable($variable, $value='')
Sets a variable value. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
__construct(Container $dic, ilPlugin $plugin)