General purpose abstract class that describes an API for retrieving Locale-sensitive messages from underlying resource locations of an unspecified design.
Calls to getMessage with a null PHRUTS_Locale argument are presumed to be requesting a message string in the message resources default behaviour(implemented by the concrete subclass).
Calls to getMessage with an unknown key, or an unknown PHRUTS_Locale will return null if the returnNull property is set to true. Otherwise, a suitable error message will be returned instead.
Located in /util/PHRUTS_MessageResources.php (line 40)
Class | Description |
---|---|
PHRUTS_PropertyMessageResources | Concrete subclass of PHRUTS_MessageResources that reads message keys and corresponding strings from named property resources. |
Logging instance.
The configuration parameter used to initialize this PHRUTS_MessageResources.
The default PHRUTS_Locale for our environment.
The set of previously created formated messages, keyed by the key computed in messageKey method.
Indicate if a null is returned instead of an error message string when an unknown Locale or key is requested.
Construct a new PHRUTS_MessageResources according to the specified parameters.
Format the message pattern by replacing the {0}-{3} parameters with the corresponding args array parameters.
Returns a text message for the specified key and the specified PHRUTS_Locale.
A null string result will be returned by this method if no relevant message resource is found for this key or PHRUTS_Locale, if the returnNull property is set. Otherwise, an appropriate error message will be returned.
This method must be implemented by a concrete subclass.
The configuration parameter used to initialize this PHRUTS_MessageResources.
Returns a text message after parametric replacement of the specified parameter placeholders.
Indicates that a null is returned instead of an error message string if an unknown PHRUTS_Locale or key is requested.
Return true if there is a defined message for the specified key in the specified PHRUTS_Locale.
Compute and return a key to be used in caching information by a PHRUTS_Locale.
NOTE: The locale key for the default PHRUTS_Locale in our environment is a zero length String.
Compute and return a key to be used in caching information by PHRUTS_Locale and message key.
Compute and return a key to be used in caching information by locale key and message key.
Indicates that a null is returned instead of an error message string if an unknown locale or key is requested.
Documentation generated on Sat, 31 May 2008 15:46:20 +0200 by phpDocumentor 1.4.1