1WebCommon.__t_incomingValue(3kKaayyaa)module refeWreebnCcoemmon.__t_incomingValue(3kaya)
2
3
4

NAME

6       WebCommon::__t_incomingValue  -  Returns the first value for the speci‐
7       fied key from user-supplied data
8

SYNOPSIS

10       Builtins::Tainted<String>  __t_incomingValue(   String   key,   WebCom‐
11       mon::DataSource ds )
12

ARGUMENTS

14       key The key to retrieve data for
15
16       ds The source for user-supplied data
17

DESCRIPTION

19       Returns  the first value for the key from the specified data source, or
20       throws a WebCommon.NotIncoming (3kaya) Exception if no such key exists.
21
22
23    // GET /example.cgi?a=1;b=3;b=5;z=;z;z
24    val = incomingData("a",DataGet);
25    // val = "1"
26    val = incomingData("b",DataGet);
27    // val = "3"
28    val = incomingData("c",DataGet);
29    // NotIncoming exception thrown
30    val = incomingData("z",DataGet);
31    // val = ""
32
33       This is generally easier to use than WebCommon.incomingData (3kaya)  if
34       only one value is expected for that key.
35

AUTHORS

37       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
38       (kaya@kayalang.org). For further information see http://kayalang.org/
39

LICENSE

41       The Kaya standard library is free software;  you  can  redistribute  it
42       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
43       License (version 2.1 or any later version) as  published  by  the  Free
44       Software Foundation.
45
47       WebCommon.DataSource (3kaya)
48       WebCommon.incomingData (3kaya)
49       WebCommon.incomingExists (3kaya)
50       WebCommon.incomingKeys (3kaya)
51
52
53
54Kaya                             December 201W0ebCommon.__t_incomingValue(3kaya)
Impressum