2 require_once(
'./Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php');
74 $this->type = (int)$a_value;
115 $this->caption = $a_value;
116 $this->caption_is_lng_id = (bool)$a_is_lng_id;
131 if($this->caption_is_lng_id &&
147 $this->primary = (bool)$a_value;
167 $this->omit_prevent_double_submission = (bool)$a_value;
187 $this->onclick = trim($a_value);
207 $this->acc_key = trim($a_value);
227 $this->disabled = (bool)$a_value;
247 $this->css[] = $a_value;
276 $css[] =
"btn-primary";
280 $css[] =
"omitPreventDoubleSubmission";
283 return implode(
" ",
$css);
295 foreach($a_attr as
$id => $value)
299 $res[] = strtolower(trim(
$id)).
'="'.$value.
'"';
305 return " ".implode(
" ",
$res);
318 $attr[
"id"] = $this->
getId();
324 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
330 $attr[
"disabled"] =
"disabled";
333 if(
sizeof($a_additional_attr))
335 $attr = array_merge($attr, $a_additional_attr);
372 abstract public function render();
static getKey($a_func_id, $lang_key="0", $a_ignore_default=false)
Get single access key.
Create styles array
The data for the language used.