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 client delegate
15: * Modules which uses Legacy_Workflow must implement this interface.
16: * Legacy_Workflow module must be unique.
17: * You can get its dirname by constant LEGACY_WORKFLOW_DIRNAME
18: **/
19: interface Legacy_iWorkflowClientDelegate
20: {
21: /**
22: * getClientList Legacy_WorkflowClient.GetClientList
23: * Get client module's dirname and dataname(tablename)
24: *
25: * @param mixed[] &$list
26: * $list[]['dirname'] client module dirname
27: * $list[]['dataname'] client module dataname(tablename)
28: *
29: * @return void
30: */
31: public static function getClientList(/*** mixed[] ***/ &$list);
32:
33: /**
34: * updateStatus Legacy_WorkflowClient.UpdateStatus
35: * Update client module's status(publish, rejected, etc).
36: *
37: * @param string &$result
38: * @param string $dirname client module dirname
39: * @param string $dataname client module dataname(tablename)
40: * @param int $data_id client module primary key
41: * @param Enum $status Lenum_WorkflowStatus
42: *
43: * @return void
44: */
45: public static function updateStatus(/*** string ***/ &$result, /*** string ***/ $dirname, /*** string ***/ $dataname, /*** int ***/ $data_id, /*** Enum ***/ $status);
46: }
47:
48: ?>
49: