Documentation

CCoursePackage::CreateManifest

string
CCoursePackage::CreateManifest();

The CreateManifest method returns a manifest, in the XML format, of the training course archive.

Parameters

No parameters.

Return Values

The method returns a string whose bits are the contents of the imsmanifest.xml file (the training course archive).

See Also

  • CCoursePackage::CCoursePackage
  • CCoursePackage::CreatePackage
  • Example

    
    <?
    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());
            }
        }
    }
    ?>
    © «Bitrix24», 2001-2024
    Up