ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilWorkflow Class Reference

Workflow. More...

+ Collaboration diagram for ilWorkflow:

Public Member Functions

 __construct ()
 Constructor.
 setTitle ($a_val)
 Set title.
 getTitle ()
 Get title.
 addStep ($a_step)
 Add a workflow step.
 getSteps ()
 Get workflow steps.
 determineNextStep ()
 Determine next step.

Data Fields

 $steps = array()

Detailed Description

Workflow.

A Workflow manages a series of steps that are needed to fulfill a certain task. You may overwrite this class, e.g. to change the default behaviour that determines the next step.

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

Definition at line 13 of file class.ilWorkflow.php.

Constructor & Destructor Documentation

ilWorkflow::__construct ( )

Constructor.

Definition at line 20 of file class.ilWorkflow.php.

{
}

Member Function Documentation

ilWorkflow::addStep (   $a_step)

Add a workflow step.

Parameters
objectworkflow step

Definition at line 49 of file class.ilWorkflow.php.

{
$this->steps[] = $a_step;
}
ilWorkflow::determineNextStep ( )

Determine next step.

The standard behaviour looks for the first step that either has not run yet or is not fulfilled.

Definition at line 66 of file class.ilWorkflow.php.

{
foreach ($this->steps as $step)
{
if (!$step->hasRun())
{
return $step;
}
if (!$step->isFulfilled())
{
return $step;
}
}
return null;
}
ilWorkflow::getSteps ( )

Get workflow steps.

Definition at line 57 of file class.ilWorkflow.php.

References $steps.

{
return $this->steps;
}
ilWorkflow::getTitle ( )

Get title.

Returns
string title

Definition at line 39 of file class.ilWorkflow.php.

References $title.

{
return $this->title;
}
ilWorkflow::setTitle (   $a_val)

Set title.

Parameters
stringtitle

Definition at line 29 of file class.ilWorkflow.php.

{
$this->title = $a_val;
}

Field Documentation

ilWorkflow::$steps = array()

Definition at line 15 of file class.ilWorkflow.php.

Referenced by getSteps().


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