25 parent::__construct($a_title, $a_postvar);
30 $a = ilOrgUnitAuthority::find(
$id);
31 $data = array(
'id' =>
$id,
'over' => $a->getOver(),
'scope' => $a->getScope() );
33 return json_encode(
$data);
43 $html = $this->render();
57 if (!is_array($authorities)) {
72 $this->value = $a_value;
85 protected function render()
87 $tpl =
new ilTemplate(
"tpl.authority_input.html",
true,
true,
"Modules/OrgUnit");
106 $txt = $this->
dic()->language()->txt(
'scope_' . $scope);
107 $scope_html .=
"<option value='{$scope}'>{$txt}</option>";
109 $tpl->setVariable(
"SCOPE_OPTIONS", $scope_html);
113 $title = $this->
lang()->txt(
'over_' . $over_everyone);
114 $over_html =
"<option value='{$over_everyone}'>{$title}</option>";
116 $over_html .=
"<option value='{$id}'>{$title}</option>";
118 $tpl->setVariable(
"OVER_OPTIONS", $over_html);
132 $tpl->touchBlock(
"inline_in_bl");
157 $lang->loadLanguageModule(
'orgu');
174 protected function initJS()
181 $globalTpl->addJavascript(
"./Modules/OrgUnit/templates/default/authority.js");
182 $config = json_encode(array());
184 $globalTpl->addOnLoadCode(
"ilOrgUnitAuthorityInput.init({$config}, {$data});");
if(!array_key_exists('StateId', $_REQUEST)) $id
setVariable($variable, $value='')
Sets a variable value.
special template class to simplify handling of ITX/PEAR
static replaceNameRenderer(Closure $closure)
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
Interface for multi values support.
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
static getArray($key=null, $values=null)
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.