dmBridge PHP API
DMLocalizedString Class Reference

Static class providing access to localized strings. More...

Static Public Member Functions


Detailed Description

Static class providing access to localized strings.

Built-in localized strings are named "strings.code.txt" where "code" is an ISO 639-1 language code. Strings are returned according to the "dmbridge.language" setting in config.ini. If a strings file matching the "dmbridge.language" setting cannot be found, the English strings file will be used.

Author:
Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php

Definition at line 19 of file DMLocalizedString.php.


Member Function Documentation

array Array of string arrays lazy loaded by DMLocalizedString::getString ( key,
strings_folder = null 
) [static]

keyed by md5 of the strings file path

Parameters:
stringkey Key of the string to retrieve
stringstrings_folder Absolute pathname of an alternate folder in which to look for strings files
Returns:
string

Definition at line 31 of file DMLocalizedString.php.

Referenced by DMRating::__construct(), DMNoSuchMethodException::__construct(), DMNoSuchFieldException::__construct(), DMModuleActivationException::__construct(), DMInvalidRouteException::__construct(), DMInvalidEmailException::__construct(), DMFileNotFoundException::__construct(), DMClassNotFoundException::__construct(), DMTEObjectController::comments(), DMTEObjectController::compoundSearch(), DMConfigXML::deleteTemplateSet(), DMCollectionFactory::getCollection(), DMMySQLDataStore::getConnection(), DMConfigXML::getDomDocument(), DMControlPanelTemplateHelper::getHtmlNews(), DMCollection::getName(), DMObjectFactory::getObject(), DMAbstractController::handleForm(), UNLVSpatialController::index(), DMTEObjectController::index(), DMObjectCommentForm::init(), DMCPEditCollectionForm::init(), DMPDODataStore::loadComment(), DMPDODataStore::loadTag(), DMConfigXML::loadTemplateSet(), DMCPAdminController::login(), DMTEUserController::logout(), DMCPAdminController::logout(), DMCPAdminController::preFlightCheck(), DMConfigXML::save(), DMConfigXML::saveTemplateSet(), DMMailer::sendNotificationOfNewComment(), DMLogger::setClientIP(), DMAbstractQuery::setCollections(), DMDataStoreFactory::setDataStore(), DMCollection::setDateSearchRange(), DMTemplateSet::setDefaultCollection(), DMRating::setMax(), DMQueryPredicate::setMode(), DMModuleManager::setModuleEnabled(), DMComment::setName(), DMObjectQuery::setRatingRange(), DMURI::setString(), DMInternalURI::setString(), DMTag::setValue(), DMRating::setValue(), DMAbstractSocialEntity::setValue(), DMInput::validate(), DMAbstractForm::validate(), UNLVSpatialController::view(), and DMTEObjectController::view().


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables