• Introduction
• Site Structure
• Page Assembly
• URL Handlers
•
• Authentication
• Database
• Error Handling
• Validation
• Config Data
• Logging
• EDP
• User Interface
• Formatters
• Images
• API Utilities
• Developer Tools
Tags:
Types:
fwpCnfg_loadMVStrings
fwp_appStrings
fwp_pageStrings
fwp_errorManager
fwp_validator
Configs:
strings_appStrings_{language}
strings_appErrors_{language}
strings_appValErrors_{language}
As of version 5.1, the PageBlocks framework includes tools to deliver multi-view strings (MVS). A multi-view string is a string with a single programmatic label that can assume multiple variations of content to adapt to specific interface views. This enables an application interface to auto-adapt to multiple languages and multiple browser media such as desktop, handheld, aural etc. without having to program individual versions.
Internally, the PageBlocks framework now uses a multi-view strings system for application error messages, validation error messages, and application interface strings. Using the built-in string controllers, the application can override default strings and add application-specific strings.
In the application code, a line like this:
$fw_appStrings->siteWelcome;
can be used to ultimately display a message in various languages, in a shortened version for PDAs or aural browsers, and even in variations specific to individual user types or customers of a hosted application.
The framework uses three page mode properties to determine the default string parameters: $fw_client->'language', $fw_client->'media', and $fw_client->'variant'. These properties can be manipulated by user selection, user profile, programmatic control, etc.
The MVS system isn't a single API, but rather a set of features available across other APIs of the framework including the strings and error APIs. The major components of the MVS system are listed on the left.
© 2002-2012, pageblocks.org