Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/inc/lib/MoodleImport.lib.php

25 lines
578 B

<?php
/* For licensing terms, see /license.txt */
/**
* Class MoodleImport
*
* @author José Loguercio <jose.loguercio@beeznest.com>
* @package chamilo.library
*/
class MoodleImport
{
/**
* @param resource $file *.* mbz file moodle course backup
* @return bool
*/
public function readMoodleFile($file)
{
if (is_file($file) && is_readable($file) && ($xml = @file_get_contents($file))) {
$package = new PclZip($file);
$packageContent = $package->listContent();
return $packageContent;
}
}
}