1 | <?php |
||
7 | trait Washable |
||
8 | { |
||
9 | /** |
||
10 | * Clean the current object before sending to front end. |
||
11 | * |
||
12 | * @param string $cleanerName [Name of cleaner class or full cleaner namespace] |
||
13 | * |
||
14 | * @return CleanPost |
||
15 | */ |
||
16 | public function clean($cleanerName = null) |
||
28 | |||
29 | /** |
||
30 | * Create the cleaner and call the clean mehtod on it. |
||
31 | * |
||
32 | * @param string $cleanerName [Name of cleaner] |
||
33 | * |
||
34 | * @return Cleaner|HttpException |
||
35 | */ |
||
36 | protected function callCleaner($cleanerName) |
||
49 | |||
50 | /** |
||
51 | * Resolve valid cleaner name for given name. |
||
52 | * |
||
53 | * @param string $name [Cleaner name] |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | protected function resolveCleaner($name) |
||
65 | |||
66 | /** |
||
67 | * Get cleaner name from name of calling class. |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | protected function getStandardCleanerName() |
||
77 | |||
78 | /** |
||
79 | * Get full namespace for cleaner. |
||
80 | * |
||
81 | * @param string $className [Name of cleaner class] |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | protected function getStandardCleanerNamespace($className) |
||
91 | } |
||
92 |