ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
base.php File Reference

Go to the source code of this file.

Functions

 base ()
 

Function Documentation

◆ base()

base ( )

Definition at line 3 of file base.php.

4{
5 //init Factory and Renderer
6 global $DIC;
7 $f = $DIC->ui()->factory()->listing()->workflow();
8 $renderer = $DIC->ui()->renderer();
9
10 //setup steps
11 $step = $f->step('', '');
12 $steps = [
13 $f->step('step 1', 'available, successfully completed')
14 ->withAvailability($step::AVAILABLE)->withStatus($step::SUCCESSFULLY),
15 $f->step('step 2', 'available, successfully completed')
16 ->withAvailability($step::AVAILABLE)->withStatus($step::SUCCESSFULLY),
17 $f->step('step 3', 'available, in progress, active ')
18 ->withAvailability($step::AVAILABLE)->withStatus($step::IN_PROGRESS),
19 $f->step('step 4', 'not available, not started')
20 ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::NOT_STARTED),
21 $f->step('step 5', 'not available, not started')
22 ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::NOT_STARTED)
23 ];
24
25 //setup linear workflow
26 $wf = $f->linear('Linear Workflow', $steps)
27 ->withActive(2);
28
29 //render
30 return $renderer->render($wf);
31}
$steps
Definition: latex.php:3
$DIC
Definition: xapitoken.php:46

References $DIC, Vendor\Package\$f, and $steps.