1 | <?php |
||
5 | class RouterController { |
||
6 | private $page; |
||
7 | private $controller; |
||
8 | private $part; |
||
9 | private $erreur; |
||
10 | |||
11 | //-------------------------- BUILDER ----------------------------------------------------------------------------// |
||
12 | public function __construct($page, $admin = null) { |
||
26 | //-------------------------- END BUILDER ----------------------------------------------------------------------------// |
||
27 | |||
28 | |||
29 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
||
30 | public function getController() { |
||
36 | |||
37 | /** |
||
38 | * function that get link of a controller |
||
39 | */ |
||
40 | private function getLinkController() { |
||
45 | |||
46 | /** |
||
47 | * @return bool |
||
48 | * this function set if is a controller core the link to the controller |
||
49 | */ |
||
50 | private function getTestCoreController() { |
||
58 | |||
59 | /** |
||
60 | * @return bool |
||
61 | * this function set if is a controller module the link to the controller |
||
62 | */ |
||
63 | private function getTestModuleController() { |
||
72 | |||
73 | /** |
||
74 | * @return mixed |
||
75 | * this function return link and delete controller at the begining of the link |
||
76 | */ |
||
77 | private function getBaseLink() { |
||
81 | |||
82 | /** |
||
83 | * redirect on 404 if controller doesn't exist |
||
84 | */ |
||
85 | private function getTestControllerExist() { |
||
90 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
91 | |||
92 | |||
93 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
||
94 | //-------------------------- END SETTER ----------------------------------------------------------------------------// |
||
95 | } |