public function isApplicable($relativePath)
    {
        $xincluded = array();
        /** @var Element $xincludeElement */
        foreach ($this->getQtiModel()->getComposingElements('oat\taoQtiItem\model\qti\Xinclude') as $xincludeElement) {
            $xincluded[] = $xincludeElement->attr('href');
            \common_Logger::i("Xinclude component found in resource '" .
                $this->getQtiModel()->getIdentifier() . "' with href '" . $xincludeElement->attr('href') . "'.");
        }

        return (!empty($this->sharedStorage) && in_array($relativePath, $xincluded));
    }
public function isApplicable($relativePath)
    {
        $xincluded = array();
        /** @var Element $xincludeElement */
        foreach ($this->getQtiModel()->getComposingElements('oat\taoQtiItem\model\qti\Xinclude') as $xincludeElement) {
            $xincluded[] = $xincludeElement->attr('href');
            \common_Logger::i("Xinclude component found in resource '" .
                $this->getQtiModel()->getIdentifier() . "' with href '" . $xincludeElement->attr('href') . "'.");
        }

        return (!empty($this->sharedStorage) && in_array($relativePath, $xincluded));
    }
public function isApplicable ( $ relativePath ) { $ xincluded = array ( ) ; /** @var Element $xincludeElement */ foreach ( $ this -> getQtiModel ( ) -> getComposingElements ( 'oat\taoQtiItem\model\qti\Xinclude' ) as $ xincludeElement ) { $ xincluded [ ] = $ xincludeElement -> attr ( 'href' ) ; \ common_Logger :: i ( "Xinclude component found in resource '" . $ this -> getQtiModel ( ) -> getIdentifier ( ) . "' with href '" . $ xincludeElement -> attr ( 'href' ) . "'." ) ; } return ( ! empty ( $ this -> sharedStorage ) && in_array ( $ relativePath , $ xincluded ) ) ; }
Check if current file.xml is shared stimulus

@param $relativePath
@return bool
@throws FileUploadException
Check if current file . xml is shared stimulus