14 class Glyph implements C\Glyph\Glyph
50 private static $types = array(self::SETTINGS
59 , self::SORT_ASCENDING
60 , self::SORT_DESCENDING
99 $this->counters = array();
100 $this->highlighted =
false;
131 return array_values($this->counters);
139 $clone = clone $this;
140 $clone->counters[$counter->
getType()] = $counter;
157 $clone = clone $this;
158 $clone->highlighted =
true;
175 $clone = clone $this;
176 $clone->active =
false;
This tags a counter object.
__construct($type, $aria_label, $action=null)
checkArgIsElement($which, $value, $array, $name)
Throw an InvalidArgumentException if $value is not an element of array.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
getType()
Get the type of the counter.
appendOnClick(Signal $signal)
appendTriggeredSignal(Component\Signal $signal, $event)
Append a triggered signal to other signals of the same event.
withCounter(Counter $counter)
withOnClick(Signal $signal)
withTriggeredSignal(Component\Signal $signal, $event)
Add a triggered signal, replacing any other signals registered on the same event. ...