webmcp
diff framework/env/request/get_perm_params.lua @ 0:9fdfb27f8e67
Version 1.0.0
author | jbe/bsw |
---|---|
date | Sun Oct 25 12:00:00 2009 +0100 (2009-10-25) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/framework/env/request/get_perm_params.lua Sun Oct 25 12:00:00 2009 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +--[[-- 1.5 +perm_params = -- table containing permanent parameters 1.6 +request.get_perm_params() 1.7 + 1.8 +This function returns a table containing all permanent paremeters set with request.set_perm_param(...). Modifications of the returned table have no side effects. 1.9 + 1.10 +--]]-- 1.11 + 1.12 +function request.get_perm_params() 1.13 + -- NOTICE: it's important to return a copy here 1.14 + return table.new(request._perm_params) 1.15 +end