ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilWorkflowGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
13{
17 function __construct($a_workflow)
18 {
19 $this->workflow = $a_workflow;
20 }
21
27 function setWorkflow($a_val)
28 {
29 $this->workflow = $a_val;
30 }
31
37 function getWorkflow()
38 {
39 return $this->workflow;
40 }
41
45 function getHTML()
46 {
47 $wf_tpl = new ilTemplate("tpl.workflow.html", true, true, "Services/Workflow");
48 $nr = 1;
49 foreach ($this->getWorkflow()->getSteps() as $ws_step)
50 {
51 $wf_tpl->setCurrentBlock("ws_step");
52 $wf_tpl->setVariable("NR", $nr.". ");
53 $wf_tpl->setVariable("STEPTITLE", $ws_step->getTitle());
54 $wf_tpl->parseCurrentBlock();
55 $nr++;
56 }
57 return $wf_tpl->getHTML();
58 }
59}
60
61?>
special template class to simplify handling of ITX/PEAR
Workflow user interface class.
getHTML()
Get HTML for workflow.
getWorkflow()
Get workflow.
setWorkflow($a_val)
Set workflow.
__construct($a_workflow)
Constructor.