1 | <?php |
||
17 | trait Validator |
||
18 | { |
||
19 | /** |
||
20 | * Validate a function name |
||
21 | * |
||
22 | * @param string $sName The function name |
||
23 | * |
||
24 | * @return bool True if the function name is valid, and false if not |
||
25 | */ |
||
26 | public function validateFunction($sName) |
||
30 | |||
31 | /** |
||
32 | * Validate an event name |
||
33 | * |
||
34 | * @param string $sName The event name |
||
35 | * |
||
36 | * @return bool True if the event name is valid, and false if not |
||
37 | */ |
||
38 | public function validateEvent($sName) |
||
42 | |||
43 | /** |
||
44 | * Validate a class name |
||
45 | * |
||
46 | * @param string $sName The class name |
||
47 | * |
||
48 | * @return bool True if the class name is valid, and false if not |
||
49 | */ |
||
50 | public function validateClass($sName) |
||
54 | |||
55 | /** |
||
56 | * Validate a method name |
||
57 | * |
||
58 | * @param string $sName The function name |
||
59 | * |
||
60 | * @return bool True if the method name is valid, and false if not |
||
61 | */ |
||
62 | public function validateMethod($sName) |
||
66 | |||
67 | /** |
||
68 | * Validate an uploaded file |
||
69 | * |
||
70 | * @param array $aUploadedFile The file data received in the $_FILES array |
||
71 | * |
||
72 | * @return bool True if the file data are valid, and false if not |
||
73 | */ |
||
74 | public function validateUploadedFile(array $aUploadedFile) |
||
78 | } |
||
79 |