1 | <?php |
||
8 | trait BaseTrait { |
||
9 | protected $_variations=[ ]; |
||
10 | protected $_states=[ ]; |
||
11 | protected $_baseClass; |
||
12 | |||
13 | protected abstract function setPropertyCtrl($name, $value, $typeCtrl); |
||
14 | |||
15 | protected abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
||
16 | |||
17 | public abstract function addToProperty($name, $value, $separator=" "); |
||
18 | |||
19 | public function addVariation($variation) { |
||
22 | |||
23 | public function addState($state) { |
||
26 | |||
27 | public function setVariation($variation) { |
||
31 | |||
32 | public function setState($state) { |
||
36 | |||
37 | public function setVariations($variations=array()) { |
||
43 | |||
44 | public function setStates($states=array()) { |
||
50 | |||
51 | /** |
||
52 | * |
||
53 | * {@inheritDoc} |
||
54 | * |
||
55 | * @see \Ajax\common\html\HtmlSingleElement::setSize() |
||
56 | */ |
||
57 | public function setSize($size) { |
||
60 | |||
61 | /** |
||
62 | * show it is currently unable to be interacted with |
||
63 | * @return \Ajax\semantic\html\elements\HtmlSemDoubleElement |
||
64 | */ |
||
65 | public function setDisabled() { |
||
68 | |||
69 | /** |
||
70 | * |
||
71 | * @param string $color |
||
72 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
||
73 | */ |
||
74 | public function setColor($color) { |
||
77 | |||
78 | /** |
||
79 | * |
||
80 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
||
81 | */ |
||
82 | public function setFluid() { |
||
85 | |||
86 | /** |
||
87 | * can be formatted to appear on dark backgrounds |
||
88 | */ |
||
89 | public function setInverted() { |
||
92 | |||
93 | public function setCircular() { |
||
96 | } |