Total Complexity | 6 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 38.46% |
Changes | 0 |
1 | <?php |
||
12 | class CRUDFiles { |
||
13 | use UrlsTrait; |
||
14 | protected $viewBase; |
||
15 | |||
16 | /** |
||
17 | * To override for defining viewBase (default : @framework/crud) |
||
18 | */ |
||
19 | 7 | public function __construct() { |
|
21 | 7 | } |
|
22 | |||
23 | /** |
||
24 | * To override |
||
25 | * Returns the template for the index route (default : @framework/crud/index.html) |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getViewIndex() { |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * To override |
||
35 | * Returns the template for the edit and new instance routes (default : @framework/crud/form.html) |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getViewForm() { |
||
40 | return $this->viewBase . "/form.html"; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * To override |
||
45 | * Returns the template for the display route (default : @framework/crud/display.html) |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getViewDisplay() { |
||
50 | return $this->viewBase . "/display.html"; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Returns the base template for all Crud actions if getBaseTemplate return a base template filename |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getViewBaseTemplate() { |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * To override |
||
64 | * Returns the base template filename, default : null |
||
65 | */ |
||
66 | 7 | public function getBaseTemplate() { |
|
68 | } |
||
69 | } |
||
71 |