‪TYPO3CMS  10.4
FileInterface.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
22 {
23  /*******************************
24  * VARIOUS FILE PROPERTY GETTERS
25  *******************************/
32  public function ‪hasProperty($key);
33 
40  public function ‪getProperty($key);
41 
47  public function ‪getSize();
48 
54  public function ‪getSha1();
55 
61  public function ‪getNameWithoutExtension();
62 
68  public function ‪getExtension();
69 
75  public function ‪getMimeType();
76 
82  public function ‪getModificationTime();
83 
89  public function ‪getCreationTime();
90 
91  /******************
92  * CONTENTS RELATED
93  ******************/
99  public function ‪getContents();
100 
109  public function ‪setContents($contents);
110 
111  /****************************************
112  * STORAGE AND MANAGEMENT RELATED METHODS
113  ****************************************/
119  public function delete();
120 
128  public function ‪rename($newName, $conflictMode = ‪DuplicationBehavior::RENAME);
129 
130  /*****************
131  * SPECIAL METHODS
132  *****************/
142  public function ‪getPublicUrl($relativeToCurrentScript = false);
143 
149  public function ‪isIndexed();
150 
159  public function ‪getForLocalProcessing($writable = true);
160 
167  public function ‪toArray();
168 }
‪TYPO3\CMS\Core\Resource\FileInterface\getExtension
‪string getExtension()
‪TYPO3\CMS\Core\Resource\FileInterface
Definition: FileInterface.php:22
‪TYPO3\CMS\Core\Resource\FileInterface\hasProperty
‪bool hasProperty($key)
‪TYPO3\CMS\Core\Resource\FileInterface\getCreationTime
‪int getCreationTime()
‪TYPO3\CMS\Core\Resource\FileInterface\getSize
‪int getSize()
‪TYPO3\CMS\Core\Resource\FileInterface\getModificationTime
‪int getModificationTime()
‪TYPO3\CMS\Core\Resource\FileInterface\setContents
‪File setContents($contents)
‪TYPO3\CMS\Core\Resource\FileInterface\getForLocalProcessing
‪string getForLocalProcessing($writable=true)
‪TYPO3\CMS\Core\Resource\FileInterface\rename
‪File rename($newName, $conflictMode=DuplicationBehavior::RENAME)
‪TYPO3\CMS\Core\Resource\FileInterface\getProperty
‪string getProperty($key)
‪TYPO3\CMS\Core\Resource\FileInterface\getNameWithoutExtension
‪string getNameWithoutExtension()
‪TYPO3\CMS\Core\Resource\File
Definition: File.php:24
‪TYPO3\CMS\Core\Resource\DuplicationBehavior\RENAME
‪const RENAME
Definition: DuplicationBehavior.php:32
‪TYPO3\CMS\Core\Resource\FileInterface\getSha1
‪string getSha1()
‪TYPO3\CMS\Core\Resource
Definition: generateMimeTypes.php:52
‪TYPO3\CMS\Core\Resource\ResourceInterface
Definition: ResourceInterface.php:22
‪TYPO3\CMS\Core\Resource\FileInterface\getPublicUrl
‪string null getPublicUrl($relativeToCurrentScript=false)
‪TYPO3\CMS\Core\Resource\FileInterface\getMimeType
‪string getMimeType()
‪TYPO3\CMS\Core\Resource\FileInterface\isIndexed
‪bool isIndexed()
‪TYPO3\CMS\Core\Resource\FileInterface\toArray
‪array toArray()
‪TYPO3\CMS\Core\Resource\FileInterface\getContents
‪string getContents()