1 | <?php |
||
12 | class CleanParam implements DirectiveInterface |
||
13 | { |
||
14 | use ObjectTools; |
||
15 | use UrlToolbox; |
||
16 | |||
17 | /** |
||
18 | * Directive |
||
19 | */ |
||
20 | const DIRECTIVE = 'Clean-param'; |
||
21 | |||
22 | protected $array = []; |
||
23 | protected $parent; |
||
24 | |||
25 | public function __construct($array = [], $parent = null) |
||
29 | |||
30 | /** |
||
31 | * Add |
||
32 | * |
||
33 | * @param string $line |
||
34 | * @return bool |
||
35 | */ |
||
36 | public function add($line) |
||
48 | |||
49 | /** |
||
50 | * Check Clean-Param rule |
||
51 | * |
||
52 | * @param string $path |
||
53 | * @return bool |
||
54 | */ |
||
55 | public function check($path) |
||
72 | |||
73 | /** |
||
74 | * Rule export |
||
75 | * |
||
76 | * @return array |
||
77 | */ |
||
78 | public function getArray() |
||
82 | |||
83 | public function export() |
||
87 | } |
||
88 |