string CCoursePackage::CreateManifest();
The CreateManifest method returns a manifest, in the XML format, of the training course archive.
The method returns a string whose bits are the contents of the imsmanifest.xml file (the training course archive).
<?
if (CModule::IncludeModule("learning"))
{
$COURSE_ID = 97;
if (CCourse::GetPermission($COURSE_ID) >= 'W')
{
@set_time_limit(0);
$package = new CCoursePackage($COURSE_ID);
if (strlen($package->LAST_ERROR) > 0)
{
echo "Error: ".$package->LAST_ERROR;
}
else
{
echo htmlspecialchars($package->CreateManifest());
}
}
}
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |