ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilWorkflowGUI Class Reference

Workflow user interface class. More...

+ Collaboration diagram for ilWorkflowGUI:

Public Member Functions

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

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

ilWorkflowGUI::__construct (   $a_workflow)

Constructor.

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

{
$this->workflow = $a_workflow;
}

Member Function Documentation

ilWorkflowGUI::getHTML ( )

Get HTML for workflow.

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

References getWorkflow().

{
$wf_tpl = new ilTemplate("tpl.workflow.html", true, true, "Services/Workflow");
$nr = 1;
foreach ($this->getWorkflow()->getSteps() as $ws_step)
{
$wf_tpl->setCurrentBlock("ws_step");
$wf_tpl->setVariable("NR", $nr.". ");
$wf_tpl->setVariable("STEPTITLE", $ws_step->getTitle());
$wf_tpl->parseCurrentBlock();
$nr++;
}
return $wf_tpl->getHTML();
}

+ Here is the call graph for this function:

ilWorkflowGUI::getWorkflow ( )

Get workflow.

Returns
object workflow

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

Referenced by getHTML().

{
return $this->workflow;
}

+ Here is the caller graph for this function:

ilWorkflowGUI::setWorkflow (   $a_val)

Set workflow.

Parameters
objectworkflow

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

{
$this->workflow = $a_val;
}

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