private function getItemContent(core_kernel_classes_Resource $itemResource, $langCode = '')
    {
        if ($this->isQtiItem($itemResource)) {
            $itemContent  = Service::singleton()
                ->getDataItemByRdfItem($itemResource, $langCode)
                ->toXML();
            if (!empty($itemContent)) {
                return simplexml_load_string($itemContent);
            }
        }

        return null;
    }
private function getItemContent(core_kernel_classes_Resource $itemResource, $langCode = '')
    {
        if ($this->isQtiItem($itemResource)) {
            $itemContent  = Service::singleton()
                ->getDataItemByRdfItem($itemResource, $langCode)
                ->toXML();
            if (!empty($itemContent)) {
                return simplexml_load_string($itemContent);
            }
        }

        return null;
    }
private function getItemContent ( core_kernel_classes_Resource $ itemResource , $ langCode = '' ) { if ( $ this -> isQtiItem ( $ itemResource ) ) { $ itemContent = Service :: singleton ( ) -> getDataItemByRdfItem ( $ itemResource , $ langCode ) -> toXML ( ) ; if ( ! empty ( $ itemContent ) ) { return simplexml_load_string ( $ itemContent ) ; } } return null ; }
Get the item content for a qti item resource

@param core_kernel_classes_Resource $itemResource
@param string $langCode
@return SimpleXMLElement
Get the item content for a qti item resource