1 | <?php |
||
24 | class Validator |
||
25 | { |
||
26 | /** |
||
27 | * Validate a function name |
||
28 | * |
||
29 | * @param string $sName The function name |
||
30 | * |
||
31 | * @return bool True if the function name is valid, and false if not |
||
32 | */ |
||
33 | public function validateFunction($sName) |
||
37 | |||
38 | /** |
||
39 | * Validate an event name |
||
40 | * |
||
41 | * @param string $sName The event name |
||
42 | * |
||
43 | * @return bool True if the event name is valid, and false if not |
||
44 | */ |
||
45 | public function validateEvent($sName) |
||
49 | |||
50 | /** |
||
51 | * Validate a class name |
||
52 | * |
||
53 | * @param string $sName The class name |
||
54 | * |
||
55 | * @return bool True if the class name is valid, and false if not |
||
56 | */ |
||
57 | public function validateClass($sName) |
||
61 | |||
62 | /** |
||
63 | * Validate a method name |
||
64 | * |
||
65 | * @param string $sName The function name |
||
66 | * |
||
67 | * @return bool True if the method name is valid, and false if not |
||
68 | */ |
||
69 | public function validateMethod($sName) |
||
74 | |||
75 | /** |
||
76 | * Validate an uploaded file |
||
77 | * |
||
78 | * @param array $aUploadedFile The file data received in the $_FILES array |
||
79 | * |
||
80 | * @return bool True if the file data are valid, and false if not |
||
81 | */ |
||
82 | public function validateUploadedFile(array $aUploadedFile) |
||
86 | } |
||
87 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.