Field::getText()

Version 3.8

Value in simple text format

Return value

String

Full documentation

Examples of different field types string value:

$txt = $Workhour->date->getText(); // -> 12.02.2012 (Date in localized format)
$txt = $Workhour->duration->getText(); // -> 12:30 (Time in localized format)
$txt = $Workhour->number->getText()(); // -> 12pcs (Value and unit)
$txt = $Workhour->selection->getText(); // -> A, B (Selected values, comma delimited list.)