19 declare(strict_types=1);
30 class Glyph implements C\Symbol\Glyph\Glyph
39 self::COLLAPSE_HORIZONTAL,
48 self::SORT_DESCENDING,
92 public function __construct(
string $type,
string $label,
string $action = null)
94 $this->checkArgIsElement(
"type", $type, self::$types,
"glyph type");
99 $this->counters = array();
100 $this->highlighted =
false;
132 return array_values($this->counters);
140 $clone = clone $this;
141 $clone->counters[$counter->
getType()] = $counter;
158 $clone = clone $this;
159 $clone->highlighted =
true;
176 $clone = clone $this;
177 $clone->active =
false;
202 $clone = clone $this;
212 $has_action = ($this->action !== null && $this->action !==
"");
213 $has_signal = isset($this->triggered_signals[
'click']) && $this->triggered_signals[
'click'] !== null;
214 return ($has_signal || $has_action) && $this->
isActive();
appendTriggeredSignal(C\Signal $signal, string $event)
Append a triggered signal to other signals of the same event.
This tags a counter object.
withTriggeredSignal(C\Signal $signal, string $event)
Add a triggered signal, replacing any other signals registered on the same event. ...
withOnClick(Signal $signal)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
__construct(string $type, string $label, string $action=null)
getType()
Get the type of the counter.
appendOnClick(Signal $signal)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withCounter(Counter $counter)