modules/Studio/wizards/RenameModules.php

Show: inherited
Table of Contents

\RenameModules

Package:

Properties

Propertyprivatearray  $changedModules= ''

An array containing the modules which should be renamed.

Details
Type
array
Propertyprivate  $labelMap= 'array( 'Accounts' => array( array('name' => 'LBL_CAMPAIGNS', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CAMPAIGN_ID', 'type' => 'singular', 'source' => 'Campaigns'), array('name' => 'LBL_PARENT_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_PROSPECT_LIST', 'type' => 'singular', 'source' => 'Prospects'), ), 'Bugs' => array( array('name' => 'LBL_LIST_FORM_TITLE', 'type' => 'singular', 'source' => 'Bugs'), array('name' => 'LBL_LIST_MY_BUGS', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_SEARCH_FORM_TITLE', 'type' => 'singular', 'source' => 'Bugs'), array('name' => 'LNK_BUG_LIST', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LNK_BUG_REPORTS', 'type' => 'singular', 'source' => 'Bugs'), array('name' => 'LNK_IMPORT_BUGS', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LNK_NEW_BUG', 'type' => 'singular', 'source' => 'Bugs'), ), 'Calls' => array( array('name' => 'LBL_LIST_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), ), 'Campaigns' => array( array('name' => 'LBL_ACCOUNTS', 'type' => 'plural', 'source' => 'Accounts'), array('name' => 'LBL_CONTACTS', 'type' => 'plural', 'source' => 'Contacts'), array('name' => 'LBL_LIST_CAMPAIGN_NAME', 'type' => 'singular', 'source' => 'Campaigns'), array('name' => 'LBL_LOG_ENTRIES_CONTACT_TITLE', 'type' => 'plural', 'source' => 'Contacts'), array('name' => 'LBL_LOG_ENTRIES_LEAD_TITLE', 'type' => 'plural', 'source' => 'Leads'), array('name' => 'LBL_OPPORTUNITIES', 'type' => 'plural', 'source' => 'Opportunities'), array('name' => 'LBL_PROSPECT_LIST_SUBPANEL_TITLE', 'type' => 'singular', 'source' => 'Targets'), ), 'Cases' => array( array('name' => 'LBL_BUGS_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), ), 'Contacts' => array( array('name' => 'LBL_BUGS_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_LEAD_SOURCE', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_OPPORTUNITIES', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_OPPORTUNITY_ROLE', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_OPPORTUNITY_ROLE_ID', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_PRODUCTS_TITLE', 'type' => 'plural', 'source' => 'Products'), array('name' => 'LBL_PROSPECT_LIST', 'type' => 'singular', 'source' => 'Prospects'), ), 'Contracts' => array( array('name' => 'LBL_CONTRACT_NAME', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_CONTRACT_TERM', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_DOCUMENTS', 'type' => 'plural', 'source' => 'Documents'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_LIST_CONTRACT_NAME', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_OPPORTUNITY', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_SEARCH_FORM_TITLE', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_TOTAL_CONTRACT_VALUE', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_TOTAL_CONTRACT_VALUE_USDOLLAR', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LNK_NEW_CONTRACT', 'type' => 'singular', 'source' => 'Contracts'), ), 'Documents' => array( array('name' => 'LBL_BUGS_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_CONTRACT_NAME', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_CONTRACT_STATUS', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_DET_RELATED_DOCUMENT_VERSION', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DET_TEMPLATE_TYPE', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DOC_ID', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DOC_NAME', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DOC_REV_HEADER', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DOC_URL', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_NAME', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_TEMPLATE_TYPE', 'type' => 'singular', 'source' => 'Documents'), ), 'KBDocuments' => array( array('name' => 'LBL_CASES', 'type' => 'plural', 'source' => 'Cases'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_CONTRACT_NAME', 'type' => 'plural', 'source' => 'Contracts'), ), 'Leads' => array( array('name' => 'LNK_SELECT_###MODULE_PLURAL###', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LNK_SELECT_###MODULE_SINGULAR###', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_ACCOUNT_DESCRIPTION', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CAMPAIGN_ID', 'type' => 'singular', 'source' => 'Campaigns'), array('name' => 'LBL_CAMPAIGN_LEAD', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CONTACT_ID', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LEAD_SOURCE', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_LEAD_SOURCE_DESCRIPTION', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_OPPORTUNITY_AMOUNT', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_OPPORTUNITY_ID', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_OPPORTUNITY_NAME', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_CONVERTED_ACCOUNT', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LNK_SELECT_ACCOUNTS', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LNK_NEW_ACCOUNT', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CONVERTED_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONVERTED_OPP', 'type' => 'singular', 'source' => 'Opportunities'), ), 'Meetings' => array( array('name' => 'LBL_LIST_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LIST_JOIN_MEETING', 'type' => 'singular', 'source' => 'Meetings'), array('name' => 'LBL_PASSWORD', 'type' => 'singular', 'source' => 'Meetings'), array('name' => 'LBL_TYPE', 'type' => 'singular', 'source' => 'Meetings'), array('name' => 'LBL_URL', 'type' => 'singular', 'source' => 'Meetings'), ), 'Notes' => array( array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CASE_ID', 'type' => 'singular', 'source' => 'Cases'), array('name' => 'LBL_CONTACT_ID', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LIST_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LIST_CONTACT_NAME', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_NOTE_STATUS', 'type' => 'singular', 'source' => 'Notes'), array('name' => 'LBL_OPPORTUNITY_ID', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_PRODUCT_ID', 'type' => 'singular', 'source' => 'Products'), array('name' => 'LBL_QUOTE_ID', 'type' => 'singular', 'source' => 'Quotes'), ), 'Opportunities' => array( array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_AMOUNT', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_CAMPAIGN_OPPORTUNITY', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_LEAD_SOURCE', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_OPPORTUNITY_NAME', 'type' => 'singular', 'source' => 'Opportunities'), ), 'ProductTemplates' => array( array('name' => 'LBL_PRODUCT_ID', 'type' => 'singular', 'source' => 'Products'), ), 'Products' => array( array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONTACT_ID', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contacts'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_LIST_NAME', 'type' => 'singular', 'source' => 'Products'), array('name' => 'LBL_NAME', 'type' => 'singular', 'source' => 'Products'), array('name' => 'LBL_QUOTE_ID', 'type' => 'singular', 'source' => 'Quotes'), array('name' => 'LBL_RELATED_PRODUCTS', 'type' => 'plural', 'source' => 'Products'), array('name' => 'LBL_URL', 'type' => 'singular', 'source' => 'Products'), ), 'ProjectTask' => array( array('name' => 'LBL_PARENT_NAME', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_PROJECT_ID', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_PROJECT_NAME', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_PROJECT_TASK_ID', 'type' => 'singular', 'source' => 'Projects'), ), 'Project' => array( array('name' => 'LBL_BUGS_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_CONTACTS_RESOURCE', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LIST_FORM_TITLE', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_OPPORTUNITIES', 'type' => 'plural', 'source' => 'Opportunities'), array('name' => 'LBL_PROJECT_HOLIDAYS_TITLE', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_PROJECT_TASKS_SUBPANEL_TITLE', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_SEARCH_FORM_TITLE', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LNK_NEW_PROJECT', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LNK_PROJECT_LIST', 'type' => 'singular', 'source' => 'Projects'), ), 'Quotes' => array( array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_QUOTE_NUM', 'type' => 'singular', 'source' => 'Quotes'), ), 'Targets' => array( array('name' => 'LBL_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CAMPAIGN_ID', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE', 'type' => 'singular', 'source' => 'Campaigns'), array('name' => 'LBL_PROSPECT_LIST', 'type' => 'singular', 'source' => 'Prospects'), ), 'Tasks' => array( array('name' => 'LBL_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONTACT_ID', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONTACT_PHONE', 'type' => 'singular', 'source' => 'Contacts'), ), )'
static

An array containing the modules and their labels to be changed when module is renamed.

Default valuearray( 'Accounts' => array( array('name' => 'LBL_CAMPAIGNS', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CAMPAIGN_ID', 'type' => 'singular', 'source' => 'Campaigns'), array('name' => 'LBL_PARENT_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_PROSPECT_LIST', 'type' => 'singular', 'source' => 'Prospects'), ), 'Bugs' => array( array('name' => 'LBL_LIST_FORM_TITLE', 'type' => 'singular', 'source' => 'Bugs'), array('name' => 'LBL_LIST_MY_BUGS', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_SEARCH_FORM_TITLE', 'type' => 'singular', 'source' => 'Bugs'), array('name' => 'LNK_BUG_LIST', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LNK_BUG_REPORTS', 'type' => 'singular', 'source' => 'Bugs'), array('name' => 'LNK_IMPORT_BUGS', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LNK_NEW_BUG', 'type' => 'singular', 'source' => 'Bugs'), ), 'Calls' => array( array('name' => 'LBL_LIST_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), ), 'Campaigns' => array( array('name' => 'LBL_ACCOUNTS', 'type' => 'plural', 'source' => 'Accounts'), array('name' => 'LBL_CONTACTS', 'type' => 'plural', 'source' => 'Contacts'), array('name' => 'LBL_LIST_CAMPAIGN_NAME', 'type' => 'singular', 'source' => 'Campaigns'), array('name' => 'LBL_LOG_ENTRIES_CONTACT_TITLE', 'type' => 'plural', 'source' => 'Contacts'), array('name' => 'LBL_LOG_ENTRIES_LEAD_TITLE', 'type' => 'plural', 'source' => 'Leads'), array('name' => 'LBL_OPPORTUNITIES', 'type' => 'plural', 'source' => 'Opportunities'), array('name' => 'LBL_PROSPECT_LIST_SUBPANEL_TITLE', 'type' => 'singular', 'source' => 'Targets'), ), 'Cases' => array( array('name' => 'LBL_BUGS_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), ), 'Contacts' => array( array('name' => 'LBL_BUGS_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_LEAD_SOURCE', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_OPPORTUNITIES', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_OPPORTUNITY_ROLE', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_OPPORTUNITY_ROLE_ID', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_PRODUCTS_TITLE', 'type' => 'plural', 'source' => 'Products'), array('name' => 'LBL_PROSPECT_LIST', 'type' => 'singular', 'source' => 'Prospects'), ), 'Contracts' => array( array('name' => 'LBL_CONTRACT_NAME', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_CONTRACT_TERM', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_DOCUMENTS', 'type' => 'plural', 'source' => 'Documents'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_LIST_CONTRACT_NAME', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_OPPORTUNITY', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_SEARCH_FORM_TITLE', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_TOTAL_CONTRACT_VALUE', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_TOTAL_CONTRACT_VALUE_USDOLLAR', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LNK_NEW_CONTRACT', 'type' => 'singular', 'source' => 'Contracts'), ), 'Documents' => array( array('name' => 'LBL_BUGS_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_CONTRACT_NAME', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_CONTRACT_STATUS', 'type' => 'singular', 'source' => 'Contracts'), array('name' => 'LBL_DET_RELATED_DOCUMENT_VERSION', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DET_TEMPLATE_TYPE', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DOC_ID', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DOC_NAME', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DOC_REV_HEADER', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_DOC_URL', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_NAME', 'type' => 'singular', 'source' => 'Documents'), array('name' => 'LBL_TEMPLATE_TYPE', 'type' => 'singular', 'source' => 'Documents'), ), 'KBDocuments' => array( array('name' => 'LBL_CASES', 'type' => 'plural', 'source' => 'Cases'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_CONTRACT_NAME', 'type' => 'plural', 'source' => 'Contracts'), ), 'Leads' => array( array('name' => 'LNK_SELECT_###MODULE_PLURAL###', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LNK_SELECT_###MODULE_SINGULAR###', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_ACCOUNT_DESCRIPTION', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CAMPAIGN_ID', 'type' => 'singular', 'source' => 'Campaigns'), array('name' => 'LBL_CAMPAIGN_LEAD', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CONTACT_ID', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LEAD_SOURCE', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_LEAD_SOURCE_DESCRIPTION', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_OPPORTUNITY_AMOUNT', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_OPPORTUNITY_ID', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_OPPORTUNITY_NAME', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_CONVERTED_ACCOUNT', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LNK_SELECT_ACCOUNTS', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LNK_NEW_ACCOUNT', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CONVERTED_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONVERTED_OPP', 'type' => 'singular', 'source' => 'Opportunities'), ), 'Meetings' => array( array('name' => 'LBL_LIST_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LIST_JOIN_MEETING', 'type' => 'singular', 'source' => 'Meetings'), array('name' => 'LBL_PASSWORD', 'type' => 'singular', 'source' => 'Meetings'), array('name' => 'LBL_TYPE', 'type' => 'singular', 'source' => 'Meetings'), array('name' => 'LBL_URL', 'type' => 'singular', 'source' => 'Meetings'), ), 'Notes' => array( array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CASE_ID', 'type' => 'singular', 'source' => 'Cases'), array('name' => 'LBL_CONTACT_ID', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LIST_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LIST_CONTACT_NAME', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_NOTE_STATUS', 'type' => 'singular', 'source' => 'Notes'), array('name' => 'LBL_OPPORTUNITY_ID', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_PRODUCT_ID', 'type' => 'singular', 'source' => 'Products'), array('name' => 'LBL_QUOTE_ID', 'type' => 'singular', 'source' => 'Quotes'), ), 'Opportunities' => array( array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_AMOUNT', 'type' => 'singular', 'source' => 'Opportunities'), array('name' => 'LBL_CAMPAIGN_OPPORTUNITY', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_LEAD_SOURCE', 'type' => 'singular', 'source' => 'Leads'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_OPPORTUNITY_NAME', 'type' => 'singular', 'source' => 'Opportunities'), ), 'ProductTemplates' => array( array('name' => 'LBL_PRODUCT_ID', 'type' => 'singular', 'source' => 'Products'), ), 'Products' => array( array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONTACT_ID', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contacts'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_LIST_NAME', 'type' => 'singular', 'source' => 'Products'), array('name' => 'LBL_NAME', 'type' => 'singular', 'source' => 'Products'), array('name' => 'LBL_QUOTE_ID', 'type' => 'singular', 'source' => 'Quotes'), array('name' => 'LBL_RELATED_PRODUCTS', 'type' => 'plural', 'source' => 'Products'), array('name' => 'LBL_URL', 'type' => 'singular', 'source' => 'Products'), ), 'ProjectTask' => array( array('name' => 'LBL_PARENT_NAME', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_PROJECT_ID', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_PROJECT_NAME', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_PROJECT_TASK_ID', 'type' => 'singular', 'source' => 'Projects'), ), 'Project' => array( array('name' => 'LBL_BUGS_SUBPANEL_TITLE', 'type' => 'plural', 'source' => 'Bugs'), array('name' => 'LBL_CONTACTS_RESOURCE', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_LIST_FORM_TITLE', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_OPPORTUNITIES', 'type' => 'plural', 'source' => 'Opportunities'), array('name' => 'LBL_PROJECT_HOLIDAYS_TITLE', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_PROJECT_TASKS_SUBPANEL_TITLE', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LBL_SEARCH_FORM_TITLE', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LNK_NEW_PROJECT', 'type' => 'singular', 'source' => 'Projects'), array('name' => 'LNK_PROJECT_LIST', 'type' => 'singular', 'source' => 'Projects'), ), 'Quotes' => array( array('name' => 'LBL_ACCOUNT_ID', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CONTRACTS', 'type' => 'plural', 'source' => 'Contracts'), array('name' => 'LBL_LIST_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_QUOTE_NUM', 'type' => 'singular', 'source' => 'Quotes'), ), 'Targets' => array( array('name' => 'LBL_ACCOUNT_NAME', 'type' => 'singular', 'source' => 'Accounts'), array('name' => 'LBL_CAMPAIGN_ID', 'type' => 'plural', 'source' => 'Campaigns'), array('name' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE', 'type' => 'singular', 'source' => 'Campaigns'), array('name' => 'LBL_PROSPECT_LIST', 'type' => 'singular', 'source' => 'Prospects'), ), 'Tasks' => array( array('name' => 'LBL_CONTACT', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONTACT_ID', 'type' => 'singular', 'source' => 'Contacts'), array('name' => 'LBL_CONTACT_PHONE', 'type' => 'singular', 'source' => 'Contacts'), ), )Details
Type
n/a
Propertyprivatearray  $renamedModules= 'array()'

An array containing the modules which have had their module strings modified as part of the renaming process.

Default valuearray()Details
Type
array
Propertyprivatestring  $selectedLanguage= ''

Selected language user is renaming for (eg. en_us).

Details
Type
string

Methods

methodprivatechangeAllModuleModStrings( ) : \RenameModules

Rename all module strings within the application.

Returns
Type Description
\RenameModules
methodprivatechangeAppStringEntries( ) : \RenameModules

Save changes to the module names to the app string entries for both the moduleList and moduleListSingular entries.

Returns
Type Description
\RenameModules
methodprivatechangeCertainModuleModStrings( string $moduleName,  $replacementLabels, string $targetModule, array $labelKeysToReplace ) : void

For a particular module, rename any relevant module strings that need to be replaced.

Parameters
Name Type Description
$moduleName string

The name of the module to be renamed.

$replacementLabels
$targetModule string

The name of the module that owns the labels to be changed.

$labelKeysToReplace array

The labels to be changed.

methodprivatechangeModuleDashletStrings(  $moduleName,  $replacementLabels,  $dashletsFiles ) : void

Parameters
Name Type Description
$moduleName
$replacementLabels
$dashletsFiles
methodprivatechangeModuleModStrings( string $moduleName,  $replacementLabels ) : void

For a particular module, rename any relevant module strings that need to be replaced.

Parameters
Name Type Description
$moduleName string

The name of the module to be renamed.

$replacementLabels
methodprivateclearLanguageCaches( ) : void

Clear all related language cache files.

methodprivatecreateModuleListSingularPackage( array $params, array $changedModules ) :

Create an array entry that can be passed to the DropDownHelper:saveDropDown function so we can re-utilize the save logic.

Parameters
Name Type Description
$params array
$changedModules array
methodprotecteddisplay( ) : void

Main display function.

methodprivateformatModuleLanguageKey( string $unformatedKey, string $replacementStrings ) : string

Format our dynamic keys containing module strings to a valid key depending on the module.

Parameters
Name Type Description
$unformatedKey string
$replacementStrings string
Returns
Type Description
string
methodprivategetChangedModules( ) : array

Determine which modules have been updated and return an array with the module name as the key and the singular/plural entries as the value.

Returns
Type Description
array
methodprivategetModuleSingularKey( string $moduleName ) : string

Return the 'singular' name of a module (Eg. Opportunity for Opportunities) given a moduleName which is a key in the app string moduleList array. If no entry is found, simply return the moduleName as this is consistant with modules built by moduleBuilder.

Parameters
Name Type Description
$moduleName string
Returns
Type Description
string The 'singular' name of a module.
methodpublicgetRenamedModules( ) : array

Return an array of the modules whos mod_strings have been modified.

Returns
Type Description
array
methodprivategetSubpanelDefs( \SugarBean $bean ) : array

Retrieve the subpanel definitions for a given SugarBean object. Unforunately we can't reuse any of the SubPanelDefinion.php functions.

Parameters
Name Type Description
$bean \SugarBean
Returns
Type Description
array The subpanel definitions.
methodpublicprocess( string $options = '' ) : void

Parameters
Name Type Description
$options string
methodprivaterenameAllDashlets( ) : \RenameModules

Rename all module strings within the application for dashlets.

Returns
Type Description
\RenameModules
methodprivaterenameAllRelatedLinks( ) : \RenameModules

Rename all related linked within the application

Returns
Type Description
\RenameModules
methodprivaterenameAllSubpanels( ) : \RenameModules

Rename all subpanels within the application.

Returns
Type Description
\RenameModules
methodprivaterenameCertainModuleModStrings( string $targetModule, array $labelKeysToReplace ) : \RenameModules

Rename all module strings within the leads module.

Parameters
Name Type Description
$targetModule string

The name of the module that owns the labels to be changed.

$labelKeysToReplace array

The labels to be changed.

Returns
Type Description
\RenameModules
methodprivaterenameModuleRelatedLinks( string $moduleName, string $moduleClass ) : void

Rename the related links within a module.

Parameters
Name Type Description
$moduleName string

The module to be renamed

$moduleClass string

The class name of the module to be renamed

methodprivaterenameModuleSubpanel( string $moduleName, string $beanName ) : void

Rename subpanels for a particular module.

Parameters
Name Type Description
$moduleName string

The name of the module to be renamed

$beanName string

The name of the SugarBean to be renamed.

methodprivatereplaceSingleLabel( string $oldStringValue, string $replacementLabels, array $replacementMetaData,  $modifier = '' ) : string

Replace a label with a new value based on metadata which specifies the label as either singular or plural.

Parameters
Name Type Description
$oldStringValue string
$replacementLabels string
$replacementMetaData array
$modifier
Returns
Type Description
string
methodpublicsave(  $redirect = TRUE ) : void

Save function responsible executing all sub-save functions required to rename a module.

Parameters
Name Type Description
$redirect
Documentation was generated by DocBlox 0.18.1.