PseudoFileReference
class \
- Extends
- FileReference
Use in `UploadedFileReferenceConverter` handling file uploads.
PseudoFile and PseudoFileReference are independent and not associated.
This facade hides (potential) internal properties from being exposed to the
public during serialization. sys_file_reference.uid or sys_file.uid are
the only aspects used externally. In case of missing integrity checks during
deserialization, both properties would allow direct object reference (IDOR).
Internal
Table of Contents
Constants
- PROPERTY_LANGUAGE_UID : string = '_languageUid'
- PROPERTY_LOCALIZED_UID : string = '_localizedUid'
- PROPERTY_PID : string = 'pid'
- PROPERTY_UID : string = 'uid'
- PROPERTY_VERSIONED_UID : string = '_versionedUid'
Properties
- $_languageUid : int<-1, max>|null
- $_localizedUid : int<0, max>|null
- $_versionedUid : int|null
- The uid of the versioned record.
- $originalResource : FileReference|null
- $pid : int<0, max>|null
- $uid : int<1, max>|null
- $uidLocal : int|null
- Uid of the referenced sys_file. Needed for extbase to serialize the reference correctly.
Methods
- __serialize() : array
- A lazy entity is explicitly initialized before its state is collected: The engine's serializer must never trigger the initialization of a lazy object during its traversal, as that corrupts back references within the serialized payload.
- __toString() : non-empty-string
- __unserialize() : void
- getOriginalResource() : FileReference
- getPid() : int<0, max>|null
- getUid() : int<1, max>|null
- setOriginalResource() : void
- setPid() : void
Constants
PROPERTY_LANGUAGE_UID
public
string
PROPERTY_LANGUAGE_UID
= '_languageUid'
PROPERTY_LOCALIZED_UID
public
string
PROPERTY_LOCALIZED_UID
= '_localizedUid'
PROPERTY_PID
public
string
PROPERTY_PID
= 'pid'
PROPERTY_UID
public
string
PROPERTY_UID
= 'uid'
PROPERTY_VERSIONED_UID
public
string
PROPERTY_VERSIONED_UID
= '_versionedUid'
Properties
$_languageUid
protected
int<-1, max>|null
$_languageUid
= null
The uid of the language of the object. This is the id of the corresponding sing language.
Internal
Tags
$_localizedUid
protected
int<0, max>|null
$_localizedUid
= null
The uid of the localized record. Holds the uid of the record in default language (the translationOrigin).
Internal
Tags
$_versionedUid
The uid of the versioned record.
protected
int|null
$_versionedUid
= null
Internal
Tags
$originalResource
protected
FileReference|null
$originalResource
= null
$pid
protected
int<0, max>|null
$pid
= null
The id of the page the record is "stored".
$uid
protected
int<1, max>|null
$uid
= null
The uid of the record. The uid is only unique in the context of the database table.
$uidLocal
Uid of the referenced sys_file. Needed for extbase to serialize the reference correctly.
protected
int|null
$uidLocal
= null
Methods
__serialize()
A lazy entity is explicitly initialized before its state is collected: The engine's serializer must never trigger the initialization of a lazy object during its traversal, as that corrupts back references within the serialized payload.
public
__serialize() : array
Return values
array__toString()
public
__toString() : non-empty-string
Return values
non-empty-string__unserialize()
public
__unserialize(array $data) : void
Parameters
- $data : array
getOriginalResource()
public
getOriginalResource() : FileReference
Return values
FileReferencegetPid()
public
getPid() : int<0, max>|null
Return values
int<0, max>|nullgetUid()
public
getUid() : int<1, max>|null
Return values
int<1, max>|nullsetOriginalResource()
public
setOriginalResource(FileReference $originalResource) : void
Parameters
- $originalResource : FileReference
setPid()
public
setPid(int<0, max> $pid) : void
Parameters
- $pid : int<0, max>