public function importPortableElementFile($absolutePath, $relativePath)
    {
        if ($this->isPortableElementAsset($relativePath)) {

            //marked the file as being ok to be imported in the end
            $this->importingFiles[] = $relativePath;

            //@todo remove qti file used by PCI

            return $this->getFileInfo($absolutePath, $relativePath);
        } else {
            throw new \common_Exception('trying to import an asset that is not part of the portable element asset list');
        }
    }
public function importPortableElementFile($absolutePath, $relativePath)
    {
        if ($this->isPortableElementAsset($relativePath)) {

            //marked the file as being ok to be imported in the end
            $this->importingFiles[] = $relativePath;

            //@todo remove qti file used by PCI

            return $this->getFileInfo($absolutePath, $relativePath);
        } else {
            throw new \common_Exception('trying to import an asset that is not part of the portable element asset list');
        }
    }
public function importPortableElementFile ( $ absolutePath , $ relativePath ) { if ( $ this -> isPortableElementAsset ( $ relativePath ) ) { //marked the file as being ok to be imported in the end $ this -> importingFiles [ ] = $ relativePath ; //@todo remove qti file used by PCI return $ this -> getFileInfo ( $ absolutePath , $ relativePath ) ; } else { throw new \ common_Exception ( 'trying to import an asset that is not part of the portable element asset list' ) ; } }
Handle pci import process for a file

@param $absolutePath
@param $relativePath
@return array
@throws \common_Exception
@throws \tao_models_classes_FileNotFoundException
Handle pci import process for a file