ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
StartEvent_Multistart Class Reference
+ Inheritance diagram for StartEvent_Multistart:
+ Collaboration diagram for StartEvent_Multistart:

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from ilBaseWorkflow
 __construct ()
 Default constructor. More...
 
 startWorkflow ()
 Starts the workflow, activating the start_node. More...
 
 stopWorkflow ()
 Stops the workflow, deactivating all nodes. More...
 
 onStartWorkflow ()
 Method called on start of the workflow, prior to activating the first node. More...
 
 onStopWorkflow ()
 Method called on stopping of the workflow, after deactivating all nodes. More...
 
 onWorkflowFinished ()
 Method called after workflow is finished, after detecting no more nodes are active. More...
 
 isActive ()
 Returns the activation status of the workflow. More...
 
 handleEvent ($params)
 Handles an event. More...
 
 registerDetector (ilDetector $detector)
 
 getWorkflowData ()
 Returns the workflow type and content currently set to the workflow. More...
 
 getWorkflowSubject ()
 Get the workflow subject set to the workflow. More...
 
 getWorkflowContext ()
 Get the event context set to the workflow. More...
 
 setDbId ($id)
 Sets the database id of the detector. More...
 
 getDbId ()
 Returns the database id of the detector if set. More...
 
 hasDbId ()
 Returns, if the detector has a database id. More...
 
 setStartNode (ilNode $node)
 Sets the start node of the workflow. More...
 
 addNode (ilNode $node)
 This method adds a node to the workflow. More...
 
 setWorkflowClass ($class)
 Sets the classname of the workflow definition. More...
 
 getWorkflowClass ()
 Returns the currently set workflow class definition name. More...
 
 setWorkflowLocation ($path)
 Sets the location of the workflow definition file as relative path. More...
 
 getWorkflowLocation ()
 Returns the currently set path to the workflow definition. More...
 
 getNodes ()
 Returns all nodes attached to the workflow. More...
 
 isDataPersistenceRequired ()
 
 resetDataPersistenceRequirement ()
 
 defineInstanceVar ( $id, $name, $reference=false, $reference_target='', $type='mixed', $role='undefined')
 
 hasInstanceVarByName ($name)
 Returns if an instance variable of the given name is set. More...
 
 hasInstanceVarById ($id)
 Returns if an instance variable of the given id is set. More...
 
 getInstanceVarByName ($name)
 Returns the given instance variables content. More...
 
 getInstanceVarById ($id)
 Returns the given instance variables content. More...
 
 setInstanceVarByName ($name, $value)
 Sets the given instance var with the given content. More...
 
 setInstanceVarById ($id, $value)
 Sets the given instance var with the given content. More...
 
 setInstanceVarByRole ($role, $value)
 Sets the given instance var with the given content. More...
 
 getInstanceVars ()
 Returns an array with all set instance variables. More...
 
 flushInstanceVars ()
 Empties the instance variables. More...
 
 defineInputVar ($name)
 
 defineOutputVar ($name)
 
 readInputVar ($name)
 
 hasInputVar ($name)
 
 hasOutputVar ($name)
 
 writeInputVar ($name, $value)
 
 readOutputVar ($name)
 
 writeOutputVar ($name, $value)
 
 getInputVars ()
 
 getOutputVars ()
 
 registerInputVar ($name, $definition)
 
 registerOutputVar ($name)
 
- Public Member Functions inherited from ilWorkflow
 defineInstanceVar ($id, $name)
 

Static Public Member Functions

static getStartEventInfo ()
 
- Static Public Member Functions inherited from ilBaseWorkflow
static autoload ($class_name)
 Autoloader function to dynamically include files for instantiation of objects during deserialization. More...
 

Static Public Attributes

static $startEventRequired = true
 

Additional Inherited Members

- Protected Attributes inherited from ilBaseWorkflow
 $nodes
 
 $detectors
 
 $start_node
 
 $active
 Holds the activation state of the workflow. More...
 
 $db_id
 This holds the database id of the workflow. More...
 
 $workflow_type
 
 $workflow_content
 
 $workflow_class
 
 $workflow_location
 
 $workflow_subject_type
 
 $workflow_subject_identifier
 
 $workflow_context_type
 
 $workflow_context_identifier
 
 $instance_vars = array()
 
 $data_inputs
 
 $data_outputs
 
 $require_data_persistence = false
 

Detailed Description

Definition at line 6 of file StartEvent_MultiStart_goldsample.php.

Constructor & Destructor Documentation

◆ __construct()

StartEvent_Multistart::__construct ( )

Definition at line 34 of file StartEvent_MultiStart_goldsample.php.

References ilBaseWorkflow\addNode(), and ilBaseWorkflow\setStartNode().

35  {
36 
37  $_v_StartEvent_1 = new ilBasicNode($this);
38  $this->addNode($_v_StartEvent_1);
39  $_v_StartEvent_1->setName('$_v_StartEvent_1');
40 
41  $_v_StartEvent_1_detector = new ilEventDetector($_v_StartEvent_1);
42  $_v_StartEvent_1_detector->setName('$_v_StartEvent_1_detector');
43  $_v_StartEvent_1_detector->setEvent( "time_passed", "time_passed");
44  $_v_StartEvent_1_detector->setEventSubject( "none", "0");
45  $_v_StartEvent_1_detector->setEventContext( "none", "0");
46  $_v_StartEvent_1_detector->setListeningTimeframe(1399889594, 0);
47  $_v_StartEvent_2 = new ilBasicNode($this);
48  $this->addNode($_v_StartEvent_2);
49  $_v_StartEvent_2->setName('$_v_StartEvent_2');
50 
51  $_v_StartEvent_2_detector = new ilEventDetector($_v_StartEvent_2);
52  $_v_StartEvent_2_detector->setName('$_v_StartEvent_2_detector');
53  $_v_StartEvent_2_detector->setEvent( "Test", "UserFailedTest");
54  $_v_StartEvent_2_detector->setEventSubject( "usr", "0");
55  $_v_StartEvent_2_detector->setEventContext( "obj", "0");
56 
57  $_v_StartEvent_3 = new ilBasicNode($this);
58  $this->addNode($_v_StartEvent_3);
59  $_v_StartEvent_3->setName('$_v_StartEvent_3');
60 
61  $this->setStartNode($_v_StartEvent_3);
62 
63  }
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection
+ Here is the call graph for this function:

Member Function Documentation

◆ getStartEventInfo()

static StartEvent_Multistart::getStartEventInfo ( )
static

Definition at line 11 of file StartEvent_MultiStart_goldsample.php.

References $events.

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  $events[] = array(
23  'type' => 'Test',
24  'content' => 'UserFailedTest',
25  'subject_type' => 'usr',
26  'subject_id' => '0',
27  'context_type' => 'obj',
28  'context_id' => '0',
29  );
30 
31  return $events;
32  }
if($argc< 2) $events

Field Documentation

◆ $startEventRequired

StartEvent_Multistart::$startEventRequired = true
static

Definition at line 9 of file StartEvent_MultiStart_goldsample.php.


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