• Модуль: learning
  • Путь к файлу: ~/bitrix/modules/learning/classes/general/scorm.php
  • Класс: CCourseSCORM
  • Вызов: CCourseSCORM::ImportPackage
public function ImportPackage()
{
	$resources = $this->objXML->SelectNodes("/manifest/resources/");
	$this->arResources = $resources->__toArray();
	$this->arResources = $this->arResources["#"]["resource"];

	if (!$this->CreateCourse())
		return false;

	$this->CreateContent();

	CLearnHelper::CopyDirFiles(
		$this->package_dir, 
		$_SERVER["DOCUMENT_ROOT"]."/".(COption::GetOptionString("main", "upload_dir", "upload"))."/learning/scorm/".$this->COURSE_ID, 
		true, 
		true);

	return true;
}