42            $a = ilOrgUnitAuthority::find(
$id);
 
   43            $data = array(
'id' => 
$id, 
'over' => 
$a->getOver(), 
'scope' => 
$a->getScope());
 
   45            return json_encode(
$data);
 
   54        $html = $this->render();
 
   67        if (!is_array($authorities)) {
 
   70        foreach ($authorities as $authority) {
 
   81        $this->value = $a_value;
 
   95    protected function render(): string
 
   97        $tpl = 
new ilTemplate(
"tpl.authority_input.html", 
true, 
true, 
"Modules/OrgUnit");
 
  116            $txt = $this->
dic()->language()->txt(
'scope_' . $scope);
 
  117            $scope_html .= 
"<option value='{$scope}'>{$txt}</option>";
 
  119        $tpl->setVariable(
"SCOPE_OPTIONS", $scope_html);
 
  123        $title = $this->
lang()->txt(
'over_' . $over_everyone);
 
  124        $over_html = 
"<option value='{$over_everyone}'>{$title}</option>";
 
  126            $over_html .= 
"<option value='{$id}'>{$title}</option>";
 
  128        $tpl->setVariable(
"OVER_OPTIONS", $over_html);
 
  142        $tpl->touchBlock(
"inline_in_bl");
 
  159            $lang->loadLanguageModule(
'orgu');
 
  171    protected function initJS(): void
 
  178        $globalTpl->addJavascript(
"./Modules/OrgUnit/templates/default/authority.js");
 
  179        $config = json_encode(array());
 
  181        $globalTpl->addOnLoadCode(
"ilOrgUnitAuthorityInput.init({$config}, {$data});");
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
 
static getArray(?string $key=null, $values=null)
 
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...
 
static replaceNameRenderer(Closure $closure)
 
special template class to simplify handling of ITX/PEAR
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
 
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
 
Class ChatMainBarProvider \MainMenu\Provider.
 
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples