removed mods directory from the ATutor codebase
[atutor.git] / mods / atutor_opencaps / opencaps / conversion_service / include / classes / static_CcUtilVital_class.php
diff --git a/mods/atutor_opencaps/opencaps/conversion_service/include/classes/static_CcUtilVital_class.php b/mods/atutor_opencaps/opencaps/conversion_service/include/classes/static_CcUtilVital_class.php
deleted file mode 100755 (executable)
index aeb19f5..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php\r
-class CcUtilVital\r
-{\r
-\r
-       /**\r
-        * Loads all Caption Formats and return an array with class names\r
-        * Essential !!\r
-        *\r
-        */\r
-       static public function ccFormatsLoad()\r
-       {\r
-               global $rosettaCCSettings; // load global vars\r
-               \r
-               $ccFormats = array(); // stores all caption formats allowed\r
-               \r
-               $dir = $rosettaCCSettings['ccformats'];\r
-               $ccFormatsString = '';\r
-               $ccFileNameFormatRegex = '/cc_(.*?)_format/'; // (e.g. "cc_(QTtext)_format.php")\r
-               $countCcFiles = 0;\r
-\r
-               // verify if the directory exists\r
-               if ($handle = opendir($dir)) \r
-               {\r
-                   // read all files in the dir and include Caption Format files\r
-                   while (false !== ($file = readdir($handle))) \r
-                   {\r
-                       if (!is_dir($file))\r
-                       {\r
-                               // build a string with all file names\r
-                               $ccFormatsString .= ''.$file.';';\r
-                               \r
-                               // include the caption format file\r
-                                       include_once($dir.'/'.$file);\r
-                               \r
-                               $countCcFiles++;\r
-                       }\r
-                       }\r
-               } \r
-                       // close dir handler \r
-                       closedir($handle);\r
-\r
-                       // get all Class names from the string using regex\r
-                       preg_match_all($ccFileNameFormatRegex, $ccFormatsString, $ccFormatsPat);\r
-                       \r
-                       // add Class names to $ccFormats global Array\r
-                       for ($j=0;$j<count($ccFormatsPat[1]);$j++)\r
-                       {\r
-                               $ccFormats[] = $ccFormatsPat[1][$j];\r
-                       }\r
-                       // sort $ccFormats array \r
-                       asort($ccFormats);\r
-                       \r
-                       return $ccFormats;\r
-                        \r
-       } // ccFormatsLoad() end\r
-\r
-       \r
-       \r
-       \r
-} // end class CcUtilEssential  \r
-?>
\ No newline at end of file