1 | <?php |
||
8 | class AdminComment extends Comment { |
||
9 | public static $router_parameter; |
||
10 | private $values = []; |
||
11 | |||
12 | //-------------------------- BUILDER ----------------------------------------------------------------------------// |
||
13 | //-------------------------- END BUILDER ----------------------------------------------------------------------------// |
||
14 | |||
15 | |||
16 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
||
17 | /** |
||
18 | * @return array |
||
19 | * function to get values out of the class |
||
20 | */ |
||
21 | public function getValues(){ |
||
24 | |||
25 | /** |
||
26 | * function that get a list of all table_name wich are in comment module |
||
27 | */ |
||
28 | public function getAllTable() { |
||
48 | |||
49 | /** |
||
50 | * @param $table_name |
||
51 | * @param $checked |
||
52 | * @return int |
||
53 | * function that get number of checked or unchecked comment for a table_name |
||
54 | */ |
||
55 | private function getNbCheckedComment($table_name, $checked) { |
||
63 | |||
64 | /** |
||
65 | * @param $id_in_table |
||
66 | * function wich get all comments of an other module like a article of a blog |
||
67 | * after all coments was getted it will call getRender to use twig to render them |
||
68 | */ |
||
69 | public function getComments($id_in_table) { |
||
91 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
92 | |||
93 | |||
94 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
||
95 | /** |
||
96 | * @param $values |
||
97 | * function to set all values and sort it in future |
||
98 | */ |
||
99 | public function setValues($values) { |
||
102 | |||
103 | /** |
||
104 | * @param $id_comment |
||
105 | * @param $checked |
||
106 | * function that it is used to change if a comment is changed or not |
||
107 | */ |
||
108 | public function setChangeCheck($id_comment, $checked) { |
||
114 | |||
115 | /** |
||
116 | * @param $id_comment |
||
117 | * @param $table |
||
118 | * function that is used to delete a comment |
||
119 | */ |
||
120 | public function setDeleteComment($id_comment, $table) { |
||
130 | |||
131 | /** |
||
132 | * @param $parameter |
||
133 | * @param $checked |
||
134 | * function that checck or uncheck a parameter in configuration |
||
135 | */ |
||
136 | public function setChangeConfiguration($parameter, $checked) { |
||
143 | //-------------------------- END SETTER ----------------------------------------------------------------------------// |
||
144 | } |