/**
  * Adds a css snippet for export purposes
  */
 public function addExportCssSnippet($moduleId, $paneId, $priorityId, $snippetPath)
 {
     $debug = false;
     $priorityId = intval($priorityId);
     $fileName = ModulaiseController::$DIR_DOCUMENT_ROOT . DIRECTORY_SEPARATOR . ModulaiseController::$PATH_MODULES . DIRECTORY_SEPARATOR . $moduleId . DIRECTORY_SEPARATOR . $snippetPath;
     if ($debug) {
         ModulaiseController::printComment("\n\n" . get_class() . "->addFileSnippet(): " . $moduleId . ", " . $paneId . ", " . $priorityId . ", " . $snippetPath . "\n\n");
     }
     // check if the file to include exists:
     if (isset($fileName) && is_file($fileName)) {
         // extract variables from the global scope:
         extract($GLOBALS, EXTR_REFS);
         ob_start();
         include $fileName;
         $snippet = ob_get_clean();
     } else {
         ob_clean();
         return false;
     }
     // If there is a media type { } around the snippet this function extracts it
     $snippet = ModulaiseUtils::extractCss($snippet);
     // add to content
     if (!$this->addContent($paneId, $priorityId, $snippet)) {
         ModulaiseController::printComment("\n\nERROR:\n" . get_class() . "->addFileSnippet(): " . $paneId . ", " . $priorityId . ", " . $snippetPath . "\n\n");
         die;
     }
     return true;
 }