Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:filter-items [01.12.2014 10:43] msd-mediaen:create:filter-items [03.12.2014 08:22] – [Task 4] alexander.ritter
Line 76: Line 76:
 Polarity profiles should now carried out for the individual types of media. However, only for media used at least once a month by the respondent. Furthermore, a maximum of 2 polarity profiles should be carried out. If the respondent uses more types of media then two should be selected at random. Polarity profiles should now carried out for the individual types of media. However, only for media used at least once a month by the respondent. Furthermore, a maximum of 2 polarity profiles should be carried out. If the respondent uses more types of media then two should be selected at random.
  
-6 similar questions (TF06 to TF11), in which only the question text varies, form the basis of this. "Daily newspaper" in the first question; "radio" in the next and so on. The question is created once, then copied five times and, finally, the name and question text is changed. +6 similar questions (TF06 to TF11), in which only the question title varies, form the basis of this. "Daily newspaper" in the first question; "radio" in the next and so on. The question is created once, then copied five times and, finally, the name and question title is changed. 
  
  
Line 210: Line 210:
  
 <code php> <code php>
-// first of all, the three questions are asked on page 1 +// First of all, the three questions are asked on page 1 
 question('NU01'); // Do you use web blogs? (1=no, 2=yes) question('NU01'); // Do you use web blogs? (1=no, 2=yes)
 question('NU02'); // Do you use podcasts? (1=no, 2=yes) question('NU02'); // Do you use podcasts? (1=no, 2=yes)
Line 217: Line 217:
  
 <code php> <code php>
-// an item list is created and queried on page 2+// An item list is created and queried on page 2
 $items = array(1,2,3); // items 1-3 are always asked $items = array(1,2,3); // items 1-3 are always asked
 if (value('NU01') == 2) { if (value('NU01') == 2) {
Line 228: Line 228:
   $items[] = 6; // wikis used at least rarely => item 6   $items[] = 6; // wikis used at least rarely => item 6
 } }
-// finally, ask the question+// Finally, ask the question
 question('TF13', $items); question('TF13', $items);
 </code> </code>
Line 247: Line 247:
  
 <code php> <code php>
-// determine additional items+// Determine additional items
 $items1 = getItems('TF04', 'all'); // list all items in question 1 $items1 = getItems('TF04', 'all'); // list all items in question 1
 $items2 = getItems('TF05', 'all'); // list all items in question 2  $items2 = getItems('TF05', 'all'); // list all items in question 2 
en/create/filter-items.txt · Last modified: 19.05.2021 21:17 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki