ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSettingActivity Class Reference

PhpIncludeInspection More...

+ Inheritance diagram for ilSettingActivity:
+ Collaboration diagram for ilSettingActivity:

Public Member Functions

 __construct (ilNode $context)
 Default constructor. More...
 
 setSettingName ($name)
 Sets the name of the setting to be written to. More...
 
 getSettingName ()
 Returns the name of the setting to be written to. More...
 
 setSettingValue ($value)
 
 getSettingValue ()
 Returns the value of the setting to be set. More...
 
 setSetting ($name, $value)
 Sets the setting name and value for this activity. More...
 
 getContext ()
 Returns a reference to the parent node. More...
 
 setName ($name)
 
 getName ()
 
- Public Member Functions inherited from ilActivity
 execute ()
 

Protected Attributes

 $name
 

Private Attributes

 $context
 
 $setting_name = ''
 
 $setting_value = ''
 

Detailed Description

PhpIncludeInspection

PhpIncludeInspection Class ilSettingActivity

This activity sets a given setting to the $ilSetting object. Design consideration is to configure this object during workflow creation, since this is called only under predictable circumstances.

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

/

Definition at line 21 of file class.ilSettingActivity.php.

Constructor & Destructor Documentation

◆ __construct()

ilSettingActivity::__construct ( ilNode  $context)

Default constructor.

Parameters
ilNode$context

Definition at line 52 of file class.ilSettingActivity.php.

References $context.

53  {
54  $this->context = $context;
55  }

Member Function Documentation

◆ getContext()

ilSettingActivity::getContext ( )

Returns a reference to the parent node.

Returns
ilNode Reference to the parent node.

Implements ilWorkflowEngineElement.

Definition at line 144 of file class.ilSettingActivity.php.

References $context.

145  {
146  return $this->context;
147  }

◆ getName()

ilSettingActivity::getName ( )
Returns
string

Implements ilWorkflowEngineElement.

Definition at line 160 of file class.ilSettingActivity.php.

References $name.

161  {
162  return $this->name;
163  }

◆ getSettingName()

ilSettingActivity::getSettingName ( )

Returns the name of the setting to be written to.

See also
$setting_name
Returns
string

Definition at line 78 of file class.ilSettingActivity.php.

References $setting_name.

79  {
80  return $this->setting_name;
81  }

◆ getSettingValue()

ilSettingActivity::getSettingValue ( )

Returns the value of the setting to be set.

See also
$setting_value
Returns
string

Definition at line 104 of file class.ilSettingActivity.php.

References $setting_value.

105  {
106  return $this->setting_value;
107  }

◆ setName()

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

Implements ilWorkflowEngineElement.

Definition at line 152 of file class.ilSettingActivity.php.

References $name.

153  {
154  $this->name = $name;
155  }

◆ setSetting()

ilSettingActivity::setSetting (   $name,
  $value 
)

Sets the setting name and value for this activity.

Parameters
string$nameName of the setting.
string$valueValue to be set.
Returns
void

Definition at line 117 of file class.ilSettingActivity.php.

References $DIC, $ilSetting, $name, ilActivity\execute(), setSettingName(), and setSettingValue().

118  {
119  $this->setSettingName($name);
120  $this->setSettingValue($value);
121  }
setSettingName($name)
Sets the name of the setting to be written to.
+ Here is the call graph for this function:

◆ setSettingName()

ilSettingActivity::setSettingName (   $name)

Sets the name of the setting to be written to.

See also
$setting_name
Parameters
string$nameName of the setting.
Returns
void

Definition at line 66 of file class.ilSettingActivity.php.

References $name.

Referenced by setSetting().

67  {
68  $this->setting_name = $name;
69  }
+ Here is the caller graph for this function:

◆ setSettingValue()

ilSettingActivity::setSettingValue (   $value)

Definition at line 92 of file class.ilSettingActivity.php.

Referenced by setSetting().

93  {
94  $this->setting_value = $value;
95  }
+ Here is the caller graph for this function:

Field Documentation

◆ $context

ilSettingActivity::$context
private

Definition at line 24 of file class.ilSettingActivity.php.

Referenced by __construct(), and getContext().

◆ $name

ilSettingActivity::$name
protected

Definition at line 45 of file class.ilSettingActivity.php.

Referenced by getName(), setName(), setSetting(), and setSettingName().

◆ $setting_name

ilSettingActivity::$setting_name = ''
private

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

Referenced by getSettingName().

◆ $setting_value

ilSettingActivity::$setting_value = ''
private

Definition at line 42 of file class.ilSettingActivity.php.

Referenced by getSettingValue().


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