All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Static Protected Member Functions
ZurmoMessageSource Class Reference
Inheritance diagram for ZurmoMessageSource:

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:
Generated on Sun May 31 2020 07:11:10