SetaPDF_Core_Document_Catalog_Extensions Class for handling the catalogs extensions dictionary

File: /SetaPDF/Core/Document/Catalog/Extensions.php

Class hierarchy

Summary

Properties


Methods

__construct()

public SetaPDF_Core_Document_Catalog_Extensions::__construct ( SetaPDF_Core_Document_Catalog $catalog )

The constructor.

Parameters
$catalog : SetaPDF_Core_Document_Catalog
 

cleanUp()

public void SetaPDF_Core_Document_Catalog_Extensions::cleanUp ( void )

Release memory and cycled references.

getDictionary()

public null|SetaPDF_Core_Type_Dictionary SetaPDF_Core_Document_Catalog_Extensions::getDictionary ( [ bool $create = false ] )

Get the extensions dictionary.

Parameters
$create : bool
 

getExtension()

public array|bool SetaPDF_Core_Document_Catalog_Extensions::getExtension ( string $name )

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
 

getExtensions()

public array SetaPDF_Core_Document_Catalog_Extensions::getExtensions ( void )

Get all defined developer extensions.

The method will return an array of the following structure: [$name => [baseVersion => "...", extensionLevel => "..."], ...]

removeExtension()

public bool SetaPDF_Core_Document_Catalog_Extensions::removeExtension ( string $name )

Removes a developer extension from the dictionary.

Parameters
$name : string
 

setExtension()

public void SetaPDF_Core_Document_Catalog_Extensions::setExtension ( string $name, string $baseVersion, integer $extensionLevel )

Set the data of a developer extension.

Parameters
$name : string
 
$baseVersion : string
 
$extensionLevel : integer