ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilWorkflowGUI Class Reference

Workflow user interface class. More...

+ Collaboration diagram for ilWorkflowGUI:

Public Member Functions

 __construct ($a_workflow)
 Constructor. More...
 
 setWorkflow ($a_val)
 Set workflow. More...
 
 getWorkflow ()
 Get workflow. More...
 
 getHTML ()
 Get HTML for workflow. More...
 

Detailed Description

Workflow user interface class.

Generates workflow presentation as a sequence of steps.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilWorkflowGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilWorkflowGUI::__construct (   $a_workflow)

Constructor.

Definition at line 17 of file class.ilWorkflowGUI.php.

18 {
19 $this->workflow = $a_workflow;
20 }

Member Function Documentation

◆ getHTML()

ilWorkflowGUI::getHTML ( )

Get HTML for workflow.

Definition at line 45 of file class.ilWorkflowGUI.php.

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 }
special template class to simplify handling of ITX/PEAR
getWorkflow()
Get workflow.

References getWorkflow().

+ Here is the call graph for this function:

◆ getWorkflow()

ilWorkflowGUI::getWorkflow ( )

Get workflow.

Returns
object workflow

Definition at line 37 of file class.ilWorkflowGUI.php.

38 {
39 return $this->workflow;
40 }

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ setWorkflow()

ilWorkflowGUI::setWorkflow (   $a_val)

Set workflow.

Parameters
objectworkflow

Definition at line 27 of file class.ilWorkflowGUI.php.

28 {
29 $this->workflow = $a_val;
30 }

The documentation for this class was generated from the following file: