ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilWorkflow.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
14{
15 var $steps = array();
16
20 function __construct()
21 {
22 }
23
29 function setTitle($a_val)
30 {
31 $this->title = $a_val;
32 }
33
39 function getTitle()
40 {
41 return $this->title;
42 }
43
49 function addStep($a_step)
50 {
51 $this->steps[] = $a_step;
52 }
53
57 function getSteps()
58 {
59 return $this->steps;
60 }
61
67 {
68 foreach ($this->steps as $step)
69 {
70 if (!$step->hasRun())
71 {
72 return $step;
73 }
74
75 if (!$step->isFulfilled())
76 {
77 return $step;
78 }
79 }
80 return null;
81 }
82}
83
84?>
addStep($a_step)
Add a workflow step.
getSteps()
Get workflow steps.
setTitle($a_val)
Set title.
__construct()
Constructor.
determineNextStep()
Determine next step.
getTitle()
Get title.