[[info()]]
Translations of this page:
 

info()

The function info() returns meta-information about the current interview or illustration.

mixed info(string Attribut)

Depending on the parameter Attribut, the function returns the following data or information.

  • Date and time
    • 'time' – The current time (string, formatting depending on the displayed language)
    • 'date' – The current date (string, formatting depending on the displayed language)
    • 'datetime' – Date and time (string, formatting depending on the displayed language)
    • 'timestamp' – Returns the current UNIX timestamp (int)
  • Display
    • 'language' – Current questionnaire language (string, three-digit language code)
    • 'screenreader' – Information on whether the questionnaire in display mode is presented for Screen Reader (boolean)
    • 'print' – Information on whether a print preview of the questionnaire is currently being created (boolean, via Collected dataView data or the corresponding API-Function).
  • Other
    • 'debug' – Information on whether the questionnaire is displayed in debug mode (boolean)
en/create/functions/info.txt · Last modified: 03.04.2023 11:11 by daniel.lobenwein
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki