ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
metarefresh.php File Reference

Go to the source code of this file.

Functions

 printHelp ()
 This function prints the help output. More...
 

Variables

 $baseDir = dirname(dirname(dirname(dirname(__FILE__))))
 
if(!SimpleSAML\Module::isModuleEnabled('metarefresh')) $configdir = SimpleSAML\Utils\Config::getConfigDir()
 
 $outputDir = $baseDir . '/metadata-generated'
 
 $toStdOut = FALSE
 
 $certificates = NULL
 
 $validateFingerprint = NULL
 
 $files = array()
 
 $progName = array_shift($argv)
 
foreach($argv as $a) if(count($files)===0) $metaloader = new sspmod_metarefresh_MetaLoader()
 
foreach($files as $f) if($toStdOut) else
 

Function Documentation

◆ printHelp()

printHelp ( )

This function prints the help output.

Definition at line 149 of file metarefresh.php.

References $progName.

149  {
150  global $progName;
151 
152  /* '======================================================================' */
153  echo('Usage: ' . $progName . ' [options] [files]' . "\n");
154  echo("\n");
155  echo('This program parses a SAML metadata files and output pieces that can' . "\n");
156  echo('be added to the metadata files in metadata/.' . "\n");
157  echo("\n");
158  echo('Options:' . "\n");
159  echo(' --certificate=<FILE> The certificate which should be used' . "\n");
160  echo(' to check the signature of the metadata.' . "\n");
161  echo(' The file are stored in the cert dir.' . "\n");
162  echo(' It is possibility to add multiple' . "\n");
163  echo(' --certificate options to handle' . "\n");
164  echo(' key rollover.' . "\n");
165  echo(' --validate-fingerprint=<FINGERPRINT>' . "\n");
166  echo(' Check the signature of the metadata,' . "\n");
167  echo(' and check the fingerprint of the' . "\n");
168  echo(' certificate against <FINGERPRINT>.' . "\n");
169  echo(' -h, --help Print this help.' . "\n");
170  echo(' -o=<DIR>, --out-dir=<DIR> Write the output to this directory. The' . "\n");
171  echo(' default directory is metadata-generated/.' . "\n");
172  echo(' Path will be relative to the SimpleSAMLphp' . "\n");
173  echo(' base directory.' . "\n");
174  echo(' -s, --stdout Write the output to stdout instead of' . "\n");
175  echo(' seperate files in the output directory.' . "\n");
176  echo("\n");
177 }
$progName
Definition: metarefresh.php:53

Variable Documentation

◆ $baseDir

$baseDir = dirname(dirname(dirname(dirname(__FILE__))))

Definition at line 11 of file metarefresh.php.

◆ $certificates

◆ $configdir

if (!SimpleSAML\Module::isModuleEnabled( 'metarefresh')) $configdir = SimpleSAML\Utils\Config::getConfigDir()

Definition at line 24 of file metarefresh.php.

◆ $files

$files = array()

Definition at line 49 of file metarefresh.php.

Referenced by ilSCORMResourceGUI\__construct(), ilForum\__deletePostFiles(), ilUploadFiles\_checkUploadFile(), ilExport\_getLastExportFileDate(), ilExport\_getLastExportFileInformation(), ilUploadFiles\_getUploadFiles(), phpseclib\Net\SFTP\_nlist_helper(), ilCourseFile\_readFilesByCourse(), ilSessionFile\_readFilesByEvent(), ilExerciseManagementCollectFilesJob\addCriteriaToExcel(), ilPCFileListGUI\addFileItem(), ilExAssignmentGUI\addFiles(), ZipStreamTest\ZipStreamTest\addLargeFileFileFromPath(), ilExAssignmentGUI\addSubmissionFeedback(), ilExcCriteriaFile\addToPeerReviewForm(), ilObjFileBasedLMGUI\afterSave(), ilPCFileList\beforePageDelete(), HTMLPurifier_ConfigSchema_InterchangeBuilder\buildDir(), ilPortfolioHTMLExport\buildExportFile(), ilDclPropertyFormGUI\cleanupTempFiles(), ilDownloadFilesBackgroundTask\collectFiles(), ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilAssFileUploadUploadsExporter\collectUploadedFiles(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilExSubmissionFileGUI\confirmDeleteDeliveredObject(), ilAdvancedMDSettingsGUI\confirmDeleteFiles(), ilExSubmissionTeamGUI\confirmRemoveTeamMemberObject(), assLongMenu\createArrayFromFile(), ilUpdateUtilsMailMigration\delDir(), ilUpdateUtils\delDir(), ilUtil\delDir(), ilPageObject\delete(), ilExSubmission\deleteAllFiles(), ilIndividualAssessmentFileStorage\deleteCurrentFile(), ilPCFileList\deleteFileItems(), ilAdvancedMDSettingsGUI\deleteFiles(), assFileUpload\deletePreviewFileUploads(), assFileUpload\deleteUploadedFiles(), ilFileDataMail\deliverAttachmentsAsZip(), ilSetupGUI\displayDeleteConfirmation(), ilExSubmissionGUI\downloadFeedbackFileObject(), ilAdvancedMDSettingsGUI\downloadFile(), ilPageObjectGUI\downloadFile(), ilExSubmissionGUI\downloadFileObject(), ilExSubmission\downloadFiles(), ilExSubmission\downloadMultipleFiles(), draw_shell(), ilExSubmissionTextGUI\editAssignmentTextObject(), ilMailFormGUI\editAttachments(), ilObjCourseGUI\editInfoObject(), ilScormExportUtil\exportContentCSS(), ilObjContentObject\exportHTML(), ilFileSystemGUI\extCommand(), ilExAssignment\fixInstructionFileOrdering(), ilFileDataMail\getAttachmentPathAndFilenameByMd5Hash(), Symfony\Component\Yaml\Tests\ParserTest\getDataFormSpecifications(), ilUpdateUtilsMailMigration\getDir(), ilUpdateUtils\getDir(), ilUtil\getDir(), ilExSubmission\getDownloadedFilesInfoForTableGUIS(), ilFileDataForumDrafts\getDraftsPath(), ilObjTest\getExportDirectory(), ilDclExportTableGUI\getExportFiles(), ilExportTableGUI\getExportFiles(), ilScormAiccDataSet\getExtendedXmlRepresentation(), ilFSStorageExercise5069\getFeedbackFiles(), ilFSStorageExercise\getFeedbackFiles(), ilFileDataForumDrafts\getFileDataByMD5Filename(), ilFileDataForum\getFileDataByMD5Filename(), ilPCFileList\getFileList(), ilIndividualAssessmentFileStorage\getFilePath(), ilAppointmentSessionFileHandler\getFiles(), ilAppointmentCourseFileHandler\getFiles(), ilAppointmentExerciseFileHandler\getFiles(), Gettext\Extractors\Extractor\getFiles(), ilUploadDirFilesTableGUI\getFiles(), ilFSWebStorageExercise\getFiles(), ilAdvancedMDRecordExportFiles\getFiles(), ilFSStorageExc5242\getFiles(), ilFSStorageExercise5069\getFiles(), ilFSStorageExercise\getFiles(), ilObjMediaObject\getFilesOfDirectory(), ilFileDataForum\getForumPath(), ilExcCriteriaFile\getHTML(), ilPageObject\getLastUpdateOfIncludedElements(), ilFSStorageGroup\getMemberExportFiles(), ilFileDataCourse\getMemberExportFiles(), ilFSStorageCourse\getMemberExportFiles(), ilExAssignment\getMultiFeedbackFiles(), ilMobMultiSrtUpload\getMultiSrtFiles(), ilObjMediaObject\getMultiSrtFiles(), ilPCIIMOverlaysTableGUI\getOverlays(), assFileUploadGUI\getPreview(), ZipStreamTest\ZipStreamTest\getRecursiveFileList(), PhpOffice\PhpSpreadsheet\Helper\Sample\getSamples(), ilExSubmission\getSelectedObject(), assFileUploadGUI\getSolutionOutput(), assFileUploadGUI\getTestOutput(), ilFileDataMail\getUserFilesData(), ilCOPageExporter\getXmlExportHeadDependencies(), ilExerciseXMLWriter\handleAssignmentFiles(), assKprimChoice\handleFileUploads(), ilObjCourseGUI\infoScreen(), ilExAssignmentEditorGUI\initAssignmentForm(), ilForumThreadFormGUI\initForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilIndividualAssessmentFileStorage\isEmpty(), ilFileSystemGUI\listFiles(), ilObjSurvey\locateImportFiles(), ilObjSCORMLearningModuleGUI\newModuleVersion(), GuzzleHttp\Psr7\ServerRequest\normalizeNestedFileSpec(), phpseclib\Net\SFTP\rawlist(), ilIndividualAssessmentFileStorage\readDir(), ilLoggerCronCleanErrorFiles\run(), ilMailAttachmentGUI\saveAttachments(), ilMailFormGUI\saveDraft(), ilMailFormGUI\saveMailBeforeSearch(), ilMailFormGUI\searchUsers(), ilMailFormGUI\sendMessage(), ilFileXMLParser\setFileContents(), ilExSubmissionTextGUI\showAssignmentTextObject(), ilMailAttachmentGUI\showAttachments(), ilAdvancedMDSettingsGUI\showFiles(), ilFileDataForumDrafts\storeUploadedFile(), ilFileDataForum\storeUploadedFile(), ZipStreamTest\ZipStreamTest\testAddFile(), ZipStreamTest\ZipStreamTest\testAddFileFromPath(), ZipStreamTest\ZipStreamTest\testAddFileFromPsr7Stream(), ZipStreamTest\ZipStreamTest\testAddFileFromPsr7StreamWithFileSizeSet(), ZipStreamTest\ZipStreamTest\testAddFileFromStream(), ZipStreamTest\ZipStreamTest\testAddFileUtf8NameComment(), ZipStreamTest\ZipStreamTest\testCreateArchiveWithFlushOptionSet(), ILIAS\FileUpload\FileUploadImplTest\testHasUploadsWithMultipleUploadedFile(), Symfony\Component\Yaml\Tests\DumperTest\testSpecifications(), ilFileDataForumDrafts\unlinkFilesByMD5Filenames(), ilFileDataForum\unlinkFilesByMD5Filenames(), ilExSubmission\updateTextSubmission(), ilObjFileGUI\uploadFiles(), ilObjHelpSettings\uploadHelpModule(), ilSCORMResourceGUI\view(), and assKprimChoiceGUI\writeAnswerSpecificPostData().

◆ $metaloader

foreach ( $argv as $a) if (count( $files)===0) $metaloader = new sspmod_metarefresh_MetaLoader()

Definition at line 131 of file metarefresh.php.

Referenced by metarefresh_hook_cron().

◆ $outputDir

$outputDir = $baseDir . '/metadata-generated'

Definition at line 28 of file metarefresh.php.

Referenced by clean(), and metarefresh_hook_cron().

◆ $progName

$progName = array_shift($argv)

Definition at line 53 of file metarefresh.php.

Referenced by printHelp().

◆ $toStdOut

$toStdOut = FALSE

Definition at line 34 of file metarefresh.php.

◆ $validateFingerprint

$validateFingerprint = NULL

Definition at line 45 of file metarefresh.php.

◆ else

foreach ( $files as $f) if ( $toStdOut) else
Initial value:
{
$metaloader->writeMetadataFiles($outputDir)
foreach($argv as $a) if(count($files)===0) $metaloader
$outputDir
Definition: metarefresh.php:28

Definition at line 142 of file metarefresh.php.