ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ComponentMock Class Reference
+ Inheritance diagram for ComponentMock:
+ Collaboration diagram for ComponentMock:

Public Member Functions

 _checkArg (string $which, bool $check, string $message)
 
 _checkStringArg (string $which, $value)
 
 _checkBoolArg (string $which, $value)
 
 _checkArgInstanceOf (string $which, $value, string $class)
 
 _checkArgIsElement (string $which, $value, array $array, string $name)
 
 _toArray ($value)
 
 _checkArgListElements (string $which, array &$value, $classes)
 
 _checkArgList (string $which, array &$value, Closure $check, Closure $message)
 
 getSubComponents ()
 
- Public Member Functions inherited from ILIAS\UI\Component\Component
 getCanonicalName ()
 Get the canonical name of the component. More...
 
 reduceWith (\Closure $fn)
 The scheme starts at the leaves of the structure and applies the function to each leave and moves up the tree recursively. More...
 

Data Fields

 $sub_components = null
 
 $random_data
 

Detailed Description

Definition at line 30 of file ComponentHelperTest.php.

Member Function Documentation

◆ _checkArg()

ComponentMock::_checkArg ( string  $which,
bool  $check,
string  $message 
)

Definition at line 34 of file ComponentHelperTest.php.

34 : void
35 {
36 $this->checkArg($which, $check, $message);
37 }
$check
Definition: buildRTE.php:81
$message
Definition: xapiexit.php:31

References $check, and $message.

◆ _checkArgInstanceOf()

ComponentMock::_checkArgInstanceOf ( string  $which,
  $value,
string  $class 
)

Definition at line 49 of file ComponentHelperTest.php.

49 : void
50 {
51 $this->checkArgInstanceOf($which, $value, $class);
52 }

◆ _checkArgIsElement()

ComponentMock::_checkArgIsElement ( string  $which,
  $value,
array  $array,
string  $name 
)

Definition at line 54 of file ComponentHelperTest.php.

54 : void
55 {
56 $this->checkArgIsElement($which, $value, $array, $name);
57 }

◆ _checkArgList()

ComponentMock::_checkArgList ( string  $which,
array &  $value,
Closure  $check,
Closure  $message 
)

Definition at line 69 of file ComponentHelperTest.php.

69 : void
70 {
71 $this->checkArgList($which, $value, $check, $message);
72 }

References $check, and $message.

◆ _checkArgListElements()

ComponentMock::_checkArgListElements ( string  $which,
array &  $value,
  $classes 
)

Definition at line 64 of file ComponentHelperTest.php.

64 : void
65 {
66 $this->checkArgListElements($which, $value, $classes);
67 }

◆ _checkBoolArg()

ComponentMock::_checkBoolArg ( string  $which,
  $value 
)

Definition at line 44 of file ComponentHelperTest.php.

44 : void
45 {
46 $this->checkBoolArg($which, $value);
47 }

◆ _checkStringArg()

ComponentMock::_checkStringArg ( string  $which,
  $value 
)

Definition at line 39 of file ComponentHelperTest.php.

39 : void
40 {
41 $this->checkStringArg($which, $value);
42 }

◆ _toArray()

ComponentMock::_toArray (   $value)

Definition at line 59 of file ComponentHelperTest.php.

59 : array
60 {
61 return $this->toArray($value);
62 }

◆ getSubComponents()

ComponentMock::getSubComponents ( )

Definition at line 77 of file ComponentHelperTest.php.

77 : ?array
78 {
80 }

References $sub_components.

Field Documentation

◆ $random_data

ComponentMock::$random_data

Definition at line 75 of file ComponentHelperTest.php.

◆ $sub_components

ComponentMock::$sub_components = null

Definition at line 74 of file ComponentHelperTest.php.

Referenced by getSubComponents().


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