|
static | collectValues (array $data, array $ignore=[]) |
| Recursively collects values from nested arrays.
|
|
|
static | collectValuesInternal (array $data, array $flippedIgnoreArray, array &$values=[]) |
| Recursively collects values from nested arrays.
|
|
- Copyright
- GPL-2.0-or-later
◆ collectValues()
static Wikibase\Repo\ArrayValueCollector::collectValues |
( |
array |
$data, |
|
|
array |
$ignore = [] |
|
) |
| |
|
static |
Recursively collects values from nested arrays.
- Parameters
-
array | $data | The array structure to process. |
array | $ignore | A list of keys to skip. |
- Returns
- array The values found in the array structure.
◆ collectValuesInternal()
static Wikibase\Repo\ArrayValueCollector::collectValuesInternal |
( |
array |
$data, |
|
|
array |
$flippedIgnoreArray, |
|
|
array & |
$values = [] |
|
) |
| |
|
staticprivate |
Recursively collects values from nested arrays.
This function can be called tens of thousands of times, so try to keep it as lean as possible. The passing of $values by reference through the calls is a performance improvement.
- Parameters
-
array | $data | The array structure to process. |
array | $flippedIgnoreArray | An array with keys that should be flipped |
array | &$values | Values from a previous call. |
- Returns
- array The values found in the array structure.
The documentation for this class was generated from the following file: