Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Class representing a PDF dictionary object. More...
Static Public Member Functions | |
static | create (array $entries=[]) |
Helper method to create an instance. | |
static | ensure ($dictionary) |
Ensures that the passed value is a PdfDictionary instance. | |
static | get ($dictionary, $key, PdfType $default=null) |
Get a value by its key from a dictionary or a default value. | |
static | parse (Tokenizer $tokenizer, StreamReader $streamReader, PdfParser $parser) |
Parses a dictionary of the passed tokenizer, stream-reader and parser. | |
Class representing a PDF dictionary object.
|
static |
Helper method to create an instance.
PdfType[] | $entries | The keys are the name entries of the dictionary. |
self |
|
static |
Ensures that the passed value is a PdfDictionary instance.
mixed | $dictionary |
self |
PdfTypeException |
|
static |
Get a value by its key from a dictionary or a default value.
mixed | $dictionary | |
string | $key | |
PdfType | null | $default |
PdfNull|PdfType |
PdfTypeException |
|
static |
Parses a dictionary of the passed tokenizer, stream-reader and parser.
Tokenizer | $tokenizer | |
StreamReader | $streamReader | |
PdfParser | $parser |
bool|self |
PdfTypeException |