This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:functions:id [11.07.2017 00:21] – [Rückgabewert] baeuchler.ines | en:create:functions:id [11.07.2017 00:31] – [Example] baeuchler.ines | ||
---|---|---|---|
Line 24: | Line 24: | ||
===== Example ===== | ===== Example ===== | ||
- | Im folgenden Beispiel werden jene Optionen einer Skalenbatterie | + | The following example lists options within a scale SK01, which were rated with a min. value of 3 from the participant |
+ | |||
<code php> | <code php> | ||
- | // Items mit Bewertung | + | // find items with evaluation |
$items = getItems(' | $items = getItems(' | ||
- | // Alle Items durchgehen | + | // go through all items |
foreach ($items as $item) { | foreach ($items as $item) { | ||
- | // Text ermitteln | + | // identify text |
$text = getItemtext(' | $text = getItemtext(' | ||
- | // Wert ermitteln | + | // identify value |
$wert = value(id(' | $wert = value(id(' | ||
- | // Im Fragebogen anzeigen | + | // show in questionnaire |
html('< | html('< | ||
} | } | ||
</ | </ | ||