‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\FolderInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\FolderInterface:
TYPO3\CMS\Core\Resource\ResourceInterface TYPO3\CMS\Core\Resource\Folder TYPO3\CMS\Core\Resource\InaccessibleFolder

Public Member Functions

 getSubfolders ()
 
 getSubfolder (string $name)
 
 hasFolder (string $name)
 
 hasFile (string $name)
 
 getFile (string $fileName)
 
$this rename (string $newName)
 
 delete ()
 
 getModificationTime ()
 
 getCreationTime ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Resource\ResourceInterface
 getIdentifier ()
 
 getName ()
 
 getStorage ()
 
non empty string getHashedIdentifier ()
 
 getParentFolder ()
 

Public Attributes

const ROLE_DEFAULT = 'default'
 
const ROLE_RECYCLER = 'recycler'
 
const ROLE_PROCESSING = 'processing'
 
const ROLE_TEMPORARY = 'temporary'
 
const ROLE_USERUPLOAD = 'userupload'
 
const ROLE_MOUNT = 'mount'
 
const ROLE_READONLY_MOUNT = 'readonly-mount'
 
const ROLE_USER_MOUNT = 'user-mount'
 

Detailed Description

Interface for folders

Definition at line 23 of file FolderInterface.php.

Member Function Documentation

◆ delete()

TYPO3\CMS\Core\Resource\FolderInterface::delete ( )

Deletes this folder from its storage. This also means that this object becomes useless.

◆ getCreationTime()

TYPO3\CMS\Core\Resource\FolderInterface::getCreationTime ( )

Returns the creation time of the folder as Unix timestamp

Implemented in TYPO3\CMS\Core\Resource\Folder, and TYPO3\CMS\Core\Resource\InaccessibleFolder.

◆ getFile()

TYPO3\CMS\Core\Resource\FolderInterface::getFile ( string  $fileName)

Fetches a file from a folder, must be a direct descendant of a folder.

Implemented in TYPO3\CMS\Core\Resource\Folder.

◆ getModificationTime()

TYPO3\CMS\Core\Resource\FolderInterface::getModificationTime ( )

Returns the modification time of the folder as Unix timestamp

Implemented in TYPO3\CMS\Core\Resource\Folder, and TYPO3\CMS\Core\Resource\InaccessibleFolder.

◆ getSubfolder()

TYPO3\CMS\Core\Resource\FolderInterface::getSubfolder ( string  $name)

Returns the object for a subfolder of the current folder, if it exists.

Implemented in TYPO3\CMS\Core\Resource\Folder.

Referenced by TYPO3\CMS\Core\Resource\ResourceStorage\copyFolder().

◆ getSubfolders()

TYPO3\CMS\Core\Resource\FolderInterface::getSubfolders ( )

@phpstan-return array<array-key, Folder>

◆ hasFile()

TYPO3\CMS\Core\Resource\FolderInterface::hasFile ( string  $name)

Checks if a file exists in this folder

Implemented in TYPO3\CMS\Core\Resource\Folder.

Referenced by TYPO3\CMS\Core\Resource\ResourceStorage\copyFolder().

◆ hasFolder()

TYPO3\CMS\Core\Resource\FolderInterface::hasFolder ( string  $name)

Checks if a folder exists in this folder.

Implemented in TYPO3\CMS\Core\Resource\Folder.

Referenced by TYPO3\CMS\Core\Resource\ResourceStorage\copyFolder().

◆ rename()

$this TYPO3\CMS\Core\Resource\FolderInterface::rename ( string  $newName)

Renames this folder.

Returns
‪$this

Implemented in TYPO3\CMS\Core\Resource\Folder.

Member Data Documentation

◆ ROLE_DEFAULT

const TYPO3\CMS\Core\Resource\FolderInterface::ROLE_DEFAULT = 'default'

◆ ROLE_MOUNT

const TYPO3\CMS\Core\Resource\FolderInterface::ROLE_MOUNT = 'mount'

◆ ROLE_PROCESSING

const TYPO3\CMS\Core\Resource\FolderInterface::ROLE_PROCESSING = 'processing'

◆ ROLE_READONLY_MOUNT

const TYPO3\CMS\Core\Resource\FolderInterface::ROLE_READONLY_MOUNT = 'readonly-mount'

◆ ROLE_RECYCLER

◆ ROLE_TEMPORARY

const TYPO3\CMS\Core\Resource\FolderInterface::ROLE_TEMPORARY = 'temporary'

◆ ROLE_USER_MOUNT

const TYPO3\CMS\Core\Resource\FolderInterface::ROLE_USER_MOUNT = 'user-mount'

◆ ROLE_USERUPLOAD

const TYPO3\CMS\Core\Resource\FolderInterface::ROLE_USERUPLOAD = 'userupload'

Definition at line 32 of file FolderInterface.php.