2 require_once(
'./Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php');
51 $this->lng = $DIC->language();
82 $this->type = (int) $a_value;
102 $this->
id = $a_value;
123 $this->caption = $a_value;
124 $this->caption_is_lng_id = (bool) $a_is_lng_id;
139 if ($this->caption_is_lng_id &&
140 (
bool) $a_translate) {
154 $this->primary = (bool) $a_value;
174 $this->omit_prevent_double_submission = (bool) $a_value;
194 $this->onclick = trim($a_value);
214 $this->acc_key = trim($a_value);
234 $this->disabled = (bool) $a_value;
254 $this->css[] = $a_value;
282 $css[] =
"btn-primary";
285 $css[] =
"omitPreventDoubleSubmission";
288 return implode(
" ",
$css);
300 foreach ($a_attr as
$id => $value) {
302 $res[] = strtolower(trim(
$id)) .
'="' . $value .
'"';
307 return " " . implode(
" ",
$res);
320 $attr[
"id"] = $this->
getId();
325 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
330 $attr[
"disabled"] =
"disabled";
333 if (
sizeof($a_additional_attr)) {
334 $attr = array_merge($attr, $a_additional_attr);
369 abstract public function render();
static getKey($a_func_id, $lang_key="0", $a_ignore_default=false)
Get single access key.
foreach($_POST as $key=> $value) $res