mpfserver Manual
 
 
 mpf:set | set your own (page-/session-) variables
mpf:set

define your own (page-/session-) variables or overwrite system variable values

attrib name "env" is reserved for overwriting environment variables (if allowed)

{mpf:set  }
=[myvar]
name of variable to store data into
||[data|import|add]=[value]
data=[value] store given string in variable 
import=[value] import string from given filename 
add=[value] add value to existing number 
||autokey
you may use this parameter if you want to setup a list of items with automatic generated numeric key.
||unset
remove variable instead of setting it. this parameter will deactivate most other parameters (including conditions) - use "unset"-token to remove a variable depending on a condition.
||append
append string if variable already exists
||explode=[delimiter]
use this parameter to create an array out of a string that is divided by "delimiter" (array keys start with 1)
|| convert=[lowercase|uppercase|upperfirst]
convert (imported) value string
|| encode=[url|html|html-chars|crypt]
encode (imported) value to another format
|| trim=[left|right|both]
remove whitespaces from (imported) value
|| [opr][condition]
condition may be used to check (imported) value before storing it in a variable

{mpf:set  } ... {/mpf:set  }
=[myvar]
name of variable to store data into
||add=[value]
add=[value] add value to existing number within token 
||autokey
you may use this parameter if you want to setup a list of items with automatic generated numeric key.
||unset
remove variable instead of setting it. this parameter will deactivate most other parameters (including conditions) - use "unset"-token to remove a variable depending on a condition.
||append
append string if variable already exists
||explode=[delimiter]
use this parameter to create an array out of a string that is divided by "delimiter" (array keys start with 1)
|| convert_section=[lowercase|uppercase|upperfirst]
convert section data
|| parse_section=[yes|no]
parse section data for mpf-tokens
|| encode_section=[url|html|html-chars|crypt]
encode section data to another format
|| trim_section=[left|right|both]
remove whitespaces from section data
|| [opr][condition]
condition may be used to check value before storing it in a variable
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).