Manuals

 

SetaPDF_ChoiceField::getValue()

Description

class SetaPDF_ChoiceField extends SetaPDF_FormField {
mixed getValue ( [string $encoding=null] ) }

Returns the current selected option(s).

Parameters

$encoding

Defines the encoding of the returned string(s). If left to "null" the encoding provided in the factory-method is used (default: windows-1252//IGNORE). The conversion is handle through a wrapper class around iconv (SetaPDF/Tools/Encoding.php).

Pass false to get the untouched value in PdfDocEncoding or UTF-16BE.

Return Value

A string or an array of strings representing the currently selected values.