1 | <?php |
||
18 | class CrudTemplateExtension extends \Twig_Extension |
||
19 | { |
||
20 | |||
21 | 2 | public function getFilters() |
|
28 | |||
29 | /** |
||
30 | * Splits the incoming $text string on all uppercase letters and "_" characters, |
||
31 | * and returns the resulting words as a sentence. All words in the output sentence |
||
32 | * are lowercase. |
||
33 | * |
||
34 | * @param string $text |
||
35 | * @return string |
||
36 | */ |
||
37 | 6 | public function humanize_lc($text) |
|
41 | |||
42 | /** |
||
43 | * Splits the incoming $text string on all uppercase letters and "_" characters, |
||
44 | * and returns the resulting words as a sentence. The first character of the first |
||
45 | * word is set to uppercase, all other letters are set to lowercase. |
||
46 | * |
||
47 | * @param string $text |
||
48 | * @return string |
||
49 | */ |
||
50 | 6 | public function humanize_uc($text) |
|
54 | |||
55 | } |