Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
PdfIndirectObjectReference Class Reference

Class representing an indirect object reference. More...

Inheritance diagram for PdfIndirectObjectReference:
PdfType

Static Public Member Functions

static create ($objectNumber, $generationNumber)
 Helper method to create an instance.
 
static ensure ($value)
 Ensures that the passed value is a PdfIndirectObject instance.
 
static resolve (PdfType $value, PdfParser $parser, $stopAtIndirectObject=false)
 Resolves a PdfType value to its value.
 

Public Attributes

int $generationNumber
 The generation number.
 
mixed $value
 The value of the PDF type.
 

Static Protected Member Functions

static ensureType ($type, $value, $errorMessage)
 Ensure that a value is an instance of a specific PDF type.
 

Detailed Description

Class representing an indirect object reference.

Member Function Documentation

◆ create()

static PdfIndirectObjectReference::create ( $objectNumber,
$generationNumber )
static

Helper method to create an instance.

Parameters
int$objectNumber
int$generationNumber
Return values
self

◆ ensure()

static PdfIndirectObjectReference::ensure ( $value)
static

Ensures that the passed value is a PdfIndirectObject instance.

Parameters
mixed$value
Return values
self
Exceptions
PdfTypeException

◆ ensureType()

static PdfType::ensureType ( $type,
$value,
$errorMessage )
staticprotectedinherited

Ensure that a value is an instance of a specific PDF type.

Parameters
string$type
PdfType$value
string$errorMessage
Return values
mixed
Exceptions
PdfTypeException

◆ resolve()

static PdfType::resolve ( PdfType $value,
PdfParser $parser,
$stopAtIndirectObject = false )
staticinherited

Resolves a PdfType value to its value.

This method is used to evaluate indirect and direct object references until a final value is reached.

Parameters
PdfType$value
PdfParser$parser
bool$stopAtIndirectObject
Return values
PdfType
Exceptions
CrossReferenceException
PdfParserException

The documentation for this class was generated from the following file: