本文整理汇总了PHP中LabelUtil::getTranslationParamsForAllModules方法的典型用法代码示例。如果您正苦于以下问题:PHP LabelUtil::getTranslationParamsForAllModules方法的具体用法?PHP LabelUtil::getTranslationParamsForAllModules怎么用?PHP LabelUtil::getTranslationParamsForAllModules使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LabelUtil
的用法示例。
在下文中一共展示了LabelUtil::getTranslationParamsForAllModules方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderContent
protected function renderContent()
{
$content = '<div>';
$content .= Zurmo::t('LeadsModule', 'LeadsModulePluralLabel and ContactsModulePluralLabel are the same records, ' . 'just in a different status. To create a LeadsModuleSingularLowerCaseLabel ' . 'field, create a ContactsModuleSingularLowerCaseLabel field, and then it ' . 'will be placeable in the LeadsModulePluralLowerCaseLabel layouts.', LabelUtil::getTranslationParamsForAllModules());
$content .= '</div>' . "\n";
return $content;
}
示例2: getData
/**
* Runs a query to get all the dates for meetings based on SearchAttributeData. Then the data is processed
* and @returns a data array of dates and quantity. Quantity stands for how many meetings in a given date.
* (non-PHPdoc)
* @see CalendarDataProvider::getData()
*/
public function getData()
{
$sql = $this->makeSqlQuery();
$rows = ZurmoRedBean::getAll($sql);
$data = array();
foreach ($rows as $row) {
$localTimeZoneAdjustedDate = DateTimeUtil::convertDbFormattedDateTimeToLocaleFormattedDisplay($row['startdatetime'], 'medium', null);
if (isset($data[$localTimeZoneAdjustedDate])) {
$data[$localTimeZoneAdjustedDate]['quantity'] = $data[$localTimeZoneAdjustedDate]['quantity'] + 1;
} else {
$data[$localTimeZoneAdjustedDate] = array('date' => $localTimeZoneAdjustedDate, 'quantity' => 1, 'dbDate' => $row['startdatetime']);
}
}
foreach ($data as $key => $item) {
if ($item['quantity'] == 1) {
$label = Zurmo::t('MeetingsModule', '{quantity} MeetingsModuleSingularLabel', array_merge(LabelUtil::getTranslationParamsForAllModules(), array('{quantity}' => $item['quantity'])));
} else {
$label = Zurmo::t('MeetingsModule', '{quantity} MeetingsModulePluralLabel', array_merge(LabelUtil::getTranslationParamsForAllModules(), array('{quantity}' => $item['quantity'])));
}
$data[$key]['label'] = $label;
if ($item['quantity'] > 5) {
$quantityClassSuffix = 6;
} else {
$quantityClassSuffix = $item['quantity'];
}
$data[$key]['className'] = 'calendar-events-' . $quantityClassSuffix;
}
return $data;
}
示例3: getTranslatedRightsLabels
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_ACCESS_ACCOUNT_ACCOUNT_AFFILIATIONS] = Zurmo::t('MarketingModule', 'Access AccountsModuleSingularLabel to AccountsModuleSingularLabel Affiliations Tab', $params);
return $labels;
}
示例4: renderContent
/**
* @return bool|string
*/
protected function renderContent()
{
$this->registerScripts();
if ($this->cookieValue == self::HIDDEN_COOKIE_VALUE) {
$style = "style=display:none;";
// Not Coding Standard
} else {
$style = null;
}
$content = '<div id="' . self::PANEL_ID . '" ' . $style . '>';
$content .= '<h1>' . Zurmo::t('MarketingModule', 'How does Email Marketing work in Zurmo?', LabelUtil::getTranslationParamsForAllModules()) . '</h1>';
$content .= '<div id="marketing-intro-steps" class="clearfix">';
$content .= '<div class="third"><h3>' . Zurmo::t('Core', 'Step') . '<strong>1<span>➜</span></strong></h3>';
$content .= '<p><strong>' . Zurmo::t('MarketingModule', 'Group') . '</strong>';
$content .= Zurmo::t('MarketingModule', 'Group together the email recipients into a list, use different lists for different purposes');
$content .= '</p>';
$content .= '</div>';
$content .= '<div class="third"><h3>' . Zurmo::t('Core', 'Step') . '<strong>2<span>➜</span></strong></h3>';
$content .= '<p><strong>' . Zurmo::t('MarketingModule', 'Create') . '</strong>';
$content .= Zurmo::t('MarketingModule', 'Create the template for the email you are going to send, import and use either full, ' . 'rich HTML templates or plain text');
$content .= '</p>';
$content .= '</div>';
$content .= '<div class="third"><h3>' . Zurmo::t('Core', 'Step') . '<strong>3</strong></h3>';
$content .= '<p><strong>' . Zurmo::t('MarketingModule', 'Launch') . '</strong>';
$content .= Zurmo::t('MarketingModule', 'Create a campaign where you can schedule your email to go out, pick the List(s) of recipients, ' . 'add and schedule autoresponders and track your overall campaign performance');
$content .= '</p>';
$content .= '</div>';
$content .= '</div>';
$content .= $this->renderHideLinkContent();
$content .= '</div>';
return $content;
}
示例5: translatedAttributeLabels
protected static function translatedAttributeLabels($language)
{
$params = LabelUtil::getTranslationParamsForAllModules();
$paramsForAffiliations = $params;
$paramsForAffiliations['{primaryAccount}'] = AccountAccountAffiliationsModule::resolveAccountRelationLabel('Singular', 'primary');
$paramsForAffiliations['{secondaryAccount}'] = AccountAccountAffiliationsModule::resolveAccountRelationLabel('Singular', 'secondary');
return array_merge(parent::translatedAttributeLabels($language), array('account' => Zurmo::t('AccountsModule', 'Parent AccountsModuleSingularLabel', $params, null, $language), 'accounts' => Zurmo::t('AccountsModule', 'AccountsModulePluralLabel', $params, null, $language), 'annualRevenue' => Zurmo::t('AccountsModule', 'Annual Revenue', array(), null, $language), 'billingAddress' => Zurmo::t('AccountsModule', 'Service Address', array(), null, $language), 'contacts' => Zurmo::t('ContactsModule', 'ContactsModulePluralLabel', $params, null, $language), 'description' => Zurmo::t('ZurmoModule', 'Description', array(), null, $language), 'employees' => Zurmo::t('AccountsModule', 'Employees', array(), null, $language), 'industry' => Zurmo::t('ZurmoModule', 'Industry', array(), null, $language), 'latestActivityDateTime' => Zurmo::t('ZurmoModule', 'Latest Activity Date Time', array(), null, $language), 'meetings' => Zurmo::t('MeetingsModule', 'MeetingsModulePluralLabel', $params, null, $language), 'name' => Zurmo::t('Core', 'Name', array(), null, $language), 'notes' => Zurmo::t('NotesModule', 'NotesModulePluralLabel', $params, null, $language), 'officePhone' => Zurmo::t('ZurmoModule', 'Office Phone', array(), null, $language), 'officeFax' => Zurmo::t('ZurmoModule', 'Office Fax', array(), null, $language), 'opportunities' => Zurmo::t('OpportunitiesModule', 'OpportunitiesModulePluralLabel', $params, null, $language), 'contracts' => Zurmo::t('ContractsModule', 'ContractsModulePluralLabel', $params, null, $language), 'primaryAccountAffiliations' => Zurmo::t('AccountAccountAffiliationsModule', '{primaryAccount} Affiliations', $paramsForAffiliations, null, $language), 'primaryEmail' => Zurmo::t('ZurmoModule', 'Primary Email', array(), null, $language), 'secondaryAccountAffiliations' => Zurmo::t('AccountAccountAffiliationsModule', '{secondaryAccount} Affiliations', $paramsForAffiliations, null, $language), 'secondaryEmail' => Zurmo::t('ZurmoModule', 'Secondary Email', array(), null, $language), 'shippingAddress' => Zurmo::t('AccountsModule', 'Shipping Address', array(), null, $language), 'tasks' => Zurmo::t('TasksModule', 'TasksModulePluralLabel', $params, null, $language), 'type' => Zurmo::t('Core', 'Type', array(), null, $language), 'website' => Zurmo::t('ZurmoModule', 'Website', array(), null, $language)));
}
示例6: getTranslatedRightsLabels
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_CREATE_OPPORTUNITIES] = Zurmo::t('OpportunitiesModule', 'Create OpportunitiesModulePluralLabel', $params);
$labels[self::RIGHT_DELETE_OPPORTUNITIES] = Zurmo::t('OpportunitiesModule', 'Delete OpportunitiesModulePluralLabel', $params);
$labels[self::RIGHT_ACCESS_OPPORTUNITIES] = Zurmo::t('OpportunitiesModule', 'Access OpportunitiesModulePluralLabel Tab', $params);
return $labels;
}
示例7: getTranslatedRightsLabels
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_CREATE_DEPARTMENTREFERENCES] = Zurmo::t('DepartmentReferencesModule', 'Create DepartmentReferencesModulePluralLabel', $params);
$labels[self::RIGHT_DELETE_DEPARTMENTREFERENCES] = Zurmo::t('DepartmentReferencesModule', 'Delete DepartmentReferencesModulePluralLabel', $params);
$labels[self::RIGHT_ACCESS_DEPARTMENTREFERENCES] = Zurmo::t('DepartmentReferencesModule', 'Access DepartmentReferencesModulePluralLabel Tab', $params);
return $labels;
}
示例8: getTranslatedRightsLabels
/**
* @return array
*/
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_CREATE_CALENDAR] = Zurmo::t('CalendarsModule', 'Create CalendarsModulePluralLabel', $params);
$labels[self::RIGHT_DELETE_CALENDAR] = Zurmo::t('CalendarsModule', 'Delete CalendarsModulePluralLabel', $params);
$labels[self::RIGHT_ACCESS_CALENDAR] = Zurmo::t('CalendarsModule', 'Access CalendarsModulePluralLabel Tab', $params);
return $labels;
}
示例9: getTranslatedRightsLabels
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_CREATE_UNITOFMEASURES] = Zurmo::t('UnitofmeasuresModule', 'Create UnitofmeasuresModulePluralLabel', $params);
$labels[self::RIGHT_DELETE_UNITOFMEASURES] = Zurmo::t('UnitofmeasuresModule', 'Delete UnitofmeasuresModulePluralLabel', $params);
$labels[self::RIGHT_ACCESS_UNITOFMEASURES] = Zurmo::t('UnitofmeasuresModule', 'Access UnitofmeasuresModulePluralLabel Tab', $params);
return $labels;
}
示例10: getTranslatedRightsLabels
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_CREATE_MEETINGS] = Zurmo::t('MeetingsModule', 'Create MeetingsModulePluralLabel', $params);
$labels[self::RIGHT_DELETE_MEETINGS] = Zurmo::t('MeetingsModule', 'Delete MeetingsModulePluralLabel', $params);
$labels[self::RIGHT_ACCESS_MEETINGS] = Zurmo::t('MeetingsModule', 'Access MeetingsModulePluralLabel', $params);
return $labels;
}
示例11: getTranslatedRightsLabels
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_CREATE_PRODUCTS] = Zurmo::t('ProductsModule', 'Create ProductsModulePluralLabel', $params);
$labels[self::RIGHT_DELETE_PRODUCTS] = Zurmo::t('ProductsModule', 'Delete ProductsModulePluralLabel', $params);
$labels[self::RIGHT_ACCESS_PRODUCTS] = Zurmo::t('ProductsModule', 'Access ProductsModulePluralLabel Tab', $params);
return $labels;
}
示例12: getTranslatedRightsLabels
/**
* @return array
*/
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_CREATE_CONTACT_WEB_FORMS] = Zurmo::t('ContactWebFormsModule', 'Create ContactsModuleSingularLabel Web Forms', $params);
$labels[self::RIGHT_DELETE_CONTACT_WEB_FORMS] = Zurmo::t('ContactWebFormsModule', 'Delete ContactsModuleSingularLabel Web Forms', $params);
$labels[self::RIGHT_ACCESS_CONTACT_WEB_FORMS] = Zurmo::t('ContactWebFormsModule', 'Access ContactsModuleSingularLabel Web Forms Tab', $params);
return $labels;
}
示例13: renderLabel
protected function renderLabel()
{
$label = Zurmo::t('LeadsModule', 'ContactsModuleSingularLabel or LeadsModuleSingularLabel', LabelUtil::getTranslationParamsForAllModules());
if ($this->form === null) {
return $this->getFormattedAttributeLabel();
}
$id = $this->getIdForHiddenField();
return $this->form->labelEx($this->model, $this->attribute, array('for' => $id, 'label' => $label));
}
示例14: getTranslatedRightsLabels
public static function getTranslatedRightsLabels()
{
$params = LabelUtil::getTranslationParamsForAllModules();
$labels = array();
$labels[self::RIGHT_CREATE_LEADS] = Zurmo::t('LeadsModule', 'Create LeadsModulePluralLabel', $params);
$labels[self::RIGHT_DELETE_LEADS] = Zurmo::t('LeadsModule', 'Delete LeadsModulePluralLabel', $params);
$labels[self::RIGHT_ACCESS_LEADS] = Zurmo::t('LeadsModule', 'Access LeadsModulePluralLabel Tab', $params);
$labels[self::RIGHT_CONVERT_LEADS] = Zurmo::t('LeadsModule', 'Convert LeadsModulePluralLabel', $params);
return $labels;
}
示例15: resolveCanUserProperlyMatchMessage
/**
* There are several scenarios that can occur where a user has access to matching email messages, but is missing other
* rights in order to properly utilize the matching mechanism. This method checks for those conditions, and
* if present, will alert the user that there is a misconfiguration and they should contact their administrator.
* Scenario #1 - User does not have access to contacts or leads. You need to have at least one to be able to match.
*/
public static function resolveCanUserProperlyMatchMessage($userCanAccessContacts, $userCanAccessLeads)
{
assert('is_bool($userCanAccessContacts)');
assert('is_bool($userCanAccessLeads)');
//Scenario #1 - User does not have access to contacts or leads
if (!$userCanAccessContacts && !$userCanAccessLeads) {
$scenarioSpecificContent = Zurmo::t('EmailMessagesModule', 'Matching archived emails requires access to either ContactsModulePluralLowerCaseLabel' . ' or LeadsModulePluralLowerCaseLabel both of which you do not have. Please contact your administrator.', LabelUtil::getTranslationParamsForAllModules());
static::processAccessFailure(false, $scenarioSpecificContent);
Yii::app()->end(0, false);
}
}