LightweightDigitalObject
in package
Lightweight digital object wrapper for template compatibility.
Wraps a stdClass from digital_object table and provides __get/__call/__isset so that sfOutputEscaperObjectDecorator can call methods like getName(), getFullPath().
Tags
Table of Contents
Methods
- __call() : mixed
- Handle Propel-style getter calls (getName, getFullPath, etc.)
- __construct() : mixed
- __get() : mixed
- __isset() : bool
- __toString() : string
- getFullPath() : string
- Get the full filesystem path to this digital object.
- getRawData() : object
- Get raw data object.
- getRepresentationByUsage() : self|null
- Get a derivative (thumbnail, reference) by usage ID.
Methods
__call()
Handle Propel-style getter calls (getName, getFullPath, etc.)
public
__call(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
- $name : string
- $arguments : array<string|int, mixed>
__construct()
public
__construct(object $data) : mixed
Parameters
- $data : object
__get()
public
__get(string $name) : mixed
Parameters
- $name : string
__isset()
public
__isset(string $name) : bool
Parameters
- $name : string
Return values
bool__toString()
public
__toString() : string
Return values
stringgetFullPath()
Get the full filesystem path to this digital object.
public
getFullPath() : string
Mimics QubitDigitalObject::getFullPath().
Return values
stringgetRawData()
Get raw data object.
public
getRawData() : object
Return values
objectgetRepresentationByUsage()
Get a derivative (thumbnail, reference) by usage ID.
public
getRepresentationByUsage(int $usageId) : self|null
Mimics QubitDigitalObject::getRepresentationByUsage().
Parameters
- $usageId : int