class final Core · roukmoute/pdf 0.5.5
PDF\Document\Forms\ChoiceFieldExplicit option ordering; no locale-dependent sorting or automatic value selection.Héritage et contrats
Parent : PDF\Document\Forms\TerminalField
Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Construction
__construct()
public function __construct(?PDF\Document\Forms\PartialFieldName $name, PDF\Document\Forms\ChoiceOptions $options, ?PDF\Document\Forms\ChoiceFieldFlags $flags = null, ?PDF\Document\Forms\ChoiceFieldValue $value = null, ?PDF\Document\Forms\ChoiceSelection $selection = null, PDF\Document\Forms\FieldTypeDeclaration $declaration = PDF\Document\Forms\FieldTypeDeclaration::Explicit, ?PDF\Document\Forms\ChoiceFieldValue $defaultValue = null, ?PDF\Document\Forms\ChoiceValueDomain $inheritedValueDomain = null, PDF\Syntax\Object\DictionaryObject\Entry ...$entries)Méthodes déclarées
validate()
public function validate(): voidMéthodes héritées
20 méthodes des parents et contrats
__toString()
public function __toString(): stringaddWidget()
public function addWidget(PDF\Document\Forms\WidgetAnnotation $widget): staticattachTo()
public function attachTo(PDF\Document\Forms\NonTerminalField $parent): void@internal Attach through NonTerminalField::addField().claim()
public function claim(PDF\Document\Forms\FieldTree $tree): void@internal Ownership is established only by FieldTree.count()
public function count(): intdefinition()
public function definition(): PDF\Specification\TableDefinitioneffective()
public function effective(string $key): ?PDF\Syntax\FileStructure\BasicTypeResolve only attributes declared inheritable by the field's definition.entries()
public function entries(): iterableflags()
public function flags(): intget()
public function get(PDF\Syntax\Object\NameType|string $key): ?PDF\Syntax\FileStructure\BasicTypegetIterator()
public function getIterator(): Traversablehas()
public function has(PDF\Syntax\Object\NameType|string $key): boolmergeWidget()
public function mergeWidget(PDF\Document\Forms\WidgetAnnotation $widget): staticparent()
public function parent(): ?PDF\Document\Forms\NonTerminalFieldqualifiedName()
public function qualifiedName(): stringtoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): stringtree()
public function tree(): ?PDF\Document\Forms\FieldTreewidgets()
public function widgets(): array@return list<WidgetAnnotation>with()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticPropriétés
| Déclaration | Provenance et documentation |
|---|---|
public readonly ?PDF\Document\Forms\ChoiceFieldValue $defaultValue | PDF\Document\Forms\ChoiceField |
public readonly ?PDF\Document\Forms\ChoiceValueDomain $inheritedValueDomain | PDF\Document\Forms\ChoiceField |
public readonly PDF\Document\Forms\ChoiceOptions $options | PDF\Document\Forms\ChoiceField |
public readonly ?PDF\Document\Forms\ChoiceFieldValue $value | PDF\Document\Forms\ChoiceField |
Constantes
| Nom | Valeur PHP | Provenance |
|---|---|---|
COMMON_TABLES | | PDF\Specification\SchemaDictionary |
TABLE | | PDF\Specification\SchemaDictionary |