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

@noinspection PhpIncludeInspection More...

+ Inheritance diagram for ilStaticMethodCallActivity:
+ Collaboration diagram for ilStaticMethodCallActivity:

Public Member Functions

 __construct (ilNode $context)
 Default constructor. More...
 
 setIncludeFilename ($filename)
 Sets the name of the file to be included prior to calling the method. More...
 
 getIncludeFilename ()
 Returns the currently set filename of the classfile to be included. More...
 
 setClassAndMethodName ($name)
 
 getClassAndMethodName ()
 Returns the currently set class- and methodname of the method to be called. More...
 
 setParameters ($params)
 Sets an array with params for the method. More...
 
 getParameters ()
 Returns the currently set parameters to be passed to the method. More...
 
 getOutputs ()
 
 setOutputs ($outputs)
 
 getContext ()
 Returns a reference to the parent node. More...
 
 setName ($name)
 
 getName ()
 
- Public Member Functions inherited from ilActivity
 execute ()
 
 getContext ()
 This method returns the context of the element. More...
 
 setName ($name)
 
 getName ()
 

Protected Attributes

 $name
 

Private Attributes

 $context
 
 $include_file = ''
 
 $class_and_method_name = ''
 
 $parameters
 
 $outputs
 

Detailed Description

@noinspection PhpIncludeInspection

@noinspection PhpIncludeInspection Class ilStaticMethodCallActivity

This activity calls a given static method with a reference to itself as and a given array as parameters.

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

/

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

Constructor & Destructor Documentation

◆ __construct()

ilStaticMethodCallActivity::__construct ( ilNode  $context)

Default constructor.

Parameters
ilNode$context

Definition at line 50 of file class.ilStaticMethodCallActivity.php.

References $context.

Member Function Documentation

◆ getClassAndMethodName()

ilStaticMethodCallActivity::getClassAndMethodName ( )

Returns the currently set class- and methodname of the method to be called.

Returns
string

Definition at line 99 of file class.ilStaticMethodCallActivity.php.

References $class_and_method_name.

◆ getContext()

ilStaticMethodCallActivity::getContext ( )

Returns a reference to the parent node.

Returns
ilNode Reference to the parent node.

Implements ilWorkflowEngineElement.

Definition at line 195 of file class.ilStaticMethodCallActivity.php.

196 {
197 return $this->context;
198 }

References $context.

◆ getIncludeFilename()

ilStaticMethodCallActivity::getIncludeFilename ( )

Returns the currently set filename of the classfile to be included.

Returns
string

Definition at line 74 of file class.ilStaticMethodCallActivity.php.

References $include_file.

◆ getName()

ilStaticMethodCallActivity::getName ( )
Returns
string

Implements ilWorkflowEngineElement.

Definition at line 211 of file class.ilStaticMethodCallActivity.php.

References $name.

◆ getOutputs()

ilStaticMethodCallActivity::getOutputs ( )
Returns
array

Definition at line 130 of file class.ilStaticMethodCallActivity.php.

References $outputs.

◆ getParameters()

ilStaticMethodCallActivity::getParameters ( )

Returns the currently set parameters to be passed to the method.

Returns
array

Definition at line 122 of file class.ilStaticMethodCallActivity.php.

References $parameters.

◆ setClassAndMethodName()

ilStaticMethodCallActivity::setClassAndMethodName (   $name)

Definition at line 89 of file class.ilStaticMethodCallActivity.php.

90 {
91 $this->class_and_method_name = $name;
92 }

References $name.

◆ setIncludeFilename()

ilStaticMethodCallActivity::setIncludeFilename (   $filename)

Sets the name of the file to be included prior to calling the method.

See also
$include_file
Parameters
string$filenameName of the file to be included.
Returns
void

Definition at line 64 of file class.ilStaticMethodCallActivity.php.

65 {
66 $this->include_file = $filename;
67 }
$filename
Definition: buildRTE.php:89

References $filename.

◆ setName()

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

Implements ilWorkflowEngineElement.

Definition at line 203 of file class.ilStaticMethodCallActivity.php.

204 {
205 $this->name = $name;
206 }

References $name.

◆ setOutputs()

ilStaticMethodCallActivity::setOutputs (   $outputs)
Parameters
array$outputs

Definition at line 138 of file class.ilStaticMethodCallActivity.php.

139 {
140 $this->outputs = $outputs;
141 }

References $outputs.

◆ setParameters()

ilStaticMethodCallActivity::setParameters (   $params)

Sets an array with params for the method.

This will be set as second parameter.

Parameters
array$paramsArray with parameters.
Returns
void

Definition at line 112 of file class.ilStaticMethodCallActivity.php.

113 {
114 $this->parameters = $params;
115 }

References PHPMailer\PHPMailer\$params.

Field Documentation

◆ $class_and_method_name

ilStaticMethodCallActivity::$class_and_method_name = ''
private

Definition at line 34 of file class.ilStaticMethodCallActivity.php.

Referenced by getClassAndMethodName().

◆ $context

ilStaticMethodCallActivity::$context
private

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

Referenced by __construct(), and getContext().

◆ $include_file

ilStaticMethodCallActivity::$include_file = ''
private

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

Referenced by getIncludeFilename().

◆ $name

string ilStaticMethodCallActivity::$name
protected

Definition at line 43 of file class.ilStaticMethodCallActivity.php.

Referenced by getName(), setClassAndMethodName(), and setName().

◆ $outputs

ilStaticMethodCallActivity::$outputs
private

Definition at line 40 of file class.ilStaticMethodCallActivity.php.

Referenced by getOutputs(), and setOutputs().

◆ $parameters

ilStaticMethodCallActivity::$parameters
private

Definition at line 37 of file class.ilStaticMethodCallActivity.php.

Referenced by getParameters().


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