TYPO3
7.6
|
Public Member Functions | |
hasProperty ($key) | |
getProperty ($key) | |
getReferenceProperty ($key) | |
getProperties () | |
getReferenceProperties () | |
getName () | |
getTitle () | |
getAlternative () | |
getDescription () | |
getLink () | |
getUid () | |
getSize () | |
getSha1 () | |
getExtension () | |
getNameWithoutExtension () | |
getMimeType () | |
getModificationTime () | |
getCreationTime () | |
getType () | |
isMissing () | |
getContents () | |
setContents ($contents) | |
getStorage () | |
getIdentifier () | |
getCombinedIdentifier () | |
delete () | |
rename ($newName) | |
getPublicUrl ($relativeToCurrentScript=false) | |
isIndexed () | |
getForLocalProcessing ($writable=true) | |
toArray () | |
getOriginalFile () | |
getHashedIdentifier () | |
getParentFolder () | |
Protected Member Functions | |
restoreNonNullValuesCallback (&$value, $key) | |
Protected Attributes | |
$propertiesOfFileReference | |
$uidOfFileReference | |
$name | |
$originalFile | |
$mergedProperties = array() | |
Representation of a specific usage of a file with possibilities to override certain properties of the original file just for this usage of the file.
It acts as a decorator over the original file in the way that most method calls are directly passed along to the original file object.
All file related methods are directly passed along; only meta data functionality is adopted in this decorator class to priorities possible overrides for the metadata for this specific usage of the file.
Definition at line 28 of file core/Classes/Resource/FileReference.php.
delete | ( | ) |
Deletes only this particular FileReference from the persistence layer (database table sys_file_reference) but leaves the original file untouched.
\BadMethodCallException |
Implements FileInterface.
Definition at line 413 of file core/Classes/Resource/FileReference.php.
getAlternative | ( | ) |
Returns the alternative text to this image
Definition at line 220 of file core/Classes/Resource/FileReference.php.
References FileReference\getProperty().
getCombinedIdentifier | ( | ) |
Returns a combined identifier of the underlying original file
Definition at line 401 of file core/Classes/Resource/FileReference.php.
getContents | ( | ) |
Get the contents of this file
Implements FileInterface.
Definition at line 357 of file core/Classes/Resource/FileReference.php.
getCreationTime | ( | ) |
Returns the creation time of the file as Unix timestamp
Implements FileInterface.
Definition at line 324 of file core/Classes/Resource/FileReference.php.
getDescription | ( | ) |
Returns the description text to this file
Definition at line 232 of file core/Classes/Resource/FileReference.php.
References FileReference\getProperty().
getExtension | ( | ) |
Get the file extension of this file
Implements FileInterface.
Definition at line 284 of file core/Classes/Resource/FileReference.php.
getForLocalProcessing | ( | $writable = true | ) |
Returns a path to a local version of this file to process it locally (e.g. with some system tool). If the file is normally located on a remote storages, this creates a local copy. If the file is already on the local system, this only makes a new copy if $writable is set to TRUE.
bool | $writable | Set this to FALSE if you only want to do read operations on the file. |
Implements FileInterface.
Definition at line 474 of file core/Classes/Resource/FileReference.php.
getHashedIdentifier | ( | ) |
Get hashed identifier
Implements ResourceInterface.
Definition at line 506 of file core/Classes/Resource/FileReference.php.
References FileReference\getIdentifier(), and FileReference\getStorage().
getIdentifier | ( | ) |
Returns the identifier of the underlying original file
Implements ResourceInterface.
Definition at line 391 of file core/Classes/Resource/FileReference.php.
Referenced by FileReference\getHashedIdentifier().
getLink | ( | ) |
Returns the link that should be active when clicking on this image
Definition at line 244 of file core/Classes/Resource/FileReference.php.
getMimeType | ( | ) |
Get the MIME type of this file
Implements FileInterface.
Definition at line 304 of file core/Classes/Resource/FileReference.php.
getModificationTime | ( | ) |
Returns the modification time of the file as Unix timestamp
Implements FileInterface.
Definition at line 314 of file core/Classes/Resource/FileReference.php.
getName | ( | ) |
Returns the name of this file
Implements ResourceInterface.
Definition at line 196 of file core/Classes/Resource/FileReference.php.
getNameWithoutExtension | ( | ) |
Returns the basename (the name without extension) of this file.
Implements FileInterface.
Definition at line 294 of file core/Classes/Resource/FileReference.php.
getOriginalFile | ( | ) |
Gets the original file being referenced.
Definition at line 496 of file core/Classes/Resource/FileReference.php.
References FileReference\$originalFile.
getParentFolder | ( | ) |
Returns the parent folder.
Implements ResourceInterface.
Definition at line 516 of file core/Classes/Resource/FileReference.php.
getProperties | ( | ) |
Gets all properties, falling back to values of the parent.
Definition at line 151 of file core/Classes/Resource/FileReference.php.
References FileReference\$mergedProperties, and FileReference\$propertiesOfFileReference.
Referenced by FileReference\getProperty(), and FileReference\hasProperty().
getProperty | ( | $key | ) |
Gets a property, falling back to values of the parent.
string | $key | The property to be looked up |
\InvalidArgumentException |
Implements FileInterface.
Definition at line 122 of file core/Classes/Resource/FileReference.php.
References FileReference\getProperties(), and FileReference\hasProperty().
Referenced by FileReference\getAlternative(), FileReference\getDescription(), FileReference\getTitle(), ImageViewHelper\render(), and ImageViewHelper\renderStatic().
getPublicUrl | ( | $relativeToCurrentScript = false | ) |
Returns a publicly accessible URL for this file
WARNING: Access to the file may be restricted by further means, e.g. some web-based authentication. You have to take care of this yourself.
bool | $relativeToCurrentScript | Determines whether the URL returned should be relative to the current script, in case it is relative at all (only for the LocalDriver) |
Implements FileInterface.
Definition at line 448 of file core/Classes/Resource/FileReference.php.
getReferenceProperties | ( | ) |
Gets all properties of the file reference.
Definition at line 186 of file core/Classes/Resource/FileReference.php.
References FileReference\$propertiesOfFileReference.
getReferenceProperty | ( | $key | ) |
Gets a property of the file reference.
string | $key | The property to be looked up |
\InvalidArgumentException |
Definition at line 138 of file core/Classes/Resource/FileReference.php.
getSha1 | ( | ) |
Returns the Sha1 of this file
Implements FileInterface.
Definition at line 274 of file core/Classes/Resource/FileReference.php.
getSize | ( | ) |
Returns the size of this file
Implements FileInterface.
Definition at line 264 of file core/Classes/Resource/FileReference.php.
getStorage | ( | ) |
Get the storage the original file is located in
Implements ResourceInterface.
Definition at line 381 of file core/Classes/Resource/FileReference.php.
Referenced by FileReference\getHashedIdentifier().
getTitle | ( | ) |
Returns the title text to this image
Definition at line 208 of file core/Classes/Resource/FileReference.php.
References FileReference\getProperty().
getType | ( | ) |
Returns the fileType of this file
Definition at line 334 of file core/Classes/Resource/FileReference.php.
getUid | ( | ) |
Returns the uid of this File In Use
Definition at line 254 of file core/Classes/Resource/FileReference.php.
hasProperty | ( | $key | ) |
Returns true if the given key exists for this file.
string | $key | The property to be looked up |
Implements FileInterface.
Definition at line 110 of file core/Classes/Resource/FileReference.php.
References FileReference\getProperties().
Referenced by FileReference\getProperty().
isIndexed | ( | ) |
Returns TRUE if this file is indexed. This is always true for FileReference objects, as they rely on a sys_file_reference record to be present, which in turn can only exist if the original file is indexed.
Implements FileInterface.
Definition at line 461 of file core/Classes/Resource/FileReference.php.
isMissing | ( | ) |
Check if file is marked as missing by indexer
Definition at line 344 of file core/Classes/Resource/FileReference.php.
rename | ( | $newName | ) |
Renames the fileName in this particular usage.
string | $newName | The new name |
\BadMethodCallException |
Implements FileInterface.
Definition at line 428 of file core/Classes/Resource/FileReference.php.
|
protected |
Callback to handle the NULL value feature
mixed | $value | |
mixed | $key |
Definition at line 174 of file core/Classes/Resource/FileReference.php.
setContents | ( | $contents | ) |
Replace the current file contents with the given string
string | $contents | The contents to write to the file. |
Implements FileInterface.
Definition at line 368 of file core/Classes/Resource/FileReference.php.
toArray | ( | ) |
Returns an array representation of the file. (This is used by the generic listing module vidi when displaying file records.)
Implements FileInterface.
Definition at line 485 of file core/Classes/Resource/FileReference.php.
References FileReference\$propertiesOfFileReference.
|
protected |
Definition at line 69 of file core/Classes/Resource/FileReference.php.
Referenced by FileReference\getProperties().
|
protected |
Definition at line 53 of file core/Classes/Resource/FileReference.php.
|
protected |
Definition at line 60 of file core/Classes/Resource/FileReference.php.
Referenced by FileReference\getOriginalFile().
|
protected |
Definition at line 36 of file core/Classes/Resource/FileReference.php.
Referenced by FileReference\getProperties(), FileReference\getReferenceProperties(), and FileReference\toArray().
|
protected |
Definition at line 45 of file core/Classes/Resource/FileReference.php.