‪TYPO3CMS  9.5
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 }
‪TYPO3\CMS\Core\Resource\FileInterface\getExtension
‪string getExtension()
‪TYPO3\CMS\Core\Resource\FileInterface
Definition: FileInterface.php:21
‪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:23
‪TYPO3\CMS\Core\Resource\DuplicationBehavior\RENAME
‪const RENAME
Definition: DuplicationBehavior.php:31
‪TYPO3\CMS\Core\Resource\FileInterface\getSha1
‪string getSha1()
‪TYPO3\CMS\Core\Resource
Definition: generateMimeTypes.php:37
‪TYPO3\CMS\Core\Resource\ResourceInterface
Definition: ResourceInterface.php:21
‪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()