1 | <?php |
||
7 | class Comment { |
||
8 | private $required_connection; |
||
9 | private $check_comment; |
||
10 | private $table; |
||
11 | private $nom_id_table; |
||
12 | private $id_in_table; |
||
13 | |||
14 | //-------------------------- BUILDER ----------------------------------------------------------------------------// |
||
15 | public function __construct() { |
||
31 | //-------------------------- END BUILDER ----------------------------------------------------------------------------// |
||
32 | |||
33 | |||
34 | |||
35 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
||
36 | public function getRequiredConnection() { |
||
42 | |||
43 | /** |
||
44 | * @param $values |
||
45 | * @return string |
||
46 | * this function will get the view of list comments and form to write a comment |
||
47 | */ |
||
48 | private function getRender($values) { |
||
58 | |||
59 | /** |
||
60 | * @param $table |
||
61 | * @param $nom_id_table |
||
62 | * @param $id_in_table |
||
63 | * function wich get all comments of an other module like a article of a blog |
||
64 | * after all coments was getted it will call getRender to use twig to render them |
||
65 | */ |
||
66 | public function getComments($table, $nom_id_table, $id_in_table) { |
||
91 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
92 | |||
93 | |||
94 | |||
95 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
||
96 | public function setComment($table, $nom_id_table, $id_in_table) { |
||
99 | //-------------------------- END SETTER ----------------------------------------------------------------------------// |
||
100 | |||
101 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.