1: <?php
2: /**
3: * This file contains the class for workflow task collections.
4: *
5: * @package Plugin
6: * @subpackage Workflow
7: * @author Timo Hummel
8: * @copyright four for business AG <www.4fb.de>
9: * @license http://www.contenido.org/license/LIZENZ.txt
10: * @link http://www.4fb.de
11: * @link http://www.contenido.org
12: */
13:
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: /**
17: * Class for workflow task collections.
18: *
19: * @package Plugin
20: * @subpackage Workflow
21: */
22: class WorkflowTasks extends ItemCollection {
23:
24: /**
25: * Constructor Function
26: */
27: public function __construct() {
28: global $cfg;
29: parent::__construct($cfg["tab"]["tasks"], "idtask");
30: $this->_setItemClass("WorkflowTask");
31: }
32:
33: public function create() {
34: $newitem = $this->createNewItem();
35: return ($newitem);
36: }
37:
38: public function select($where = "", $group_by = "", $order_by = "", $limit = "") {
39: global $client;
40:
41: if ($where != "") {
42: $where = $where . " AND idclient = " . cSecurity::toInteger($client);
43: }
44: return parent::select($where, $group_by, $order_by, $limit);
45: }
46:
47: }
48:
49: /**
50: * Class WorkflowTask
51: * Class for a single workflow task item
52: *
53: * @package Plugin
54: * @subpackage Workflow
55: * @author Timo A. Hummel <Timo.Hummel@4fb.de>
56: * @version 0.1
57: * @copyright four for business 2003
58: */
59: class WorkflowTask extends Item {
60:
61: /**
62: * Constructor Function
63: */
64: public function __construct() {
65: global $cfg;
66: parent::__construct($cfg["tab"]["tasks"], "idtask");
67: }
68:
69: }
70:
71: ?>