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

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 ()
 

Protected Attributes

 $name
 

Private Attributes

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

Detailed Description

PhpIncludeInspection

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.

51  {
52  $this->context = $context;
53  }

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.

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.

References $name.

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

◆ 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.

References $filename.

65  {
66  $this->include_file = $filename;
67  }

◆ setName()

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

Implements ilWorkflowEngineElement.

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

References $name.

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

◆ setOutputs()

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

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

References $include_file, $key, $list, $name, $outputs, $params, array, and ilActivity\execute().

139  {
140  $this->outputs = $outputs;
141  }
+ Here is the call graph for this function:

◆ 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.

References $params.

113  {
114  $this->parameters = $params;
115  }
$params
Definition: disable.php:11

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(), and setOutputs().

◆ $name

ilStaticMethodCallActivity::$name
protected

◆ $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: