TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
FileFacade Class Reference

Public Member Functions

 __construct (\TYPO3\CMS\Core\Resource\FileInterface $resource)
 
 getIcon ()
 
 getResource ()
 
 getIsEditable ()
 
 getIsMetadataEditable ()
 
 getMetadataUid ()
 
 getName ()
 
 getPath ()
 
 getPublicUrl ()
 
 getExtension ()
 
 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\Core\Resource\FileInterface  $resource)
Parameters
\TYPO3\CMS\Core\Resource\FileInterface$resource

Definition at line 48 of file FileFacade.php.

References FileFacade\$resource, and GeneralUtility\makeInstance().

Member Function Documentation

__call (   $method,
  $arguments 
)
Parameters
string$method
array$arguments
Returns
mixed

Definition at line 271 of file FileFacade.php.

getBackendUser ( )
protected
Returns

Definition at line 291 of file FileFacade.php.

References $GLOBALS.

Referenced by FileFacade\getIsMetadataEditable().

getDatabaseConnection ( )
protected
Returns

Definition at line 283 of file FileFacade.php.

References $GLOBALS.

Referenced by FileFacade\getReferenceCount().

getExtension ( )
Returns
string

Definition at line 138 of file FileFacade.php.

Referenced by FileFacade\getIsImage().

getIcon ( )
Returns
string

Definition at line 57 of file FileFacade.php.

References Icon\SIZE_SMALL.

getIsDeletable ( )
Returns
bool

Definition at line 214 of file FileFacade.php.

getIsEditable ( )
Returns
bool

Definition at line 74 of file FileFacade.php.

References $GLOBALS, FileFacade\getIsWritable(), and GeneralUtility\inList().

getIsImage ( )
Returns
bool

Definition at line 227 of file FileFacade.php.

References $GLOBALS, FileFacade\getExtension(), and GeneralUtility\inList().

getIsMetadataEditable ( )
Returns
bool

Definition at line 83 of file FileFacade.php.

References FileFacade\getBackendUser(), and FileFacade\getIsWritable().

getIsReadable ( )
Returns
bool

Definition at line 162 of file FileFacade.php.

getIsRenamable ( )
Returns
bool

Definition at line 201 of file FileFacade.php.

getIsReplaceable ( )
Returns
bool

Definition at line 188 of file FileFacade.php.

getIsWritable ( )
Returns
bool

Definition at line 175 of file FileFacade.php.

Referenced by FileFacade\getIsEditable(), and FileFacade\getIsMetadataEditable().

getLanguageService ( )
protected
Returns

Definition at line 299 of file FileFacade.php.

References $GLOBALS.

Referenced by FileFacade\getSize().

getLastModified ( )
Returns
string

Definition at line 146 of file FileFacade.php.

References BackendUtility\date().

getMetadataUid ( )
Returns
int

Definition at line 91 of file FileFacade.php.

getName ( )
Returns
string

Definition at line 109 of file FileFacade.php.

getPath ( )
Returns
string

Definition at line 117 of file FileFacade.php.

getPublicUrl ( )
Returns
string

Definition at line 130 of file FileFacade.php.

getReferenceCount ( )

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

Returns
int

Definition at line 237 of file FileFacade.php.

References FileFacade\getDatabaseConnection().

getResource ( )
Returns

Definition at line 66 of file FileFacade.php.

References FileFacade\$resource.

getSize ( )
Returns
string

Definition at line 154 of file FileFacade.php.

References GeneralUtility\formatSize(), and FileFacade\getLanguageService().

Member Data Documentation

$referenceCounts = []
staticprotected

Definition at line 37 of file FileFacade.php.

$resource
protected

Definition at line 42 of file FileFacade.php.

Referenced by FileFacade\__construct(), and FileFacade\getResource().