ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
StartEvent_Timer_Date_goldsample.php
Go to the documentation of this file.
1<?php
2require_once './Services/WorkflowEngine/classes/workflows/class.ilBaseWorkflow.php';
3require_once './Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php';
4require_once './Services/WorkflowEngine/classes/detectors/class.ilEventDetector.php';
5
7 {
8
9 public static $startEventRequired = true;
10
11 public static function getStartEventInfo()
12 {
13 $events[] = array(
14 'type' => 'time_passed',
15 'content' => 'time_passed',
16 'subject_type' => 'none',
17 'subject_id' => '0',
18 'context_type' => 'none',
19 'context_id' => '0',
20 );
21
22 return $events;
23 }
24
25 public function __construct()
26 {
27
28 $_v_StartEvent_1 = new ilBasicNode($this);
29 $this->addNode($_v_StartEvent_1);
30 $_v_StartEvent_1->setName('$_v_StartEvent_1');
31
32 $_v_StartEvent_1_detector = new ilEventDetector($_v_StartEvent_1);
33 $_v_StartEvent_1_detector->setName('$_v_StartEvent_1_detector');
34 $_v_StartEvent_1_detector->setEvent( "time_passed", "time_passed");
35 $_v_StartEvent_1_detector->setEventSubject( "none", "0");
36 $_v_StartEvent_1_detector->setEventContext( "none", "0");
37 $_v_StartEvent_1_detector->setListeningTimeframe(1399889594, 0);
38 }
39 }
40
41?>
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
addNode(ilNode $node)
This method adds a node to the workflow.
@noinspection PhpIncludeInspection
@noinspection PhpIncludeInspection