1 | <?php |
||
7 | class Comment { |
||
8 | private $required_connection; |
||
9 | private $check_comment; |
||
10 | |||
11 | //-------------------------- BUILDER ----------------------------------------------------------------------------// |
||
12 | public function __construct() { |
||
28 | //-------------------------- END BUILDER ----------------------------------------------------------------------------// |
||
29 | |||
30 | |||
31 | |||
32 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
||
33 | public function getRequiredConnection() { |
||
39 | |||
40 | /** |
||
41 | * @param $values |
||
42 | * @return string |
||
43 | * this function will get the view of list comments and form to write a comment |
||
44 | */ |
||
45 | private function getRender($values) { |
||
55 | |||
56 | /** |
||
57 | * @param $table |
||
58 | * @param $nom_id_table |
||
59 | * @param $id_in_table |
||
60 | * function wich get all comments of an other module like a article of a blog |
||
61 | * after all coments was getted it will call getRender to use twig to render them |
||
62 | */ |
||
63 | public function getComments($table, $nom_id_table, $id_in_table) { |
||
85 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
86 | |||
87 | |||
88 | |||
89 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
||
90 | //-------------------------- END SETTER ----------------------------------------------------------------------------// |
||
91 | |||
92 | } |