M1\Vars\Resource\FileResource::processImport PHP Méthode

processImport() private méthode

Processes the import and gets individual import if set and passes them off to import2Resources()
private processImport ( mixed $import, array $imported_resources ) : array
$import mixed The import to be processed
$imported_resources array The array of imported resources
Résultat array The parsed imported resources
    private function processImport($import, array $imported_resources)
    {
        if (is_array($import) && array_key_exists('resource', $import) && is_array($import['resource'])) {
            foreach ($import['resource'] as $resource) {
                $temp = array('resource' => $resource, 'relative' => $this->checkBooleanValue('relative', $import), 'recursive' => $this->checkBooleanValue('recursive', $import));
                $imported_resources = $this->import2Resource($temp, $imported_resources);
            }
        } else {
            $imported_resources = $this->import2Resource($import, $imported_resources);
        }
        return $imported_resources;
    }