@@ 171-182 (lines=12) @@ | ||
168 | * @return self |
|
169 | * @throws \yii\base\InvalidConfigException |
|
170 | */ |
|
171 | public function rotate($value) |
|
172 | { |
|
173 | return $this->addCssClass( |
|
174 | FA::$cssPrefix . '-rotate-' . $value, |
|
175 | in_array((string)$value, [FA::ROTATE_90, FA::ROTATE_180, FA::ROTATE_270], true), |
|
176 | sprintf( |
|
177 | '%s - invalid value. Use one of the constants: %s.', |
|
178 | 'FA::rotate()', |
|
179 | 'FA::ROTATE_90, FA::ROTATE_180, FA::ROTATE_270' |
|
180 | ) |
|
181 | ); |
|
182 | } |
|
183 | ||
184 | /** |
|
185 | * @param string $value |
|
@@ 189-200 (lines=12) @@ | ||
186 | * @return self |
|
187 | * @throws \yii\base\InvalidConfigException |
|
188 | */ |
|
189 | public function flip($value) |
|
190 | { |
|
191 | return $this->addCssClass( |
|
192 | FA::$cssPrefix . '-flip-' . $value, |
|
193 | in_array((string)$value, [FA::FLIP_HORIZONTAL, FA::FLIP_VERTICAL], true), |
|
194 | sprintf( |
|
195 | '%s - invalid value. Use one of the constants: %s.', |
|
196 | 'FA::flip()', |
|
197 | 'FA::FLIP_HORIZONTAL, FA::FLIP_VERTICAL' |
|
198 | ) |
|
199 | ); |
|
200 | } |
|
201 | ||
202 | /** |
|
203 | * Change html tag. |