1 | <?php |
||
10 | trait BaseTrait { |
||
11 | protected $_variations=[ ]; |
||
12 | protected $_states=[ ]; |
||
13 | protected $_baseClass; |
||
14 | |||
15 | protected abstract function setPropertyCtrl($name, $value, $typeCtrl); |
||
16 | |||
17 | protected abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
||
18 | |||
19 | protected abstract function addToPropertyCtrlCheck($name, $value, $typeCtrl); |
||
20 | |||
21 | public abstract function addToProperty($name, $value, $separator=" "); |
||
22 | |||
23 | public function addVariation($variation) { |
||
26 | |||
27 | public function addState($state) { |
||
30 | |||
31 | public function setVariation($variation) { |
||
35 | |||
36 | public function setVariations($variations) { |
||
37 | $this->setProperty("class", $this->_baseClass); |
||
|
|||
38 | if (\is_string($variations)) |
||
39 | $variations=\explode(" ", $variations); |
||
40 | foreach ( $variations as $variation ) { |
||
41 | $this->addVariation($variation); |
||
42 | } |
||
43 | return $this; |
||
44 | } |
||
45 | |||
46 | public function setState($state) { |
||
50 | |||
51 | public function addVariations($variations=array()) { |
||
59 | |||
60 | public function addStates($states=array()) { |
||
68 | |||
69 | public function setStates($states) { |
||
70 | $this->setProperty("class", $this->_baseClass); |
||
71 | if (\is_string($states)) |
||
72 | $states=\explode(" ", $states); |
||
73 | foreach ( $states as $state ) { |
||
74 | $this->addState($state); |
||
75 | } |
||
76 | return $this; |
||
77 | } |
||
78 | |||
79 | public function addIcon($icon, $before=true) { |
||
82 | |||
83 | /** |
||
84 | * |
||
85 | * {@inheritDoc} |
||
86 | * |
||
87 | * @see \Ajax\common\html\HtmlSingleElement::setSize() |
||
88 | */ |
||
89 | public function setSize($size) { |
||
92 | |||
93 | /** |
||
94 | * show it is currently unable to be interacted with |
||
95 | * @return \Ajax\semantic\html\elements\HtmlSemDoubleElement |
||
96 | */ |
||
97 | public function setDisabled() { |
||
100 | |||
101 | /** |
||
102 | * |
||
103 | * @param string $color |
||
104 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
||
105 | */ |
||
106 | public function setColor($color) { |
||
109 | |||
110 | /** |
||
111 | * |
||
112 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
||
113 | */ |
||
114 | public function setFluid() { |
||
117 | |||
118 | /** |
||
119 | * |
||
120 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
||
121 | */ |
||
122 | public function asHeader(){ |
||
125 | |||
126 | /** |
||
127 | * show it is currently the active user selection |
||
128 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
||
129 | */ |
||
130 | public function setActive($value=true){ |
||
133 | |||
134 | /** |
||
135 | * can be formatted to appear on dark backgrounds |
||
136 | */ |
||
137 | public function setInverted() { |
||
140 | |||
141 | public function setCircular() { |
||
144 | |||
145 | public function setFloated($direction="right") { |
||
148 | |||
149 | public function floatRight() { |
||
152 | |||
153 | public function floatLeft() { |
||
156 | |||
157 | public function getBaseClass() { |
||
160 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.