Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:create:functions:paneldata [05.09.2020 13:31] – [panelData ()] sophia.schaueren:create:functions:paneldata [05.09.2020 13:37] – [Return Value] sophia.schauer
Line 6: Line 6:
  
 The function ''panelData()'' returns a note from the list of **serial numbers**, if the questionnaire uses the [[en:create:access|access restriction]] "serial number". The function ''panelData()'' returns a note from the list of **serial numbers**, if the questionnaire uses the [[en:create:access|access restriction]] "serial number".
-===== Return Value =====+===== Return Value (Adresslist)=====
  
 The'' panelData ()'' command returns in an array including the address entries subgroup, the time of the mail dispatch, and the data stored as //user-defined data// in the address entry. The'' panelData ()'' command returns in an array including the address entries subgroup, the time of the mail dispatch, and the data stored as //user-defined data// in the address entry.
Line 12: Line 12:
 <code php> <code php>
 array ( array (
-  0 => (string) Subgroup, +  0 => (string) Subgroup 
-  1 => (string) User-defined data 1, +  1 => (string) User-defined data 1 
-  2 => (string) User-defined data 2, +  2 => (string) User-defined data 2 
-  3 => (string) User-defined data 3, +  3 => (string) User-defined data 3 
-  4 => (string) User-defined data 4, +  4 => (string) User-defined data 4 
-  5 => (string) User-defined data 5, +  5 => (string) User-defined data 5 
-  'subgroup' => (string) Subgroup,+  'subgroup' => (string) Subgroup
   'mailsent' => (int) Unix timestamp when the mail was sent   'mailsent' => (int) Unix timestamp when the mail was sent
 +  
 +    // Only available for respondents with data protection mode "Personal", otherwise NULL
 +  'firstname' => (string) firstname
 +  'lastname' => (string) lastname
 +  'gender' => (string) gender ('female', 'male', 'other' or '')
 +  'email' => (string) email-address
 +  'email.cc' => (string) email CC-address
 +  'mobile' => (string) Mobiltelefonnummer
 +  'serial' => (string) personID
 ) )
 </code> </code>
Line 26: Line 35:
  
 **Note:** If individual sending times are used for the mailing, the information on the sending time (like certain user-defined data) can remove anonymity and should not be stored in the data set. If the address entry is not anonymous, the sending time is automatically stored in the MAILSENT variable in the data set and 'mailsent' returns the same value as ''value('MAILSENT')''. **Note:** If individual sending times are used for the mailing, the information on the sending time (like certain user-defined data) can remove anonymity and should not be stored in the data set. If the address entry is not anonymous, the sending time is automatically stored in the MAILSENT variable in the data set and 'mailsent' returns the same value as ''value('MAILSENT')''.
 +
  
  
en/create/functions/paneldata.txt · Last modified: 07.09.2022 21:00 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki