本文整理汇总了PHP中rex_i18n::RawMsg方法的典型用法代码示例。如果您正苦于以下问题:PHP rex_i18n::RawMsg方法的具体用法?PHP rex_i18n::RawMsg怎么用?PHP rex_i18n::RawMsg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rex_i18n
的用法示例。
在下文中一共展示了rex_i18n::RawMsg方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ob_start
<?php
/** @var rex_addon $this */
ob_start();
require __DIR__ . '/../help.php';
$content = ob_get_contents();
ob_end_clean();
$fragment = new rex_fragment();
$fragment->setVar('title', rex_i18n::RawMsg('media_manager_overview_title', $this->getVersion()), false);
$fragment->setVar('body', $content, false);
$content = $fragment->parse('core/page/section.php');
echo $content;
示例2: rex_fragment
$list->setColumnParams($delete, ['type_id' => $type_id, 'effect_id' => '###id###', 'func' => 'delete']);
$list->addLinkAttribute($delete, 'data-confirm', rex_i18n::msg('delete') . ' ?');
$content = $list->get();
$footer = '<a class="btn btn-back" href="' . rex_url::currentBackendPage() . '">' . rex_i18n::msg('media_manager_back') . '</a>';
$fragment = new rex_fragment();
$fragment->setVar('title', rex_i18n::RawMsg('media_manager_effect_caption', $typeName), false);
$fragment->setVar('content', $content, false);
$fragment->setVar('footer', $footer, false);
$content = $fragment->parse('core/page/section.php');
echo $content;
} elseif ($func == 'add' && $type_id > 0 || $func == 'edit' && $effect_id > 0 && $type_id > 0) {
$effectNames = rex_media_manager::getSupportedEffectNames();
if ($func == 'edit') {
$formLabel = rex_i18n::RawMsg('media_manager_effect_edit_header', htmlspecialchars($typeName));
} elseif ($func == 'add') {
$formLabel = rex_i18n::RawMsg('media_manager_effect_create_header', htmlspecialchars($typeName));
}
$form = rex_form::factory(rex::getTablePrefix() . 'media_manager_type_effect', '', 'id=' . $effect_id);
// image_type_id for reference to save into the db
$form->addHiddenField('type_id', $type_id);
// effect prio
$field = $form->addPrioField('priority');
$field->setLabel(rex_i18n::msg('media_manager_effect_priority'));
$field->setLabelField('effect');
$field->setWhereCondition('type_id = ' . $type_id);
// effect name als SELECT
$field = $form->addSelectField('effect');
$field->setLabel(rex_i18n::msg('media_manager_effect_name'));
$select = $field->getSelect();
$select->addOptions($effectNames, true);
$select->setSize(1);