TYPO3 CMS  TYPO3_6-2
FileInterface.php
Go to the documentation of this file.
1 <?php
3 
21 interface FileInterface extends ResourceInterface {
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 METHDOS
112  ****************************************/
118  public function delete();
119 
126  public function rename($newName);
127 
128  /*****************
129  * SPECIAL METHODS
130  *****************/
140  public function getPublicUrl($relativeToCurrentScript = FALSE);
141 
147  public function isIndexed();
148 
157  public function getForLocalProcessing($writable = TRUE);
158 
165  public function toArray();
166 
167 }
getPublicUrl($relativeToCurrentScript=FALSE)