ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
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, "Servives/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 ?>