ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
Data_Wiring_Input_Task Class Reference
+ Inheritance diagram for Data_Wiring_Input_Task:
+ Collaboration diagram for Data_Wiring_Input_Task:

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 Attributes

static $startEventRequired = false
 

Additional Inherited Members

- Static Public Member Functions inherited from ilBaseWorkflow
static autoload ($class_name)
 Autoloader function to dynamically include files for instantiation of objects during deserialization. More...
 
- 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 8 of file Data_Wiring_Input_Task_goldsample.php.

Constructor & Destructor Documentation

◆ __construct()

Data_Wiring_Input_Task::__construct ( )

Definition at line 13 of file Data_Wiring_Input_Task_goldsample.php.

References ilBaseWorkflow\addNode(), array, ilBaseWorkflow\defineInstanceVar(), ilBaseWorkflow\registerInputVar(), and ilBaseWorkflow\setStartNode().

14  {
15 
16  $this->defineInstanceVar("DataInput_1", "user_id", false, "", "mixed", "undefined" );
17  $this->registerInputVar("DataInput_1", array());
18 
19  $_v_StartEvent_1 = new ilBasicNode($this);
20  $this->addNode($_v_StartEvent_1);
21  $_v_StartEvent_1->setName('$_v_StartEvent_1');
22 
23  $this->setStartNode($_v_StartEvent_1);
24 
25  $_v_Task_1 = new ilBasicNode($this);
26  $this->addNode($_v_Task_1);
27  $_v_Task_1->setName('$_v_Task_1');
28 
29  $_v_Task_1_inputDataDetector = new ilDataDetector($_v_Task_1);
30  $_v_Task_1_inputDataDetector->setVarName("DataInput_1");
31  $_v_Task_1_inputDataDetector->setName($_v_Task_1_inputDataDetector);
32  $_v_Task_1->addDetector($_v_Task_1_inputDataDetector);
33 
34  $_v_EndEvent_1 = new ilBasicNode($this);
35  $this->addNode($_v_EndEvent_1);
36  $_v_EndEvent_1->setName('$_v_EndEvent_1');
37 
38  $_v_Task_1_detector = new ilSimpleDetector($_v_Task_1);
39  $_v_Task_1_detector->setName('$_v_Task_1_detector');
40  $_v_Task_1_detector->setSourceNode($_v_StartEvent_1);
41  $_v_Task_1->addDetector($_v_Task_1_detector);
42  $_v_StartEvent_1_emitter = new ilActivationEmitter($_v_StartEvent_1);
43  $_v_StartEvent_1_emitter->setName('$_v_StartEvent_1_emitter');
44  $_v_StartEvent_1_emitter->setTargetDetector($_v_Task_1_detector);
45  $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
46 
47  $_v_EndEvent_1_detector = new ilSimpleDetector($_v_EndEvent_1);
48  $_v_EndEvent_1_detector->setName('$_v_EndEvent_1_detector');
49  $_v_EndEvent_1_detector->setSourceNode($_v_Task_1);
50  $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
51  $_v_Task_1_emitter = new ilActivationEmitter($_v_Task_1);
52  $_v_Task_1_emitter->setName('$_v_Task_1_emitter');
53  $_v_Task_1_emitter->setTargetDetector($_v_EndEvent_1_detector);
54  $_v_Task_1->addEmitter($_v_Task_1_emitter);
55 
56  }
defineInstanceVar($id, $name, $reference=false, $reference_target='', $type='mixed', $role='undefined')
PhpIncludeInspection
addNode(ilNode $node)
This method adds a node to the workflow.
PhpIncludeInspection
Create styles array
The data for the language used.
registerInputVar($name, $definition)
setStartNode(ilNode $node)
Sets the start node of the workflow.
PhpIncludeInspection
+ Here is the call graph for this function:

Field Documentation

◆ $startEventRequired

Data_Wiring_Input_Task::$startEventRequired = false
static

Definition at line 11 of file Data_Wiring_Input_Task_goldsample.php.


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