setasign\SetaPDF2\Core\Document\Catalog
Extensions Class for handling the catalogs extensions dictionary
File: /SetaPDF v2/Core/Document/Catalog/Extensions.php
Old class name (alias):
\SetaPDF_Core_Document_Catalog_Extensions
Class hierarchy
Summary
Properties
$_catalog
protected \SetaPDF_Core_Document_Catalog Extensions::$_catalog
The catalog instance
Methods
__construct()
getDictionary()
Get the extensions dictionary.
Parameters
- $create : bool
Exceptions
getExtension()
Get a developer extension by its name.
This method will return an array with the "baseVersion" and "extensionLevel" keys or false if no extension was found.
Parameters
- $name : string
Exceptions
getExtensions()
Get all defined developer extensions.
The method will return an array of the following structure: [$name => [baseVersion => "...", extensionLevel => "..."], ...]
Exceptions
removeExtension()
Removes a developer extension from the dictionary.
Parameters
- $name : string
Exceptions
setExtension()
Set the data of a developer extension.
Parameters
- $name : string
- $baseVersion : string
- $extensionLevel : int