Moodle PHP Documentation 4.4
Moodle 4.4.8+ (Build: 20250530) (000b0c27711)
|
Class representing a PDF name object. More...
Static Public Member Functions | |
static | create ($string) |
Helper method to create an instance. | |
static | ensure ($name) |
Ensures that the passed value is a PdfName instance. | |
static | flatten (PdfType $value, PdfParser $parser) |
Flatten indirect object references to direct objects. | |
static | parse (Tokenizer $tokenizer, StreamReader $streamReader) |
Parses a name object from the passed tokenizer and stream-reader. | |
static | resolve (PdfType $value, PdfParser $parser, $stopAtIndirectObject=false) |
Resolves a PdfType value to its value. | |
static | unescape ($value) |
Unescapes a name string. | |
Public Attributes | |
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. | |
Class representing a PDF name object.
|
static |
Helper method to create an instance.
string | $string |
self |
|
static |
Ensures that the passed value is a PdfName instance.
mixed | $name |
self |
PdfTypeException |
|
staticprotectedinherited |
Ensure that a value is an instance of a specific PDF type.
string | $type | |
PdfType | $value | |
string | $errorMessage |
mixed |
PdfTypeException |
Flatten indirect object references to direct objects.
PdfType |
CrossReferenceException | |
PdfParserException |
|
static |
Parses a name object from the passed tokenizer and stream-reader.
Tokenizer | $tokenizer | |
StreamReader | $streamReader |
self |
|
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.
PdfType |
CrossReferenceException | |
PdfParserException |
|
static |
Unescapes a name string.
string | $value |
string |