FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Util\ArrayOperation Class Reference
Collaboration diagram for Fossology\Lib\Util\ArrayOperation:
Collaboration graph

Static Public Member Functions

static getMultiplicityOfValues ($allValues)
 
static callChunked (Closure $callback, $values, $chunkSize)
 
static multiSearch ($needles, $haystack)
 
static arrayKeysExists (array $array, array $keys)
 Check if a list of keys exists in associative array. More...
 

Detailed Description

Definition at line 12 of file ArrayOperation.php.

Member Function Documentation

◆ arrayKeysExists()

static Fossology\Lib\Util\ArrayOperation::arrayKeysExists ( array  $array,
array  $keys 
)
static

Check if a list of keys exists in associative array.

This function takes a list of keys which should appear in an associative array. The function flips the key array to make it as an associative array. It then uses the array_diff_key() to compare the two arrays.

Parameters
array$arrayAssociative array to check keys against
array$keysArray of keys to check
Returns
boolean True if all keys exists, false otherwise. @uses array_flip() @uses array_diff_key()

Definition at line 73 of file ArrayOperation.php.

◆ getMultiplicityOfValues()

static Fossology\Lib\Util\ArrayOperation::getMultiplicityOfValues (   $allValues)
static
Parameters
array
Returns
array

Definition at line 18 of file ArrayOperation.php.


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