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 group client delegate
15: * Modules which uses Legacy_Activity must implement this interface.
16: * Legacy_Activity module must be unique.
17: * You can get its dirname by constant LEGACY_ACTIVITY_DIRNAME
18: **/
19: interface Legacy_iActivityClientDelegate
20: {
21: /**
22: * getClientList Legacy_ActivityClient.GetClientList
23: *
24: * @param mixed[] &$list
25: * @list[]['dirname'] client module's dirname
26: * @list[]['dataname'] client module's dataname(tablename)
27: * @list[]['access_controller'] access controller's module dirname
28: *
29: * @return void
30: */
31: public static function getClientList(/*** mixed[] ***/ &$list);
32:
33: /**
34: * getClientData Legacy_ActivityClient.{dirname}.GetClientData
35: *
36: * @param mixed &$list
37: * string $list['dirname'] client module's dirname
38: * string $list['dataname'] client module's dataname(tablename)
39: * int $list['data_id'] client module's primary key
40: * mixed $list['data']
41: * string $list['title'] client module's title
42: * string $list['template_name']
43: * @param string $dirname
44: * @param string $dataname
45: * @param int $dataId
46: *
47: * @return void
48: */
49: public static function getClientData(/*** mixed ***/ &$list, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** int ***/ $dataId);
50:
51: /**
52: * getClientFeed Legacy_ActivityClient.{dirname}.GetClientFeed
53: *
54: * @param mixed &$list
55: * string[] $list['title'] entry's title
56: * string[] $list['link'] link to entry
57: * string[] $list['id'] entry's id(=permalink to entry)
58: * int[] $list['updated'] unixtime
59: * int[] $list['published'] unixtime
60: * string[] $list['author']
61: * string[] $list['content']
62: * @param string $dirname client module's dirname
63: * @param string $dataname client module's dataname(tablename)
64: * @param int $dataId client module's primary key
65: *
66: * @return void
67: */
68: public static function getClientFeed(/*** mixed ***/ &$list, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** int ***/ $dataId);
69: }
70: ?>
71: