TYPO3 CMS  TYPO3_8-7
TYPO3\CMS\Filelist\FileFacade Class Reference

Public Member Functions

 __construct (FileInterface $resource)
 
 getIcon ()
 
 getResource ()
 
 getIsEditable ()
 
 getIsMetadataEditable ()
 
 getMetadataUid ()
 
 getName ()
 
 getPath ()
 
 getPublicUrl ()
 
 getExtension ()
 
 getIdentifier ()
 
 getLastModified ()
 
 getSize ()
 
 getIsReadable ()
 
 getIsWritable ()
 
 getIsReplaceable ()
 
 getIsRenamable ()
 
 getIsDeletable ()
 
 getIsImage ()
 
 getReferenceCount ()
 
 __call ($method, $arguments)
 

Protected Member Functions

 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

 $resource
 
 $iconFactory
 

Static Protected Attributes

static $referenceCounts = []
 

Detailed Description

Class FileFacade

This class is meant to be a wrapper for Resource objects, which do not provide necessary methods needed in the views of the filelist extension. It is a first approach to get rid of the FileList class that mixes up PHP, HTML and JavaScript.

Definition at line 32 of file FileFacade.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Filelist\FileFacade::__construct ( FileInterface  $resource)
Parameters
\TYPO3\CMS\Core\Resource\FileInterface$resource

Definition at line 55 of file FileFacade.php.

References TYPO3\CMS\Filelist\FileFacade\$resource, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Function Documentation

◆ __call()

TYPO3\CMS\Filelist\FileFacade::__call (   $method,
  $arguments 
)
Parameters
string$method
array$arguments
Returns
mixed

Definition at line 294 of file FileFacade.php.

◆ getBackendUser()

TYPO3\CMS\Filelist\FileFacade::getBackendUser ( )
protected
Returns

Definition at line 306 of file FileFacade.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Filelist\FileFacade\getIsMetadataEditable().

◆ getExtension()

TYPO3\CMS\Filelist\FileFacade::getExtension ( )
Returns
string

Definition at line 145 of file FileFacade.php.

Referenced by TYPO3\CMS\Filelist\FileFacade\getIsImage().

◆ getIcon()

TYPO3\CMS\Filelist\FileFacade::getIcon ( )
Returns
string

Definition at line 64 of file FileFacade.php.

References TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

◆ getIdentifier()

TYPO3\CMS\Filelist\FileFacade::getIdentifier ( )
Returns
string

Definition at line 153 of file FileFacade.php.

◆ getIsDeletable()

TYPO3\CMS\Filelist\FileFacade::getIsDeletable ( )
Returns
bool

Definition at line 229 of file FileFacade.php.

◆ getIsEditable()

TYPO3\CMS\Filelist\FileFacade::getIsEditable ( )

◆ getIsImage()

TYPO3\CMS\Filelist\FileFacade::getIsImage ( )

◆ getIsMetadataEditable()

TYPO3\CMS\Filelist\FileFacade::getIsMetadataEditable ( )

◆ getIsReadable()

TYPO3\CMS\Filelist\FileFacade::getIsReadable ( )
Returns
bool

Definition at line 177 of file FileFacade.php.

◆ getIsRenamable()

TYPO3\CMS\Filelist\FileFacade::getIsRenamable ( )
Returns
bool

Definition at line 216 of file FileFacade.php.

◆ getIsReplaceable()

TYPO3\CMS\Filelist\FileFacade::getIsReplaceable ( )
Returns
bool

Definition at line 203 of file FileFacade.php.

◆ getIsWritable()

TYPO3\CMS\Filelist\FileFacade::getIsWritable ( )

◆ getLanguageService()

TYPO3\CMS\Filelist\FileFacade::getLanguageService ( )
protected
Returns

Definition at line 314 of file FileFacade.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Filelist\FileFacade\getSize().

◆ getLastModified()

TYPO3\CMS\Filelist\FileFacade::getLastModified ( )
Returns
string

Definition at line 161 of file FileFacade.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\date().

◆ getMetadataUid()

TYPO3\CMS\Filelist\FileFacade::getMetadataUid ( )
Returns
int

Definition at line 98 of file FileFacade.php.

◆ getName()

TYPO3\CMS\Filelist\FileFacade::getName ( )
Returns
string

Definition at line 116 of file FileFacade.php.

◆ getPath()

TYPO3\CMS\Filelist\FileFacade::getPath ( )
Returns
string

Definition at line 124 of file FileFacade.php.

◆ getPublicUrl()

TYPO3\CMS\Filelist\FileFacade::getPublicUrl ( )
Returns
string|null

Definition at line 137 of file FileFacade.php.

◆ getReferenceCount()

TYPO3\CMS\Filelist\FileFacade::getReferenceCount ( )

Fetch, cache and return the number of references of a file

Returns
int

Definition at line 252 of file FileFacade.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ getResource()

TYPO3\CMS\Filelist\FileFacade::getResource ( )
Returns

Definition at line 73 of file FileFacade.php.

References TYPO3\CMS\Filelist\FileFacade\$resource.

◆ getSize()

TYPO3\CMS\Filelist\FileFacade::getSize ( )

Member Data Documentation

◆ $iconFactory

TYPO3\CMS\Filelist\FileFacade::$iconFactory
protected

Definition at line 49 of file FileFacade.php.

◆ $referenceCounts

TYPO3\CMS\Filelist\FileFacade::$referenceCounts = []
staticprotected

Definition at line 39 of file FileFacade.php.

◆ $resource

TYPO3\CMS\Filelist\FileFacade::$resource
protected