Heratio Framework API Reference

InformationObjectHelper
in package

Information Object Helper - Renders viewers for digital objects

Table of Contents

Methods

clearCache()  : void
Clear the model cache
get3DModelsFromPlugin()  : array<string|int, mixed>|null
Check if ahg3DModelPlugin is available and has models for this object
has3DModels()  : bool
Check if object has 3D models
renderViewer()  : string
Render appropriate viewer based on digital object type

Methods

get3DModelsFromPlugin()

Check if ahg3DModelPlugin is available and has models for this object

public static get3DModelsFromPlugin(int $objectId) : array<string|int, mixed>|null
Parameters
$objectId : int
Return values
array<string|int, mixed>|null

has3DModels()

Check if object has 3D models

public static has3DModels(int $objectId) : bool
Parameters
$objectId : int
Return values
bool

renderViewer()

Render appropriate viewer based on digital object type

public static renderViewer(int $objectId, string $mimeType[, array<string|int, mixed> $options = [] ]) : string
Parameters
$objectId : int
$mimeType : string
$options : array<string|int, mixed> = []
Return values
string

        
On this page

Search results