1 | <?php |
||
28 | trait GlobbingTrait |
||
29 | { |
||
30 | /** |
||
31 | * Returns all names matches with $exactName |
||
32 | * |
||
33 | * e.g. |
||
34 | * 'user.login' matches '*', 'u*.*', 'user.*', 'user.l*', 'user.login' etc. |
||
35 | * |
||
36 | * @param string $exactName |
||
37 | * @param array $names |
||
38 | * @return array |
||
39 | * @access protected |
||
40 | */ |
||
41 | protected function globbingNames( |
||
53 | |||
54 | /** |
||
55 | * Check to see if $name matches with $exactName |
||
56 | * |
||
57 | * e.g. |
||
58 | * ```php |
||
59 | * // true |
||
60 | * $this->nameGlobbing('user.*', 'user.login'); |
||
61 | * |
||
62 | * // true |
||
63 | * $this->nameGlobbing('*', 'user.login'); |
||
64 | * |
||
65 | * // false |
||
66 | * $this->nameGLobbing('blog.*', 'user.login'); |
||
67 | * ``` |
||
68 | * |
||
69 | * @param string $exactName |
||
70 | * @param string $name |
||
71 | * @return bool |
||
72 | * @access protected |
||
73 | */ |
||
74 | protected function nameGlobbing( |
||
89 | } |
||
90 |