33 if ($dh = opendir(
$dir)) {
34 while ((
$file = readdir($dh)) !==
false) {
35 if (!preg_match(
"~^[\.]{1,2}~i",
$file)) {
37 if (is_dir(
$dir.$file)) {
41 if (preg_match(
"~(\.xml)$~i",
$file)) {
45 if (
$file !=
"index.xml" &&
$file !=
"indexMD.xml")
58 $this->dir = $directory.
'/';
63 $this->summary = array();
65 if(count($this->summary) == 0)
79 foreach ($this->summary as $line)
An exception for terminatinating execution or to throw for unit testing.
Validation of SCORM-XML Files.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file