| 1 | <?php |
||
| 4 | class Helper |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @see http://stackoverflow.com/a/1589535 |
||
| 8 | * @param string $text |
||
| 9 | * @return string |
||
| 10 | */ |
||
| 11 | 3 | public static function camelCaseToUnderscore($text) |
|
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $glue |
||
| 18 | * @param string $input |
||
| 19 | * @param int $multiplier |
||
| 20 | * @param string $prefix |
||
| 21 | * @param string $suffix |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | 3 | public static function stringRepeat($glue, $input, $multiplier, $prefix = '', $suffix = '') |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $glue |
||
| 34 | * @param array $input |
||
| 35 | * @param string $itemPrefix |
||
| 36 | * @param string $itemSuffix |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 17 | public static function arrayImplode($glue, $input, $itemPrefix = '', $itemSuffix = '') |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $name |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | 25 | public static function normalizeName($name) |
|
| 55 | } |
||
| 56 |