modules/Studio/wizards/RenameModules.php
\RenameModules
Properties
array
$changedModules= ''
An array containing the modules which should be renamed.
- Type
- array
$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'),
),
)'
An array containing the modules and their labels to be changed when module is renamed.
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'),
),
)
Details- Type
- n/a
array
$renamedModules= 'array()'
An array containing the modules which have had their module strings modified as part of the renaming process.
array()
Details- Type
- array
Methods
changeAllModuleModStrings(
)
:
\RenameModules
Rename all module strings within the application.
Type | Description |
---|---|
\RenameModules |
changeAppStringEntries(
)
:
\RenameModules
Save changes to the module names to the app string entries for both the moduleList and moduleListSingular entries.
Type | Description |
---|---|
\RenameModules |
changeCertainModuleModStrings(
string $moduleName, $replacementLabels, string $targetModule, array $labelKeysToReplace
)
:
void
For a particular module, rename any relevant module strings that need to be replaced.
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. |
changeModuleDashletStrings(
$moduleName, $replacementLabels, $dashletsFiles
)
:
void
Name | Type | Description |
---|---|---|
$moduleName | ||
$replacementLabels | ||
$dashletsFiles |
changeModuleModStrings(
string $moduleName, $replacementLabels
)
:
void
For a particular module, rename any relevant module strings that need to be replaced.
Name | Type | Description |
---|---|---|
$moduleName | string | The name of the module to be renamed. |
$replacementLabels |
createModuleListSingularPackage(
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.
Name | Type | Description |
---|---|---|
$params | array | |
$changedModules | array |
formatModuleLanguageKey(
string $unformatedKey, string $replacementStrings
)
:
string
Format our dynamic keys containing module strings to a valid key depending on the module.
Name | Type | Description |
---|---|---|
$unformatedKey | string | |
$replacementStrings | string |
Type | Description |
---|---|
string |
getChangedModules(
)
:
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.
Type | Description |
---|---|
array |
getModuleSingularKey(
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.
Name | Type | Description |
---|---|---|
$moduleName | string |
Type | Description |
---|---|
string | The 'singular' name of a module. |
getRenamedModules(
)
:
array
Return an array of the modules whos mod_strings have been modified.
Type | Description |
---|---|
array |
getSubpanelDefs(
\SugarBean $bean
)
:
array
Retrieve the subpanel definitions for a given SugarBean object. Unforunately we can't reuse any of the SubPanelDefinion.php functions.
Name | Type | Description |
---|---|---|
$bean | \SugarBean |
Type | Description |
---|---|
array | The subpanel definitions. |
renameAllDashlets(
)
:
\RenameModules
Rename all module strings within the application for dashlets.
Type | Description |
---|---|
\RenameModules |
renameAllRelatedLinks(
)
:
\RenameModules
Rename all related linked within the application
Type | Description |
---|---|
\RenameModules |
renameAllSubpanels(
)
:
\RenameModules
Rename all subpanels within the application.
Type | Description |
---|---|
\RenameModules |
renameCertainModuleModStrings(
string $targetModule, array $labelKeysToReplace
)
:
\RenameModules
Rename all module strings within the leads module.
Name | Type | Description |
---|---|---|
$targetModule | string | The name of the module that owns the labels to be changed. |
$labelKeysToReplace | array | The labels to be changed. |
Type | Description |
---|---|
\RenameModules |
renameModuleRelatedLinks(
string $moduleName, string $moduleClass
)
:
void
Rename the related links within a module.
Name | Type | Description |
---|---|---|
$moduleName | string | The module to be renamed |
$moduleClass | string | The class name of the module to be renamed |
renameModuleSubpanel(
string $moduleName, string $beanName
)
:
void
Rename subpanels for a particular module.
Name | Type | Description |
---|---|---|
$moduleName | string | The name of the module to be renamed |
$beanName | string | The name of the SugarBean to be renamed. |
replaceSingleLabel(
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.
Name | Type | Description |
---|---|---|
$oldStringValue | string | |
$replacementLabels | string | |
$replacementMetaData | array | |
$modifier |
Type | Description |
---|---|
string |