| 1 | <?php  | 
            ||
| 10 | class StringHelper  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * Convert string to camelCase  | 
            ||
| 14 | *  | 
            ||
| 15 | * @param string $string  | 
            ||
| 16 | * @param bool $lcfirst  | 
            ||
| 17 | * @return string  | 
            ||
| 18 | */  | 
            ||
| 19 | public function convertToCamelCase($string, $lcfirst = true)  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * Convert string to under_score  | 
            ||
| 27 | *  | 
            ||
| 28 | * @param string $word  | 
            ||
| 29 | * @return string  | 
            ||
| 30 | */  | 
            ||
| 31 | public function convertToUnderscore($word)  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * limitWords  | 
            ||
| 43 | *  | 
            ||
| 44 | * @param string $text  | 
            ||
| 45 | * @param int $limitWords  | 
            ||
| 46 | * @param string $suffix  | 
            ||
| 47 | * @return string  | 
            ||
| 48 | */  | 
            ||
| 49 | public function limitWords($text, $limitWords = 50, $suffix = '...')  | 
            ||
| 59 | }  |