public function importDependencyFiles(QtiResource $qtiItemResource, $dependencies)
    {
        $qtiFile = $this->getSource() . \helpers_File::urlToPath($qtiItemResource->getFile());
        foreach ($qtiItemResource->getDependencies() as $dependenciesFile) {
            if (!isset($dependencies[$dependenciesFile])) {
                continue;
            }
            $absolutePath = $this->getAbsolutePath($dependencies[$dependenciesFile]->getFile());
            $relativePath = $this->getRelativePath($qtiFile, $absolutePath);
            try {
                $this->importAsset($absolutePath, $relativePath);
            } catch(\common_Exception $e) {
                throw new AssetManagerException(
                    'Error occurs during dependency assets handling for item: ' . $qtiItemResource->getIdentifier()
                    . ', assetFile: ' . $relativePath,
                    0, $e
                );
            }
        }
        return $this;
    }
public function importDependencyFiles(QtiResource $qtiItemResource, $dependencies)
    {
        $qtiFile = $this->getSource() . \helpers_File::urlToPath($qtiItemResource->getFile());
        foreach ($qtiItemResource->getDependencies() as $dependenciesFile) {
            if (!isset($dependencies[$dependenciesFile])) {
                continue;
            }
            $absolutePath = $this->getAbsolutePath($dependencies[$dependenciesFile]->getFile());
            $relativePath = $this->getRelativePath($qtiFile, $absolutePath);
            try {
                $this->importAsset($absolutePath, $relativePath);
            } catch(\common_Exception $e) {
                throw new AssetManagerException(
                    'Error occurs during dependency assets handling for item: ' . $qtiItemResource->getIdentifier()
                    . ', assetFile: ' . $relativePath,
                    0, $e
                );
            }
        }
        return $this;
    }
public function importDependencyFiles ( QtiResource $ qtiItemResource , $ dependencies ) { $ qtiFile = $ this -> getSource ( ) . \ helpers_File :: urlToPath ( $ qtiItemResource -> getFile ( ) ) ; foreach ( $ qtiItemResource -> getDependencies ( ) as $ dependenciesFile ) { if ( ! isset ( $ dependencies [ $ dependenciesFile ] ) ) { continue ; } $ absolutePath = $ this -> getAbsolutePath ( $ dependencies [ $ dependenciesFile ] -> getFile ( ) ) ; $ relativePath = $ this -> getRelativePath ( $ qtiFile , $ absolutePath ) ; try { $ this -> importAsset ( $ absolutePath , $ relativePath ) ; } catch ( \ common_Exception $ e ) { throw new AssetManagerException ( 'Error occurs during dependency assets handling for item: ' . $ qtiItemResource -> getIdentifier ( ) . ', assetFile: ' . $ relativePath , 0 , $ e ) ; } } return $ this ; }
Import dependencies files

@param QtiResource $qtiItemResource
@param $dependencies
@return $this
@throws AssetManagerException
Import dependencies files