ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

References $DIC, $f, $step, and $steps.

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, unsuccessfully completed')
16  ->withAvailability($step::AVAILABLE)->withStatus($step::UNSUCCESSFULLY),
17  $f->step('step 3', 'available, not started')
18  ->withAvailability($step::AVAILABLE)->withStatus($step::NOT_STARTED),
19  $f->step('step 4', 'available, in progress')
20  ->withAvailability($step::AVAILABLE)->withStatus($step::IN_PROGRESS),
21  $f->step('active step', 'available, in progress, active (by workflow)')
22  ->withAvailability($step::AVAILABLE)->withStatus($step::IN_PROGRESS),
23  $f->step('step 6', 'not available, not started')
24  ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::NOT_STARTED),
25  $f->step('step 7', 'not available, in progress')
26  ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::IN_PROGRESS),
27  $f->step('step 8', 'not available, successfully completed')
28  ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::SUCCESSFULLY),
29  $f->step('step 9', 'not available, unsuccessfully completed')
30  ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::UNSUCCESSFULLY),
31  $f->step('step 10', 'not available anymore, not started')
32  ->withAvailability($step::NOT_ANYMORE)->withStatus($step::NOT_STARTED),
33  $f->step('step 11', 'not available anymore, in progress')
34  ->withAvailability($step::NOT_ANYMORE)->withStatus($step::IN_PROGRESS),
35  $f->step('step 12', 'not available anymore, successfully completed')
36  ->withAvailability($step::NOT_ANYMORE)->withStatus($step::SUCCESSFULLY),
37  $f->step('step 13', 'not available anymore, unsuccessfully completed')
38  ->withAvailability($step::NOT_ANYMORE)->withStatus($step::UNSUCCESSFULLY),
39  ];
40 
41  //setup linear workflow
42  $wf = $f->linear('Linear Workflow', $steps)
43  ->withActive(4);
44 
45  //render
46  return $renderer->render($wf);
47 }
global $DIC
Definition: saml.php:7
$steps
Definition: latex.php:3
foreach( $_REQUEST as $var) foreach(array('_POST'=> 'HTTP_POST_VARS', '_GET'=> 'HTTP_GET_VARS', '_COOKIE'=> 'HTTP_COOKIE_VARS', '_SERVER'=> 'HTTP_SERVER_VARS', '_ENV'=> 'HTTP_ENV_VARS', '_FILES'=> 'HTTP_POST_FILES') as $array=> $other) $step
Definition: cssgen.php:155