‪TYPO3CMS  ‪main
FileInterface.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
26 {
27  /*******************************
28  * VARIOUS FILE PROPERTY GETTERS
29  *******************************/
35  public function ‪hasProperty(string $key): bool;
36 
42  public function ‪getProperty(string $key): mixed;
43 
52  public function getSize(): int;
53 
59  public function getSha1(): string;
60 
64  public function getNameWithoutExtension(): string;
65 
69  public function getExtension(): string;
70 
76  public function getMimeType(): string;
77 
81  public function getModificationTime(): int;
82 
86  public function getCreationTime(): int;
87 
88  /******************
89  * CONTENTS RELATED
90  ******************/
94  public function getContents(): string;
95 
103  public function setContents(string $contents): self;
104 
105  /****************************************
106  * STORAGE AND MANAGEMENT RELATED METHODS
107  ****************************************/
111  public function delete(): bool;
112 
120  public function rename(string $newName, $conflictMode = ‪DuplicationBehavior::RENAME): ‪FileInterface;
121 
122  /*****************
123  * SPECIAL METHODS
124  *****************/
133  public function getPublicUrl(): ?string;
134 
138  public function isIndexed(): bool;
139 
148  public function getForLocalProcessing(bool $writable = true): string;
149 
156  public function toArray(): array;
157 }
‪TYPO3\CMS\Core\Resource\FileInterface
Definition: FileInterface.php:26
‪TYPO3\CMS\Core\Resource\FileInterface\hasProperty
‪hasProperty(string $key)
‪TYPO3\CMS\Core\Resource\DuplicationBehavior\RENAME
‪const RENAME
Definition: DuplicationBehavior.php:33
‪TYPO3\CMS\Core\Resource\Enum\DuplicationBehavior
‪DuplicationBehavior
Definition: DuplicationBehavior.php:28
‪TYPO3\CMS\Core\Resource
Definition: generateMimeTypes.php:52
‪TYPO3\CMS\Core\Resource\ResourceInterface
Definition: ResourceInterface.php:21
‪TYPO3\CMS\Core\Resource\FileInterface\getProperty
‪getProperty(string $key)