Actions

Translations

Expression Manager/175/de: Difference between revisions

From LimeSurvey Manual

m (Text replace - "ü" to "ü")
m (Text replace - "ä" to "ä")
Line 100: Line 100:
|stddev||Berechne die Sample-Standardabweichung für die Liste der Nummern||number stddev(arg1, arg2, ... argN)
|stddev||Berechne die Sample-Standardabweichung für die Liste der Nummern||number stddev(arg1, arg2, ... argN)
|-
|-
|[http://www.php.net/manual/en/function.str-pad.php str_pad]||Fülle einen String auf eine bestimmte L&auml;nge mit einem anderen String||string str_pad(input, pad_length <nowiki>[</nowiki>, pad_string])
|[http://www.php.net/manual/en/function.str-pad.php str_pad]||Fülle einen String auf eine bestimmte Länge mit einem anderen String||string str_pad(input, pad_length <nowiki>[</nowiki>, pad_string])
|-
|-
|[http://www.php.net/manual/en/function.str-repeat.php str_repeat]||Wiederhole einen String||string str_repeat(input, multiplier)
|[http://www.php.net/manual/en/function.str-repeat.php str_repeat]||Wiederhole einen String||string str_repeat(input, multiplier)
Line 106: Line 106:
|[http://www.php.net/manual/en/function.str-replace.php str_replace]||Ersetzen Sie alle Vorkommen des Suchstrings mit dem Ersatz-String||string str_replace(search, replace, subject)
|[http://www.php.net/manual/en/function.str-replace.php str_replace]||Ersetzen Sie alle Vorkommen des Suchstrings mit dem Ersatz-String||string str_replace(search, replace, subject)
|-
|-
|[http://www.php.net/manual/en/function.strcasecmp.php strcasecmp]||Bin&auml;rsichere Gro&szlig;-und Kleinschreibungs String-Vergleich||int strcasecmp(str1, str2)
|[http://www.php.net/manual/en/function.strcasecmp.php strcasecmp]||Binärsichere Gro&szlig;-und Kleinschreibungs String-Vergleich||int strcasecmp(str1, str2)
|-
|-
|[http://www.php.net/manual/en/function.strcmp.php strcmp]||Bin&auml;rsicherer String-Vergleich||int strcmp(str1, str2)
|[http://www.php.net/manual/en/function.strcmp.php strcmp]||Binärsicherer String-Vergleich||int strcmp(str1, str2)
|-
|-
|[http://www.php.net/manual/en/function.strip-tags.php strip_tags]||Entfernt HTML-und PHP-Tags aus einem String||string strip_tags(str, allowable_tags)
|[http://www.php.net/manual/en/function.strip-tags.php strip_tags]||Entfernt HTML-und PHP-Tags aus einem String||string strip_tags(str, allowable_tags)
Line 118: Line 118:
|[http://www.php.net/manual/en/function.stristr.php stristr]||Case-Insensitiven strstr||string stristr(haystack, needle <nowiki>[</nowiki>, before_needle=false])
|[http://www.php.net/manual/en/function.stristr.php stristr]||Case-Insensitiven strstr||string stristr(haystack, needle <nowiki>[</nowiki>, before_needle=false])
|-
|-
|[http://www.php.net/manual/en/function.strlen.php strlen]||String-L&auml;nge||int strlen(string)
|[http://www.php.net/manual/en/function.strlen.php strlen]||String-Länge||int strlen(string)
|-
|-
|[http://www.php.net/manual/en/function.strpos.php strpos]||Findet das erste Vorkommen eines Strings||int strpos(haystack, needle <nowiki>[</nowiki> offset=0])
|[http://www.php.net/manual/en/function.strpos.php strpos]||Findet das erste Vorkommen eines Strings||int strpos(haystack, needle <nowiki>[</nowiki> offset=0])

Revision as of 23:39, 2 May 2013

Message definition (Expression Manager)
{| class="wikitable"
!Function!!Meaning!!Syntax
|-
|[http://www.php.net/manual/en/function.abs.php abs]||Absolute value||number abs(number)
|-
|[http://www.php.net/manual/en/function.acos.php acos]||Arc cosine||number acos(number)
|-
|[http://www.php.net/manual/en/function.addslashes.php addslashes]||Quote string with slashes||string addslashes(string)
|-
|[http://www.php.net/manual/en/function.asin.php asin]||Arc sine||number asin(number)
|-
|[http://www.php.net/manual/en/function.atan.php atan]||Arc tangent||number atan(number)
|-
|[http://www.php.net/manual/en/function.atan2.php atan2]||Arc tangent of two variables||number atan2(number, number)
|-
|[http://www.php.net/manual/en/function.ceil.php ceil]||Round fractions up||number ceil(number)
|-
|[http://www.php.net/manual/en/function.checkdate.php checkdate]||Returns true(1) if it is a valid date in gregorian calendar||bool checkdate(month,day,year)
|-
|convert_value||Convert a numerical value using a inputTable and outputTable of numerical values||number convert_value(fValue, iStrict, sTranslateFromList, sTranslateToList)
|-
|[http://www.php.net/manual/en/function.cos.php cos]||Cosine||number cos(number)
|-
|count||count the number of answered (non-blank) questions in the list||number count(arg1, arg12, ..., argN)
|-
|countif||Count the number of answered questions in the list equal to the first argument||number countif(matches, arg1, arg2, ... argN)
|-
|countifop||Count the number of answered questions in the list which pass the criteria (arg op value)||number countifop(op, value, arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.date.php date]||Format a local date/time||string date(format <nowiki>[</nowiki>, timestamp=time()])
|-
|[http://www.php.net/manual/en/function.exp.php exp]||Calculates the exponent of e||number exp(number)
|-
|fixnum||Display numbers with comma as radix separator, if needed||string fixnum(number)
|-
|[http://www.php.net/manual/en/function.floor.php floor]||Round fractions down||number floor(number)
|-
|[http://www.php.net/manual/en/function.gmdate.php gmdate]||Format a GMT date/time||string gmdate(format <nowiki>[</nowiki>, timestamp=time()])
|-
|[http://www.php.net/manual/en/function.html-entity-decode.php html_entity_decode]||Convert all HTML entities to their applicable characters (always uses ENT_QUOTES and UTF-8)||string html_entity_decode(string)
|-
|[http://www.php.net/manual/en/function.htmlentities.php htmlentities]||Convert all applicable characters to HTML entities (always uses ENT_QUOTES and UTF-8)||string htmlentities(string)
|-
|[http://www.php.net/manual/en/function.htmlspecialchars.php expr_mgr_htmlspecialchars]||Convert special characters to HTML entities (always uses ENT_QUOTES and UTF-8)||string htmlspecialchars(string)
|-
|[http://www.php.net/manual/en/function.htmlspecialchars-decode.php expr_mgr_htmlspecialchars_decode]||Convert special HTML entities back to characters (always uses ENT_QUOTES and UTF-8)||string htmlspecialchars_decode(string)
|-
|[http://www.php.net/manual/en/function.idate.php idate]||Format a local time/date as integer||string idate(string <nowiki>[</nowiki>, timestamp=time()])
|-
|if{{UpdatedIn|3.0.2}}||Excel-style if(test,result_if_true<nowiki>[</nowiki>,result_if_false = &quot;&quot;<nowiki>]</nowiki>)||if(test,result_if_true<nowiki>[</nowiki>,result_if_false = &quot;&quot;<nowiki>]</nowiki>)
|-
|[http://www.php.net/manual/en/function.implode.php implode]||Join array elements with a string||string implode(glue,arg1,arg2,...,argN)
|-
|[http://www.php.net/manual/en/function.intval.php intval]||Get the integer value of a variable||int intval(number <nowiki>[</nowiki>, base=10])
|-
|[http://www.php.net/manual/en/function.empty.php is_empty]||Determine whether a variable is considered to be empty||bool is_empty(var)
|-
|[http://www.php.net/manual/en/function.is-float.php is_float]||Finds whether the type of a variable is float||bool is_float(var)
|-
|[http://www.php.net/manual/en/function.is-int.php is_int]||Find whether the type of a variable is integer||bool is_int(var)
|-
|[http://www.php.net/manual/en/function.is-nan.php is_nan]||Finds whether a value is not a number||bool is_nan(var)
|-
|[http://www.php.net/manual/en/function.is-null.php is_null]||Finds whether a variable is NULL||bool is_null(var)
|-
|[http://www.php.net/manual/en/function.is-numeric.php is_numeric]||Finds whether a variable is a number or a numeric string||bool is_numeric(var)
|-
|[http://www.php.net/manual/en/function.is-string.php is_string]||Find whether the type of a variable is string||bool is_string(var)
|-
|join{{NewIn|2.0|b=130129}}||Join elements as a new string||join(arg1, arg2, ... argN)
|-
|list||Return comma-separated list of non-blank values||string list(arg1, arg2, ... argN)
|-
|listifop{{NewIn|3.16.1}}||Return a 'glue'-separated list of the specified question property (retProp) from questions in the list which pass the criteria (cmpProp op value)||string listifop(cmpProp, op, value, retProp, glue, sgqa1, sgqa2, ... sgqaN)
|-
|[http://www.php.net/manual/en/function.log.php log]|| The logarithm of number to base, if given, or the natural logarithm. ||number log(number,base=e)
|-
|[http://www.php.net/manual/en/function.ltrim.php ltrim]||Strip whitespace (or other characters) from the beginning of a string||string ltrim(string <nowiki>[</nowiki>, charlist])
|-
|[http://www.php.net/manual/en/function.max.php max]||Find highest value||number max(arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.min.php min]||Find lowest value||number min(arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.mktime.php mktime]||Get UNIX timestamp for a date (each of the 6 arguments are optional)||number mktime([hour [, minute [, second [, month [, day [, year ]]]]]])
|-
|modulo-function||The modulo function is '''not supported''' yet. You can use the floor() function instead||floor(x/y)==(x/y)
|-
|[http://www.php.net/manual/en/function.nl2br.php nl2br]||Inserts HTML line breaks before all newlines in a string||string nl2br(string)
|-
|[http://www.php.net/manual/en/function.number-format.php number_format]||Format a number with grouped thousands||string number_format(number)
|-
|pi||Get value of pi||number pi()
|-
|[http://www.php.net/manual/en/function.pow.php pow]||Exponential expression||number pow(base, exp)
|-
|[http://www.php.net/manual/en/function.quoted-printable-decode.php quoted_printable_decode]||Convert a quoted-printable string to an 8 bit string||string quoted_printable_decode(string)
|-
|[http://www.php.net/manual/en/function.quoted-printable-encode.php quoted_printable_encode]||Convert a 8 bit string to a quoted-printable string||string quoted_printable_encode(string)
|-
|[http://www.php.net/manual/en/function.quotemeta.php quotemeta]||Quote meta characters||string quotemeta(string)
|-
|[http://www.php.net/manual/en/function.rand.php rand]||Generate a random integer, see [[Expression Manager sample surveys#Randomly Ask One Question Per Group|this example]]||int rand() OR int rand(min, max)
|-
|regexMatch||compare a string to a [[Using regular expressions|regular expression]]||bool regexMatch(pattern,input)
|-
|[http://www.php.net/manual/en/function.round.php round]||Rounds a number to an optional precision||number round(val <nowiki>[</nowiki>, precision])
|-
|[http://www.php.net/manual/en/function.rtrim.php rtrim]||Strip whitespace (or other characters) from the end of a string||string rtrim(string <nowiki>[</nowiki>, charlist])
|-
|[http://www.php.net/manual/en/function.sin.php sin]||Sine||number sin(arg)
|-
|[http://www.php.net/manual/en/function.sprintf.php sprintf]||Return a formatted string||string sprintf(format, arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.sqrt.php sqrt]||Square root||number sqrt(arg)
|-
|stddev||Calculate the Sample Standard Deviation for the list of numbers||number stddev(arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.str-pad.php str_pad]||Pad a string to a certain length with another string||string str_pad(input, pad_length <nowiki>[</nowiki>, pad_string])
|-
|[http://www.php.net/manual/en/function.str-repeat.php str_repeat]||Repeat a string||string str_repeat(input, multiplier)
|-
|[http://www.php.net/manual/en/function.str-replace.php str_replace]||Replace all occurrences of the search string with the replacement string||string str_replace(search, replace, subject)
|-
|[http://www.php.net/manual/en/function.strcasecmp.php strcasecmp]||Binary safe case-insensitive string comparison||int strcasecmp(str1, str2)
|-
|[http://www.php.net/manual/en/function.strcmp.php strcmp]||Binary safe string comparison||int strcmp(str1, str2)
|-
|[http://www.php.net/manual/en/function.strip-tags.php strip_tags]||Strip HTML and PHP tags from a string||string strip_tags(str, allowable_tags)
|-
|[http://www.php.net/manual/en/function.stripos.php stripos]||Find position of first occurrence of a case-insensitive unicode string (starting by 0, return false if not found)|||int stripos(haystack, needle <nowiki>[</nowiki>, offset=0])
|-
|[http://www.php.net/manual/en/function.stripslashes.php stripslashes]||Un-quotes a quoted string||string stripslashes(string)
|-
|[http://www.php.net/manual/en/function.stristr.php stristr]||Case-insensitive strstr||string stristr(haystack, needle <nowiki>[</nowiki>, before_needle=false])
|-
|[http://www.php.net/manual/en/function.strlen.php strlen]||Get string length||int strlen(string)
|-
|[http://www.php.net/manual/en/function.strpos.php strpos]||Find position of first occurrence of an unicode string (starting by 0, return false if not found)||int strpos(haystack, needle <nowiki>[</nowiki> offset=0])
|-
|[http://www.php.net/manual/en/function.strrev.php strrev]||Reverse a string||string strrev(string)
|-
|[http://www.php.net/manual/en/function.strstr.php strstr]||Find first occurrence of a string||string strstr(haystack, needle<nowiki>[</nowiki>, before_needle=false])
|-
|[http://www.php.net/manual/en/function.strtolower.php strtolower]||Make a string lowercase||string strtolower(string)
|-
|[http://www.php.net/manual/en/function.strtotime.php strtotime]||Parse about any English textual datetime description into a Unix timestamp||int strtotime(string)
|-
|[http://www.php.net/manual/en/function.strtoupper.php strtoupper]||Make a string uppercase||string strtoupper(string)
|-
|[http://www.php.net/manual/en/function.substr.php substr]||Return part of an unicode string||string substr(string, start <nowiki>[</nowiki>, length])
|-
|sum||Calculate the sum of values in an array||number sum(arg1, arg2, ... argN)
|-
|sumifop||Sum the values of answered questions in the list which pass the criteria (arg op value)||number sumifop(op, value, arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.tan.php tan]||Tangent||number tan(arg)
|-
|[http://www.php.net/manual/en/function.time.php time]||Return current UNIX timestamp||number time()
|-
|[http://www.php.net/manual/en/function.trim.php trim]||Strip whitespace (or other characters) from the beginning and end of a string||string trim(string <nowiki>[</nowiki>, charlist])
|-
|[http://www.php.net/manual/en/function.ucwords.php ucwords]||Uppercase the first character of each word in a string||string ucwords(string)
|-
|unique||Returns true if all non-empty responses are unique||boolean unique(arg1, ..., argN)
|}
Funktion Bedeutung Syntax
abs Absoluter Wert number abs(number)
acos Arkuskosinus number acos(number)
die Funktion addslashes Quote string with slashes string addslashes(string)
asin Arkussinus number asin(number)
atan Arkustangens number atan(number)
atan2 Arkustangens zweier Variablen number atan2(number, number)
ceil Aufrunden number ceil(number)
checkdate Gibt true(1) zurück, wenn es ein nach dem Gregorianischen Kalender gültiges Datum ist bool checkdate(month,day,year)
cos Kosinus number cos(number)
date Formatiere eine lokales Datum/Zeit string date(format [, timestamp=time()])
exp Berechnet den Exponenten von e number exp(number)
floor Abrunden number floor(number)
gmdate Ein GMT Datum/Zeit formatieren string gmdate(format [, timestamp=time()])
html_entity_decode Konvertiert alle HTML Zeichen in geeignete Zeichen (immer mit ENT_QUOTES und UTF-8) string html_entity_decode(string)
htmlentities Wandelt alle geeigneten Zeichen in entsprechende HTML-Zeichen (immer mit ENT_QUOTES und UTF-8) string htmlentities(string)
expr_mgr_htmlspecialchars Konvertiere Sonderzeichen in HTML-Zeichen (immer mit ENT_QUOTES und UTF-8) string htmlspecialchars(string)
expr_mgr_htmlspecialchars_decode Konvertiere HTML-Sonderzeichen zurück in Zeichen (immer mit ENT_QUOTES und UTF-8) string htmlspecialchars_decode(string)
idate Formatiere Zeit / Datum als ganze Zahl string idate(string [, timestamp=time()])
if Excel-Style if(test,result_if_true,result_if_false) if(test,result_if_true,result_if_false)
implode Verbindet Array-Elemente mit einem String string implode(glue,arg1,arg2,...,argN)
intval Bekomm den ganzzahligen Wert einer Variablen int intval(number [, base=10])
is_bool Prüft ob eine Variable ein Boolean ist bool is_bool(var)
is_empty Bestimmen Sie, ob eine Variable als leer betrachtet wird bool is_empty(var)
is_float Prüft ob die Variable ein Float ist bool is_float(var)
is_int Prüft ob die Variable ein Integer ist bool is_int(var)
is_nan Prüft ob die Variable eine Nummer ist bool is_nan(var)
is_null Prüft ob eine Variable NULL ist bool is_null(var)
is_numeric Prüft ob eine Variable eine Zahl oder ein numerischer String ist bool is_numeric(var)
is_string Prüft ob die Variable ein String ist bool is_string(var)
list Gibt eine komma-seperierte List der Werte zurück string list(arg1, arg2, ... argN)
log Natürlicher Logarithmus number log(number)
ltrim Entfernt Leerzeichen (oder andere Zeichen) vom Anfang eines Strings string ltrim(string [, charlist])
max Findet den höchsten Wert number max(arg1, arg2, ... argN)
min Findet den niedrigsten Wert number min(arg1, arg2, ... argN)
mktime UNIX-Timestamp/Zeitstempel für ein Datum (jedes der 6 Argumente ist optional) number mktime([hour [, minute [, second [, month [, day [, year ]]]]]])
nl2br Fügt HTML-Zeilenumbrüche vor allen Zeilenumbrüchen eines Strings string nl2br(string)
number_format Formatiert eine Zahl mit Tausender-Gruppierung string number_format(number)
pi Wert von pi number pi()
pow Exponentialausdruck number pow(base, exp)
quoted_printable_decode Konvertiert einen quoted-printable String in einen 8-Bit-String string quoted_printable_decode(string)
quoted_printable_encode Konvertiert einem 8-Bit-String in einen quoted-printable String string quoted_printable_encode(string)
quotemeta Zitat Metazeichen string quotemeta(string)
rand Generiere eine Zufallszahl int rand() OR int rand(min, max)
round Rundet eine Zahl auf einer optionalen Genauigkeit number round(val [, precision])
rtrim Entfernt Leerzeichen (oder andere Zeichen) vom Ende eines Strings string rtrim(string [, charlist])
sin Sinus number sin(arg)
sprintf Gibt einen formatierten String zurück string sprintf(format, arg1, arg2, ... argN)
sqrt Quadratwurzel number sqrt(arg)
stddev Berechne die Sample-Standardabweichung für die Liste der Nummern number stddev(arg1, arg2, ... argN)
str_pad Fülle einen String auf eine bestimmte Länge mit einem anderen String string str_pad(input, pad_length [, pad_string])
str_repeat Wiederhole einen String string str_repeat(input, multiplier)
str_replace Ersetzen Sie alle Vorkommen des Suchstrings mit dem Ersatz-String string str_replace(search, replace, subject)
strcasecmp Binärsichere Groß-und Kleinschreibungs String-Vergleich int strcasecmp(str1, str2)
strcmp Binärsicherer String-Vergleich int strcmp(str1, str2)
strip_tags Entfernt HTML-und PHP-Tags aus einem String string strip_tags(str, allowable_tags)
stripos Findet das erste Vorkommen eines  Case-Insensitiven Strings int stripos(haystack, needle [, offset=0])
stripslashes Entfernt die Anführungszeichen einer Zeichenfolge in Anführungszeichen string stripslashes(string)
stristr Case-Insensitiven strstr string stristr(haystack, needle [, before_needle=false])
strlen String-Länge int strlen(string)
strpos Findet das erste Vorkommen eines Strings int strpos(haystack, needle [ offset=0])
strrev Umkehren einer Zeichenfolge string strrev(string)
strstr Findet das erste Vorkommen eines Strings string strstr(haystack, needle)
strtolower Setzt einen String in Kleinbuchstaben string strtolower(string)
strtoupper Setzt einen String in Großbuchstaben string strtoupper(string)
substr Gibt einen Teil eines Strings zurück string substr(string, start [, length])
sum Berechne die Summe der Werte in einem Array number sum(arg1, arg2, ... argN)
tan Tangens number tan(arg)
time Liefert die aktuelle UNIX-Timestamp number time()
trim Entfernt Leerzeichen (oder andere Zeichen) vom Anfang und Ende eines Strings string trim(string [, charlist])
ucwords Großbuchstaben den ersten Buchstaben jedes Wortes in einem String string ucwords(string)