‪TYPO3CMS  10.4
GeneralUtilityFilesystemFixture.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
19 
24 {
31  public static function ‪isAbsPath($path)
32  {
33  return self::isFirstPartOfStr($path, 'vfs://') || parent::isAbsPath($path);
34  }
35 
42  public static function ‪isAllowedAbsPath($path)
43  {
44  return self::isFirstPartOfStr($path, 'vfs://') || parent::isAllowedAbsPath($path);
45  }
46 
53  public static function ‪validPathStr($theFile)
54  {
55  return self::isFirstPartOfStr($theFile, 'vfs://') || parent::validPathStr($theFile);
56  }
57 
65  public static function ‪writeFileToTypo3tempDir($filepath, $content)
66  {
67  static::writeFile($filepath, $content);
68  }
69 }
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFilesystemFixture\writeFileToTypo3tempDir
‪static string writeFileToTypo3tempDir($filepath, $content)
Definition: GeneralUtilityFilesystemFixture.php:65
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFilesystemFixture
Definition: GeneralUtilityFilesystemFixture.php:24
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFilesystemFixture\validPathStr
‪static bool validPathStr($theFile)
Definition: GeneralUtilityFilesystemFixture.php:53
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFilesystemFixture\isAbsPath
‪static bool isAbsPath($path)
Definition: GeneralUtilityFilesystemFixture.php:31
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFilesystemFixture\isAllowedAbsPath
‪static bool isAllowedAbsPath($path)
Definition: GeneralUtilityFilesystemFixture.php:42
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures
Definition: ArrayUtilityFilterRecursiveCallbackFixture.php:18
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46