SetaPDF_FormFiller_Field_Formatter Field formatter class emulating various standard formatting functions from Acrobat.
File: /SetaPDF v2/FormFiller/Field/Formatter.php
Class hierarchy
Summary
Static Methods
AFDate_Format()
protected static SetaPDF_FormFiller_Field_Formatter::AFDate_Format (
SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface $field, array $arguments
): stringImplementation of AFDate_Format
Parameters
- $field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- $arguments : array
AFDate_FormatEx()
protected static SetaPDF_FormFiller_Field_Formatter::AFDate_FormatEx (
SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface $field, array $arguments
): stringImplementation of AFDate_FormatEx
Parameters
- $field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- $arguments : array
AFNumber_Format()
protected static SetaPDF_FormFiller_Field_Formatter::AFNumber_Format (
SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface $field, array $arguments
): stringImplementation of AFNumber_Format
Parameters
- $field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- $arguments : array
AFPercent_Format()
protected static SetaPDF_FormFiller_Field_Formatter::AFPercent_Format (
SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface $field, array $arguments
): stringImplementation of AFPercent_Format
Parameters
- $field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- $arguments : array
AFSpecial_Format()
protected static SetaPDF_FormFiller_Field_Formatter::AFSpecial_Format (
SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface $field, array $arguments
): stringImplementation of AFSpecial_Format
Parameters
- $field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- $arguments : array
AFTime_Format()
protected static SetaPDF_FormFiller_Field_Formatter::AFTime_Format (
SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface $field, array $arguments
): mixed|stringImplementation of AFTime_Format
Parameters
- $field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- $arguments : array
AFTime_FormatEx()
protected static SetaPDF_FormFiller_Field_Formatter::AFTime_FormatEx (
SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface $field, array $arguments
): stringImplementation of AFTime_FormatEx
Parameters
- $field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- $arguments : array
format()
public static SetaPDF_FormFiller_Field_Formatter::format (
SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface $field, string $encoding
): stringMain method which can be used as appearance value callback.
Parameters
- $field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- $encoding : string
Exceptions
Throws SetaPDF_Core_Type_Exception
See
makeDate()
public static SetaPDF_FormFiller_Field_Formatter::makeDate (
string $value [, null|string $format = null ]
): DateTime|falseCreates a DateTime object from a value and an optional format string.
Parameters
- $value : string
- $format : null|string
makeNumber()
Makes a number from a string value by accepting various decimal and thousand delimiters.
Parameters
- $value : string
printd()
public static SetaPDF_FormFiller_Field_Formatter::printd (
string $cFormat, DateTimeInterface $date
): stringImplementation of printd() method from Acrobat JS API.
Parameters
- $cFormat : string
- $date : DateTimeInterface
See
printx()
Implementation of printx() method from Acrobat JS API.
Parameters
- $cFormat : string
- $value : string