[[id()]]
 

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:id [11.07.2017 00:29] – [Example] baeuchler.inesen:create:functions:id [11.07.2017 00:31] – [Example] baeuchler.ines
Line 29: Line 29:
  
 <code php> <code php>
-// Items mit Bewertung 3+ finden+// find items with evaluation 3+ Items
 $items = getItems('SK01', 'min', 3); $items = getItems('SK01', 'min', 3);
-// Alle Items durchgehen+// go through all items
 foreach ($items as $item) { foreach ($items as $item) {
-  // Text ermitteln+  // identify text
   $text = getItemtext('SK01', $item);   $text = getItemtext('SK01', $item);
-  // Wert ermitteln+  // identify value
   $wert = value(id('SK01', $item));   $wert = value(id('SK01', $item));
-  // Im Fragebogen anzeigen+  // show in questionnaire
   html('<p>'.$text.' ('.$wert.')</p>);   html('<p>'.$text.' ('.$wert.')</p>);
 } }
 </code> </code>
  
en/create/functions/id.txt · Last modified: 18.02.2019 11:15 by martijn.millecamp
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki