TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Filelist\FileFacade Class Reference

Public Member Functions

 __construct (\TYPO3\CMS\Core\Resource\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

 getDatabaseConnection ()
 
 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

 $resource
 

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 30 of file FileFacade.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 48 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 279 of file FileFacade.php.

◆ getBackendUser()

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

Definition at line 299 of file FileFacade.php.

References $GLOBALS.

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

◆ getDatabaseConnection()

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

Definition at line 291 of file FileFacade.php.

References $GLOBALS.

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

◆ getExtension()

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

Definition at line 138 of file FileFacade.php.

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

◆ getIcon()

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

Definition at line 57 of file FileFacade.php.

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

◆ getIdentifier()

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

Definition at line 146 of file FileFacade.php.

◆ getIsDeletable()

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

Definition at line 222 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 170 of file FileFacade.php.

◆ getIsRenamable()

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

Definition at line 209 of file FileFacade.php.

◆ getIsReplaceable()

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

Definition at line 196 of file FileFacade.php.

◆ getIsWritable()

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

◆ getLanguageService()

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

Definition at line 307 of file FileFacade.php.

References $GLOBALS.

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

◆ getLastModified()

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

Definition at line 154 of file FileFacade.php.

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

◆ getMetadataUid()

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

Definition at line 91 of file FileFacade.php.

References $uid.

◆ getName()

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

Definition at line 109 of file FileFacade.php.

◆ getPath()

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

Definition at line 117 of file FileFacade.php.

◆ getPublicUrl()

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

Definition at line 130 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 245 of file FileFacade.php.

References $uid, and TYPO3\CMS\Filelist\FileFacade\getDatabaseConnection().

◆ getResource()

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

Definition at line 66 of file FileFacade.php.

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

◆ getSize()

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

Member Data Documentation

◆ $referenceCounts

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

Definition at line 37 of file FileFacade.php.

◆ $resource

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