| 1 | <?php |
||
| 7 | class Html |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Check if an attribute has surrounding attributes. |
||
| 11 | * |
||
| 12 | * @param string $attribute |
||
| 13 | * |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | 5 | public static function hasSurroundingAttributes($attribute) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * Check if an attribute is a HTML 5 data-* attribute. |
||
| 23 | * |
||
| 24 | * @param string $attribute |
||
| 25 | * |
||
| 26 | * @return int |
||
| 27 | */ |
||
| 28 | 5 | public static function isDataAttribute($attribute) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Check if an attribute is the last attribute of the element. |
||
| 35 | * |
||
| 36 | * @param $attribute |
||
| 37 | * |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | 2 | public static function isLastAttribute($attribute) |
|
| 44 | } |
||
| 45 |