mpfserver Manual
mpfserver
Token structure
Variables
Directives
mpf:eval
mpf:exec
mpf:function
mpf:ignore
mpf:loop
mpf:noparse
mpf:switch
mpf:redirect
mpf:toggle
Date/String operations
File operations
XML operations
Database/Communication
Use Cases
Software Licence
Search...
mpfserver
/
Directives
mpf:function | custom functions
mpf:function
custom functions will be evaluated by using the call-token
functions may be called recursively (e.g. to build hierarchical trees)
{
mpf:
function
}
... {
/
mpf:
function
}
=
[myname]
name of function
{
mpf:
call
}
[myname]
name of function to call
||
[myparameter]=[mydata]
you may pass as many parameters as you like, they just must have distinct names
||
convert=[lowercase|uppercase|upperfirst]
convert value string
||
encode=[url|html|html-chars|crypt]
encode value to another format
||
trim=[left|right|both]
remove whitespaces from value
||
convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
||
parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
||
encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
||
trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
||
[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).