|
Wikibase
MediaWiki Wikibase extension
|
Static Public Member Functions | |
| static | collectValues (array $data, array $ignore=[]) |
| Recursively collects values from nested arrays. | |
Static Private Member Functions | |
| static | collectValuesInternal (array $data, array $flippedIgnoreArray, array &$values=[]) |
| Recursively collects values from nested arrays. | |
|
static |
Recursively collects values from nested arrays.
| array | $data | The array structure to process. |
| array | $ignore | A list of keys to skip. |
|
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.
| array | $data | The array structure to process. |
| array | $flippedIgnoreArray | An array with keys that should be flipped |
| array | &$values | Values from a previous call. |