1 | <?php |
||
9 | trait BaseTrait { |
||
10 | protected $_variations=[ ]; |
||
11 | protected $_states=[ ]; |
||
12 | protected $_baseClass; |
||
13 | |||
14 | protected abstract function setPropertyCtrl($name, $value, $typeCtrl); |
||
15 | |||
16 | protected abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
||
17 | |||
18 | protected abstract function addToPropertyCtrlCheck($name, $value, $typeCtrl); |
||
19 | |||
20 | public abstract function addToProperty($name, $value, $separator=" "); |
||
21 | |||
22 | public function addVariation($variation) { |
||
25 | |||
26 | public function addState($state) { |
||
29 | |||
30 | public function setVariation($variation) { |
||
34 | |||
35 | public function setState($state) { |
||
39 | |||
40 | public function addVariations($variations=array()) { |
||
48 | |||
49 | public function addStates($states=array()) { |
||
57 | |||
58 | /** |
||
59 | * |
||
60 | * {@inheritDoc} |
||
61 | * |
||
62 | * @see \Ajax\common\html\HtmlSingleElement::setSize() |
||
63 | */ |
||
64 | public function setSize($size) { |
||
67 | |||
68 | /** |
||
69 | * show it is currently unable to be interacted with |
||
70 | * @return \Ajax\semantic\html\elements\HtmlSemDoubleElement |
||
71 | */ |
||
72 | public function setDisabled() { |
||
75 | |||
76 | /** |
||
77 | * |
||
78 | * @param string $color |
||
79 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
||
80 | */ |
||
81 | public function setColor($color) { |
||
84 | |||
85 | /** |
||
86 | * |
||
87 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
||
88 | */ |
||
89 | public function setFluid() { |
||
92 | |||
93 | /** |
||
94 | * can be formatted to appear on dark backgrounds |
||
95 | */ |
||
96 | public function setInverted() { |
||
99 | |||
100 | public function setCircular() { |
||
103 | |||
104 | public function setFloated($direction="right") { |
||
107 | |||
108 | public function floatRight() { |
||
111 | |||
112 | public function floatLeft() { |
||
115 | } |