/** * Gets the path to the file which the caller of this method wants. * * @param string $strFilename * @param long $timestamp */ public function load($strFilename, $timestamp = NULL) { // Parameter must be given. if (!empty($strFilename)) { // Get the store folder of the file. $storeFolder = self::getStoreFolderPath(FALSE, $timestamp); // Create a file object and return the relative path. $oStoredFile = new IF_File($storeFolder . "/" . $strFilename); if ($oStoredFile->exists()) { return $oStoredFile->getPath(); } else { // Throw excpetion, because the file doesn't exist. throw new Exception("The file doesn't exist: " . $oStoredFile->getAbsolutePath()); } } }