Neos\Flow\Http\Request::calculateFieldPaths PHP Метод

calculateFieldPaths() защищенный Метод

Returns and array of all possibles "field paths" for the given array.
protected calculateFieldPaths ( array $structure, string $firstLevelFieldName = null ) : array
$structure array The array to walk through
$firstLevelFieldName string
Результат array An array of paths (as strings) in the format "key1/key2/key3" ...
    protected function calculateFieldPaths(array $structure, $firstLevelFieldName = null)
    {
        $fieldPaths = [];
        if (is_array($structure)) {
            foreach ($structure as $key => $subStructure) {
                $fieldPath = ($firstLevelFieldName !== null ? $firstLevelFieldName . '/' : '') . $key;
                if (is_array($subStructure)) {
                    foreach ($this->calculateFieldPaths($subStructure) as $subFieldPath) {
                        $fieldPaths[] = $fieldPath . '/' . $subFieldPath;
                    }
                } else {
                    $fieldPaths[] = $fieldPath;
                }
            }
        }
        return $fieldPaths;
    }