Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
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 |