@@ 908-917 (lines=10) @@ | ||
905 | } |
|
906 | } |
|
907 | ||
908 | function isQtiQuestionBank($filePath) { |
|
909 | $data = file_get_contents($filePath); |
|
910 | if (!empty($data)) { |
|
911 | $match = preg_match('/ims_qtiasiv(\d)p(\d)/', $data); |
|
912 | if ($match) { |
|
913 | return true; |
|
914 | } |
|
915 | } |
|
916 | return false; |
|
917 | } |
|
918 | function isQtiManifest($filePath) { |
|
919 | $data = file_get_contents($filePath); |
|
920 | if (!empty($data)) { |
|
@@ 918-927 (lines=10) @@ | ||
915 | } |
|
916 | return false; |
|
917 | } |
|
918 | function isQtiManifest($filePath) { |
|
919 | $data = file_get_contents($filePath); |
|
920 | if (!empty($data)) { |
|
921 | $match = preg_match('/imsccv(\d)p(\d)/', $data); |
|
922 | if ($match) { |
|
923 | return true; |
|
924 | } |
|
925 | } |
|
926 | return false; |
|
927 | } |