TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
StorageRepository Class Reference
Inheritance diagram for StorageRepository:
AbstractRepository RepositoryInterface SingletonInterface

Public Member Functions

 findByUid ($uid)
 
- Public Member Functions inherited from AbstractRepository
 __construct ()
 
 add ($object)
 
 remove ($object)
 
 replace ($existingObject, $newObject)
 
 update ($modifiedObject)
 
 getAddedObjects ()
 
 getRemovedObjects ()
 
 findAll ()
 
 countAll ()
 
 removeAll ()
 
 findByUid ($uid)
 
 setDefaultOrderings (array $defaultOrderings)
 
 setDefaultQuerySettings (\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface $defaultQuerySettings)
 
 createQuery ()
 
 findByIdentifier ($identifier)
 
 __call ($method, $arguments)
 
 getEntityClassName ()
 

Protected Member Functions

 initializeLocalCache ()
 
 createDomainObject (array $databaseRow)
 
 testCaseSensitivity ($absolutePath)
 
- Protected Member Functions inherited from AbstractRepository
 createDomainObject (array $databaseRow)
 
 getEnvironmentMode ()
 

Protected Attributes

 $objectType = ResourceStorage::class
 
 $table = 'sys_file_storage'
 
 $typeField = 'driver'
 
 $driverField = 'driver'
 
 $logger
 
- Protected Attributes inherited from AbstractRepository
 $table = ''
 
 $factory
 
 $typeField = ''
 
 $type = ''
 
 $objectType
 

Static Protected Attributes

static $storageRowCache = null
 

Detailed Description

Repository for accessing the file mounts

Definition at line 26 of file StorageRepository.php.

Member Function Documentation

createDomainObject ( array  $databaseRow)
protected

Creates an object managed by this repository.

Parameters
array$databaseRow
Returns
ResourceStorage

Definition at line 254 of file StorageRepository.php.

findByUid (   $uid)
Parameters
int$uid
Returns
NULL|ResourceStorage

Implements RepositoryInterface.

Definition at line 72 of file StorageRepository.php.

References StorageRepository\initializeLocalCache().

initializeLocalCache ( )
protected

Initializes the Storage

Returns
void

Definition at line 86 of file StorageRepository.php.

References $GLOBALS, AbstractRepository\getEnvironmentMode(), and GeneralUtility\makeInstance().

Referenced by StorageRepository\findByUid().

testCaseSensitivity (   $absolutePath)
protected

Test if the local filesystem is case sensitive

Parameters
string$absolutePath
Returns
bool

Definition at line 265 of file StorageRepository.php.

Member Data Documentation

$driverField = 'driver'
protected

Definition at line 51 of file StorageRepository.php.

$logger
protected

Definition at line 56 of file StorageRepository.php.

$objectType = ResourceStorage::class
protected

Definition at line 36 of file StorageRepository.php.

$storageRowCache = null
staticprotected

Definition at line 31 of file StorageRepository.php.

$table = 'sys_file_storage'
protected

Definition at line 41 of file StorageRepository.php.

$typeField = 'driver'
protected

Definition at line 46 of file StorageRepository.php.