19 declare(strict_types=1);
30 class Glyph implements C\Symbol\Glyph\Glyph
39 self::COLLAPSE_HORIZONTAL,
48 self::SORT_DESCENDING,
92 self::COLUMN_SELECTION,
106 $this->checkArgIsElement(
"type", $type, self::$types,
"glyph type");
112 $this->counters = array();
113 $this->highlighted =
false;
128 $clone = clone $this;
143 return array_values($this->counters);
148 $clone = clone $this;
149 $clone->counters[$counter->
getType()] = $counter;
160 $clone = clone $this;
161 $clone->highlighted =
true;
178 $clone = clone $this;
179 $clone->active =
false;
204 $clone = clone $this;
214 $has_action = ($this->action !==
null && $this->action !==
"");
215 $has_signal = isset($this->triggered_signals[
'click']) && $this->triggered_signals[
'click'] !==
null;
216 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)
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
getType()
Get the type of the counter.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(string $type, string $label, ?string $action=null)
appendOnClick(Signal $signal)
withCounter(Counter $counter)