ZurmoMessageSource Class Reference

Public Member Functions

 translate ($category, $message, $language=null)

Static Public Member Functions

static clearCache ($category, $languageCode)

Data Fields

const CACHE_KEY_PREFIX = 'ZurmoMessageSource'

Protected Member Functions

 loadMessages ($category, $languageCode)
 loadMessagesFromDb ($category, $languageCode)

Static Protected Member Functions

static getMessageSourceCacheIdentifier ($category, $languageCode)

Detailed Description

Represents a message source that stores translated messages in database.

The ZurmoMessageSource::installSchema() method must be called to create the tables with required indexes

Definition at line 43 of file ZurmoMessageSource.php.


Member Function Documentation

loadMessages ( category,
languageCode 
) [protected]

Override of the parent method because of problems with Yii's default cache

See also:
CDbMessageSource::loadMessages()
Parameters:
string $category
string $languageCode
Returns:
array $messages

Definition at line 75 of file ZurmoMessageSource.php.

loadMessagesFromDb ( category,
languageCode 
) [protected]

Override of the parent method using RedBean.

Parameters:
$category 
$languageCode 
Returns:
array

Definition at line 98 of file ZurmoMessageSource.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Oct 23 07:10:32 2017