TYPO3 CMS  TYPO3_8-7
FileInterface.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
22  /*******************************
23  * VARIOUS FILE PROPERTY GETTERS
24  *******************************/
31  public function hasProperty($key);
32 
39  public function getProperty($key);
40 
46  public function getSize();
47 
53  public function getSha1();
54 
60  public function getNameWithoutExtension();
61 
67  public function getExtension();
68 
74  public function getMimeType();
75 
81  public function getModificationTime();
82 
88  public function getCreationTime();
89 
90  /******************
91  * CONTENTS RELATED
92  ******************/
98  public function getContents();
99 
108  public function setContents($contents);
109 
110  /****************************************
111  * STORAGE AND MANAGEMENT RELATED METHODS
112  ****************************************/
118  public function delete();
119 
127  public function rename($newName, $conflictMode = DuplicationBehavior::RENAME);
128 
129  /*****************
130  * SPECIAL METHODS
131  *****************/
141  public function getPublicUrl($relativeToCurrentScript = false);
142 
148  public function isIndexed();
149 
158  public function getForLocalProcessing($writable = true);
159 
166  public function toArray();
167 }
rename($newName, $conflictMode=DuplicationBehavior::RENAME)
getPublicUrl($relativeToCurrentScript=false)