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 workflow delegate
15: * Legacy_Workflow module must be unique.
16: * You can get its dirname by constant LEGACY_WORKFLOW_DIRNAME
17: **/
18: interface Legacy_iWorkflowDelegate
19: {
20: /**
21: * addItem Legacy_Workflow.AddItem
22: *
23: * @param string $title
24: * @param string $dirname client module dirname
25: * @param string $dataname client module dataname
26: * @param int $data_id client module primary key
27: * @param string $url client data's uri
28: *
29: * @return void
30: */
31: public static function addItem(/*** string ***/ $title, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** int ***/ $data_id, /*** string ***/ $url);
32:
33: /**
34: * deleteItem Legacy_Workflow.DeleteItem
35: *
36: * @param string $dirname client module dirname
37: * @param string $dataname client module dataname
38: * @param int $data_id client module primary key
39: *
40: * @return void
41: */
42: public static function deleteItem(/*** string ***/ $dirname, /*** string ***/ $dataname, /*** int ***/ $data_id);
43:
44: /**
45: * getHistory Legacy_Workflow.GetHistory
46: *
47: * @param mix[] &$historyArr
48: * $hisotryArr['step']
49: * $hisotryArr['uid']
50: * $hisotryArr['result']
51: * $hisotryArr['comment']
52: * $hisotryArr['posttime']
53: * @param string $dirname client module dirname
54: * @param string $dataname client module dataname
55: * @param int $data_id client module primary key
56: *
57: * @return void
58: */
59: public static function getHistory(/*** mix[] ***/ &$historyArr, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** int ***/ $data_id);
60: }
61:
62: ?>
63: