38 if ($dh = opendir(
$dir)) {
39 while ((
$file = readdir($dh)) !==
false) {
40 if (!preg_match(
"~^[\.]{1,2}~i",
$file)) {
46 if (preg_match(
"~(\.xml)$~i",
$file)) {
50 if (
$file !=
"index.xml" &&
$file !=
"indexMD.xml") {
63 $this->dir = $directory .
'/';
68 $this->summary = array();
70 if (count($this->summary) == 0) {
81 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