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_Group must implement this interface.
16: **/
17: interface Legacy_iGroupClientDelegate
18: {
19: /**
20: * getClientList Legacy_GroupClient.{dirname}.GetClientList
21: *
22: * @param mixed[] &$list
23: * list[]['dirname']
24: * list[]['dataname']
25: * @param string $dirname
26: *
27: * @return void
28: */
29: public static function getClientList(/*** mixed[] ***/ &$list, /*** string ***/ $dirname);
30:
31: /**
32: * getClientData Legacy_GroupClient.{dirname}.GetClientData
33: * Get client modules' data to show them inside Legacy_Group module
34: *
35: * @param mixed[] &$list
36: * list[]['dirname'] string client module's dirname
37: * list[]['dataname'] string client module's dataname(tablename)
38: * list[]['title'] string client module title
39: * list[]['data'] mixed
40: * list[]['template_name'] string
41: * @param string $dirname client module's dirname
42: * @param string $dataname client's target tablename
43: * @param string $fieldname client's target fieldname
44: * @param int $groupId
45: *
46: * @return void
47: */
48: public static function getClientData(/*** mixed ***/ &$list, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** string ***/ $fieldname, /*** int ***/ $groupId);
49:
50: /**
51: * getActionList Legacy_GroupClient.{dirname}.GetActionList
52: * Get client module's actions(view, edit, etc) to set their permission
53: * by member's group rank.
54: *
55: * @param mixed[] &$list
56: * $list['action'][] string
57: * $list['rank'][] Lenum_GroupRank
58: * $list['title'][] string
59: * $list['desctiption'][] string
60: * @param string $dirname client module's dirname
61: * @param string $dataname client module's dataname(tablename)
62: *
63: * @return void
64: */
65: public static function getActionList(/*** mixed[] ***/ &$list, /*** string ***/ $dirname, /*** string ***/ $dataname);
66: }
67: ?>
68: