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 cat client delegate
15: * Modules which uses LEGACY_CATEGORY must implement this interface.
16: **/
17: interface Legacy_iCategoryClientDelegate
18: {
19: /**
20: * getClientList Legacy_CategoryClient.{dirname}.GetClientList
21: *
22: * @param mixed[] &$list
23: * list[]['dirname'] client module's dirname
24: * list[]['dataname'] client module's dataname(tablename)
25: * @param string $dirname Legacy_Category's dirname
26: *
27: * @return void
28: */
29: public static function getClientList(/*** mixed[] ***/ &$list, /*** string ***/ $dirname);
30:
31: /**
32: * getClientData Legacy_CategoryClient.{dirname}.GetClientData
33: * Get client modules' data to show them inside LEGACY_CATEGORY 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's 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 $catId
45: *
46: * @return void
47: */
48: public static function getClientData(/*** mixed ***/ &$list, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** string ***/ $fieldname, /*** int ***/ $catId);
49: }
50: ?>
51: