Heratio Framework API Reference

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
author

Johan Pieterse johan@theahg.co.za

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>

getFullPath()

Get the full filesystem path to this digital object.

public getFullPath() : string

Mimics QubitDigitalObject::getFullPath().

Return values
string

getRepresentationByUsage()

Get a derivative (thumbnail, reference) by usage ID.

public getRepresentationByUsage(int $usageId) : self|null

Mimics QubitDigitalObject::getRepresentationByUsage().

Parameters
$usageId : int
Return values
self|null

        
On this page

Search results