DefaultText Decorator Example
When the fetched string is empty, it replaces it with the 4th parameter
of the
get()
method, i.e. $defaultText.
When
getPage()
is called, all the empty strings in the page are replaced by their stringID value.
$tr = new Translation2($driver, $dbinfo, $params);
$tr =& $tr->getDecorator('DefaultText'); |