class final Core · roukmoute/pdf 0.6.2

PDF\Document\Forms\FieldTree
One form's mutable hierarchy and inherited document defaults, without global state.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(?PDF\Document\Forms\DefaultAppearance $defaultAppearance = null, ?PDF\Syntax\Object\DictionaryType $defaultResources = null, ?PDF\Syntax\Object\IntegerType $quadding = null, PDF\Syntax\Object\BooleanType $needAppearances = new BooleanType(false))

Declared by PDF\Document\Forms\FieldTree · View the code ↗

Declared methods

addRoot()

public function addRoot(PDF\Document\Forms\Field $field): self

Declared by PDF\Document\Forms\FieldTree · View the code ↗

defaultValue()

public function defaultValue(string $key): ?PDF\Syntax\FileStructure\BasicType

Declared by PDF\Document\Forms\FieldTree · View the code ↗

fields()

public function fields(): array
@return list<Field>

Declared by PDF\Document\Forms\FieldTree · View the code ↗

roots()

public function roots(): array
@return list<Field>

Declared by PDF\Document\Forms\FieldTree · View the code ↗

validate()

public function validate(): void

Declared by PDF\Document\Forms\FieldTree · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly ?PDF\Document\Forms\DefaultAppearance $defaultAppearancePDF\Document\Forms\FieldTree
public readonly ?PDF\Syntax\Object\DictionaryType $defaultResourcesPDF\Document\Forms\FieldTree
public readonly PDF\Syntax\Object\BooleanType $needAppearancesPDF\Document\Forms\FieldTree
public readonly ?PDF\Syntax\Object\IntegerType $quaddingPDF\Document\Forms\FieldTree