1: <?php
2: /**
3: * @file
4: * @package legacy
5: * @version $Id$
6: **/
7:
8: if(!defined('XOOPS_ROOT_PATH'))
9: {
10: exit();
11: }
12:
13: /**
14: * Interface of module's comment delegate
15: **/
16: interface Legacy_iCommentDelegate
17: {
18: /**
19: * getComments Legacy_Comment.{dirname}.GetComments
20: * This delegate point is used by smarty plugin smarty_function_legacy_comment.
21: * $comments is passed to the template of the comment module right away.
22: *
23: * @param mixed[] &$comments
24: * @param string $cDirname comment module's dirname
25: * @param string $dirname client module's dirname
26: * @param string $dataname client module's dataname(tablename)
27: * @param int $dataId client module's primary key
28: * @param int $categoryId client module's category id
29: * @param int $params other arguments for comments filtering
30: * @param int $limit max number of comments
31: *
32: * @return void
33: */
34: public static function getComments(/*** mixed[] ***/ &$comments, /*** string ***/ $cDirname, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** int ***/ $dataId, /*** int ***/ $categoryId, /*** mixed[] ***/ $params);
35:
36: /**
37: * count Legacy_Comment.{dirname}.Count
38: *
39: * @param int &$count
40: * @param int $cDirname comment module's dirname
41: * @param string $dirname client module's dirname
42: * @param string $dataname client module's dataname(tablename)
43: * @param int $dataId client module's primary key
44: *
45: * @return void
46: */
47: public static function count(/*** int ***/ &$count, /*** string ***/ $cDirname, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** int ***/ $dataId);
48:
49: }
50:
51: ?>
52: