ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilScriptActivity Class Reference

PhpIncludeInspection More...

+ Inheritance diagram for ilScriptActivity:
+ Collaboration diagram for ilScriptActivity:

Public Member Functions

 __construct (ilNode $context)
 Default constructor. More...
 
 setMethod ($value)
 
 getScript ()
 Returns the value of the setting to be set. More...
 
 execute ()
 Executes this action according to its settings. More...
 
 getContext ()
 Returns a reference to the parent node. More...
 
 setName ($name)
 
 getName ()
 

Protected Attributes

 $name
 

Private Attributes

 $context
 
 $method = ''
 

Detailed Description

PhpIncludeInspection

PhpIncludeInspection Class ilScriptActivity

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

/

Definition at line 17 of file class.ilScriptActivity.php.

Constructor & Destructor Documentation

◆ __construct()

ilScriptActivity::__construct ( ilNode  $context)

Default constructor.

Parameters
ilNode$context

Definition at line 33 of file class.ilScriptActivity.php.

References $context.

34  {
35  $this->context = $context;
36  }

Member Function Documentation

◆ execute()

ilScriptActivity::execute ( )

Executes this action according to its settings.

Returns
void

Implements ilActivity.

Definition at line 63 of file class.ilScriptActivity.php.

References $key, $method, and array.

64  {
66  $return_value = $this->context->getContext()->$method($this);
67  foreach ((array) $return_value as $key => $value) {
68  $this->context->setRuntimeVar($key, $value);
69  }
70  }
Create styles array
The data for the language used.
$key
Definition: croninfo.php:18

◆ getContext()

ilScriptActivity::getContext ( )

Returns a reference to the parent node.

Returns
ilNode Reference to the parent node.

Implements ilWorkflowEngineElement.

Definition at line 77 of file class.ilScriptActivity.php.

References $context.

78  {
79  return $this->context;
80  }

◆ getName()

ilScriptActivity::getName ( )
Returns
string

Implements ilWorkflowEngineElement.

Definition at line 93 of file class.ilScriptActivity.php.

References $name.

94  {
95  return $this->name;
96  }

◆ getScript()

ilScriptActivity::getScript ( )

Returns the value of the setting to be set.

See also
$setting_value
Returns
string

Definition at line 53 of file class.ilScriptActivity.php.

References $method.

54  {
55  return $this->method;
56  }

◆ setMethod()

ilScriptActivity::setMethod (   $value)
Parameters
string$value

Definition at line 41 of file class.ilScriptActivity.php.

42  {
43  $this->method = $value;
44  }

◆ setName()

ilScriptActivity::setName (   $name)
Parameters
string$name

Implements ilWorkflowEngineElement.

Definition at line 85 of file class.ilScriptActivity.php.

References $name.

86  {
87  $this->name = $name;
88  }

Field Documentation

◆ $context

ilScriptActivity::$context
private

Definition at line 20 of file class.ilScriptActivity.php.

Referenced by __construct(), and getContext().

◆ $method

ilScriptActivity::$method = ''
private

Definition at line 23 of file class.ilScriptActivity.php.

Referenced by execute(), and getScript().

◆ $name

ilScriptActivity::$name
protected

Definition at line 26 of file class.ilScriptActivity.php.

Referenced by getName(), and setName().


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