‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Resource\Fixtures\TestingFile Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Resource\Fixtures\TestingFile:
TYPO3\CMS\Core\Resource\AbstractFile TYPO3\CMS\Core\Resource\FileInterface TYPO3\CMS\Core\Resource\ResourceInterface

Public Member Functions

 updateProperties (array $properties)
 
 isIndexed ()
 
 toArray ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Resource\AbstractFile
 hasProperty (string $key)
 
 getProperty (string $key)
 
 getIdentifier ()
 
non empty string getHashedIdentifier ()
 
 getName ()
 
 getNameWithoutExtension ()
 
int< 0, getSize():int { if( $this->deleted) { throw new \RuntimeException( 'File has been deleted.', 1329821480);} if(empty( $this->properties[ 'size'])) { $fileInfo=$this-> getStorage () -> getFileInfoByIdentifier($this->getIdentifier(), ['size'])
 
return MathUtility::canBeInterpretedAsInteger($size) ?(int) $size int getUid ()
 
non empty string getSha1 ()
 
 getCreationTime ()
 
 getModificationTime ()
 
 getExtension ()
 
non empty string getMimeType ()
 
int getType ()
 
 isType (FileType $fileType)
 
bool isImage ()
 
bool isMediaFile ()
 
bool isTextFile ()
 
 getContents ()
 
$this setContents (string $contents)
 
 getStorage ()
 
bool exists ()
 
$this setStorage (ResourceStorage $storage)
 
$this setIdentifier ($identifier)
 
string getCombinedIdentifier ()
 
 delete ()
 
 setDeleted ()
 
bool isDeleted ()
 
 rename (string $newName, $conflictMode=DuplicationBehavior::RENAME)
 
File copyTo (Folder $targetFolder, $targetFileName=null, $conflictMode=DuplicationBehavior::RENAME)
 
File moveTo (Folder $targetFolder, $targetFileName=null, $conflictMode=DuplicationBehavior::RENAME)
 
string null getPublicUrl ()
 
non empty string getForLocalProcessing (bool $writable=true)
 
 getParentFolder ()
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Resource\AbstractFile
const FILETYPE_UNKNOWN = 0
 
const FILETYPE_TEXT = 1
 
const FILETYPE_IMAGE = 2
 
const FILETYPE_AUDIO = 3
 
const FILETYPE_VIDEO = 4
 
const FILETYPE_APPLICATION = 5
 
array< non-empty-string, function getProperties() { return $this-> properties
 
 $size = array_pop($fileInfo)
 
 else
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Resource\AbstractFile
array $properties = []
 
ResourceStorage null $storage
 
string $identifier
 
string $name
 
bool $deleted = false
 

Detailed Description

Testing subclass of AbstractFile.

Definition at line 25 of file TestingFile.php.

Member Function Documentation

◆ isIndexed()

TYPO3\CMS\Core\Tests\Unit\Resource\Fixtures\TestingFile::isIndexed ( )

Definition at line 32 of file TestingFile.php.

◆ toArray()

TYPO3\CMS\Core\Tests\Unit\Resource\Fixtures\TestingFile::toArray ( )

Definition at line 37 of file TestingFile.php.

◆ updateProperties()

TYPO3\CMS\Core\Tests\Unit\Resource\Fixtures\TestingFile::updateProperties ( array  $properties)

Updates properties of this object. This method is used to reconstitute settings from the database into this object after being instantiated.

Reimplemented from TYPO3\CMS\Core\Resource\AbstractFile.

Definition at line 27 of file TestingFile.php.