1 | <?php |
||
20 | class Comments { |
||
21 | use Singleton; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $shortname; |
||
27 | |||
28 | protected function construct () { |
||
31 | /** |
||
32 | * Count of comments for specified item |
||
33 | * |
||
34 | * @param int $item Item id |
||
35 | * @param string $module Module name |
||
36 | * |
||
37 | * @return string HTML snipped that will be replaced with actual count on frontend |
||
38 | */ |
||
39 | function count ($item, $module) { |
||
52 | /** |
||
53 | * Get comments block with comments tree and comments sending form |
||
54 | * |
||
55 | * @param int $item Item id |
||
56 | * @param string $module Module name |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | function block ($item, $module) { |
||
90 | } |
||
91 |