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()

Implementation of AFDate_Format

Parameters
$field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
 
$arguments : array
 

AFDate_FormatEx()

Implementation of AFDate_FormatEx

Parameters
$field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
 
$arguments : array
 

AFNumber_Format()

Implementation of AFNumber_Format

Parameters
$field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
 
$arguments : array
 

AFPercent_Format()

Implementation of AFPercent_Format

Parameters
$field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
 
$arguments : array
 

AFSpecial_Format()

Implementation of AFSpecial_Format

Parameters
$field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
 
$arguments : array
 

AFTime_Format()

Implementation of AFTime_Format

Parameters
$field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
 
$arguments : array
 

AFTime_FormatEx()

Implementation of AFTime_FormatEx

Parameters
$field : SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
 
$arguments : array
 

_tokenizeFormat()

protected static SetaPDF_FormFiller_Field_Formatter::_tokenizeFormat (
string $format
): array

Splits a format string into tokens.

Parameters
$format : string
 

format()

makeDate()

public static SetaPDF_FormFiller_Field_Formatter::makeDate (
string $value [, null|string $format = null ]
): DateTime|false

Creates a DateTime object from a value and an optional format string.

Parameters
$value : string
 
$format : null|string
 

makeNumber()

public static SetaPDF_FormFiller_Field_Formatter::makeNumber (
string $value
): float

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
): string

Implementation of printd() method from Acrobat JS API.

Parameters
$cFormat : string
 
$date : DateTimeInterface
 
See

printx()

public static SetaPDF_FormFiller_Field_Formatter::printx (
string $cFormat, string $value
): string

Implementation of printx() method from Acrobat JS API.

Parameters
$cFormat : string
 
$value : string
 
See