1 | <?php |
||
7 | class AdminComment extends Comment { |
||
8 | public static $router_parameter; |
||
9 | private $values = []; |
||
10 | |||
11 | //-------------------------- BUILDER ----------------------------------------------------------------------------// |
||
12 | //-------------------------- END BUILDER ----------------------------------------------------------------------------// |
||
13 | |||
14 | |||
15 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
||
16 | /** |
||
17 | * @return array |
||
18 | * function to get values out of the class |
||
19 | */ |
||
20 | public function getValues(){ |
||
23 | |||
24 | /** |
||
25 | * function that get a list of all table_name wich are in comment module |
||
26 | */ |
||
27 | public function getAllTable() { |
||
47 | |||
48 | /** |
||
49 | * @param $table_name |
||
50 | * @param $checked |
||
51 | * @return int |
||
52 | * function that get number of checked or unchecked comment for a table_name |
||
53 | */ |
||
54 | private function getNbCheckedComment($table_name, $checked) { |
||
62 | |||
63 | /** |
||
64 | * @param $id_in_table |
||
65 | * function wich get all comments of an other module like a article of a blog |
||
66 | * after all coments was getted it will call getRender to use twig to render them |
||
67 | */ |
||
68 | public function getComments($id_in_table) { |
||
90 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
91 | |||
92 | |||
93 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
||
94 | /** |
||
95 | * @param $values |
||
96 | * function to set all values and sort it in future |
||
97 | */ |
||
98 | public function setValues($values) { |
||
101 | //-------------------------- END SETTER ----------------------------------------------------------------------------// |
||
102 | } |