1 | <?php |
||
19 | class ViewInflector implements ViewInflectorInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $extension; |
||
25 | |||
26 | private static $hasPcreUnicodeSupport; |
||
27 | |||
28 | /** |
||
29 | * Creates a view inflector |
||
30 | * |
||
31 | * @param string $extension |
||
32 | */ |
||
33 | public function __construct($extension) |
||
37 | |||
38 | /** |
||
39 | * Returns the template name for current request |
||
40 | * |
||
41 | * @param Route $route |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function inflect(Route $route) |
||
53 | |||
54 | /** |
||
55 | * Converts camel case strings to words separated by provided string |
||
56 | * |
||
57 | * @param string $text The text to evaluate |
||
58 | * @param string $sep The separator (or glue) for the words |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | public static function camelCaseToSeparator($text, $sep = " ") |
||
81 | |||
82 | /** |
||
83 | * Is PCRE compiled with Unicode support? |
||
84 | * |
||
85 | * @return bool |
||
86 | */ |
||
87 | public static function hasPcreUnicodeSupport() |
||
96 | } |