void setCaption(
[string
$caption = ' '], [array
$args = array()])
|
|
Display a caption on action in progress.
The idea of a simple utility function for replacing variables with values in an message template, come from sprintfErrorMessage function of Error_Raise package by Greg Beaver.
This simple str_replace-based function can be used to have an order-independent sprintf, so messages can be passed in with different grammar ordering, or other possibilities without changing the source code.
Variables should simply be surrounded by % as in %varname%
Tags:
Parameters: