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