ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Modules\Test\Incident Class Reference
+ Collaboration diagram for ILIAS\Modules\Test\Incident:

Public Member Functions

 any (callable $are_you_ok, array $array)
 @template A More...
 

Detailed Description

Definition at line 23 of file Incident.php.

Member Function Documentation

◆ any()

ILIAS\Modules\Test\Incident::any ( callable  $are_you_ok,
array  $array 
)

@template A

Parameters
callable(A)bool $are_you_ok
A[]$array

Definition at line 30 of file Incident.php.

30 : bool
31 {
32 foreach ($array as $x) {
33 if ($are_you_ok($x)) {
34 return true;
35 }
36 }
37
38 return false;
39 }

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