MessageUtil Class Reference

Static Public Member Functions

static getMessages ($language, $moduleName=null, $category=null)
static getLanguagesMessages ($basePath, $moduleName, $language)
static checkLanguagesMessageFilesContainAllTheSameValidMessages ($messagesDirectoryName, $moduleName)
static checkFirstLanguagesMessageFilesMessagesReallyExistInSource ($messagesDirectoryName, $moduleName)
static checkFirstLanguagesMessageFilesContainAllExistingMessages ($messagesDirectoryName, $moduleName, $basePath)
static checkForYiiTCallsThatAreNotHowThisScriptExpectsThemToBe ($messagesDirectoryName, $moduleName)
static findFileNameToCategoryToMessage ($path, $forcedCategory= '')
static getSecurableModuleRightsPoliciesAndAuditEventLabels ($moduleClassName)
static getModuleMenuLabelNamesByModuleName ($moduleClassName)
static findFileNameToUnexpectedlyFormattedYiiT ($path)
static convertFileNameToCategoryToMessageToCategoryToMessageToFileName (array $fileNamesToCategoriesToMessages)
static convertFileNameToCategoryToMessageToMessageAndCategories (array $fileNamesToCategoriesToMessages)
static checkLanguagesMessageFilesFormat (array $fileNames, $messagesDirectoryName)
static diffLanguagesMessageFiles (array $fileNames1, array $fileNames2, $messagesDirectoryName, $moduleName)
static getLanguages ($messagesDirectoryName)
static lowercaseCompare ($a, $b)
static compareArrays (array $array1, array $array2)

Data Fields

const GOOD_YII_T = '/[Yii|Zurmo]::t\([\'"](.*?)[\'"], *[\'"]((.*?)|(.*\s.\s*[\'"].*))[\'"][,)]/'
const GOOD_YII_T_WITH_LINEBREAK = '/[Yii|Zurmo]::t\([\'"](.*?)[\'"], *[\'"](.*?)[\'"]\s[.]/'
const ALL_YII_TS = '/[Yii|Zurmo]::t\\([\'"][a-zA-Z]+[\'"], [\'"].*/'

Detailed Description

Helper functionality for aggregating the messages from the framework and all installed modules.

Definition at line 41 of file MessageUtil.php.


Member Function Documentation

static getMessages ( language,
moduleName = null,
category = null 
) [static]

Returns the messages made by aggregating in order the messages found int the framework, then in each of the dependent modules up to then including the module for the currently controller.

Definition at line 55 of file MessageUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Aug 17 07:10:27 2017