當前位置: 首頁>>代碼示例>>PHP>>正文


PHP rex_i18n::RawMsg方法代碼示例

本文整理匯總了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;
開發者ID:staabm,項目名稱:redaxo,代碼行數:12,代碼來源:overview.php

示例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);
開發者ID:staabm,項目名稱:redaxo,代碼行數:31,代碼來源:effects.php


注:本文中的rex_i18n::RawMsg方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。