当前位置: 首页>>代码示例>>PHP>>正文


PHP PMF_Category::getCategoryLanguagesToTranslate方法代码示例

本文整理汇总了PHP中PMF_Category::getCategoryLanguagesToTranslate方法的典型用法代码示例。如果您正苦于以下问题:PHP PMF_Category::getCategoryLanguagesToTranslate方法的具体用法?PHP PMF_Category::getCategoryLanguagesToTranslate怎么用?PHP PMF_Category::getCategoryLanguagesToTranslate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PMF_Category的用法示例。


在下文中一共展示了PMF_Category::getCategoryLanguagesToTranslate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

            <p>
                <label><?php 
        print $PMF_LANG["ad_categ_titel"];
        ?>
:</label>
                <input type="text" name="name" size="30" style="width: 250px;" value="" />
            </p>

            <p>
                <label><?php 
        print $PMF_LANG["ad_categ_lang"];
        ?>
:</label>
                <select name="catlang" size="1">
                    <?php 
        print $category->getCategoryLanguagesToTranslate($id, $selected_lang);
        ?>
                </select>
            </p>

            <p>
                <label><?php 
        print $PMF_LANG["ad_categ_desc"];
        ?>
:</label>
                <textarea name="description" rows="3" cols="80" style="width: 300px;"></textarea>
            </p>

<?php 
    }
    ?>
开发者ID:atlcurling,项目名称:tkt,代码行数:31,代码来源:category.translate.php

示例2: header

 * @category  phpMyFAQ
 * @package   Administration
 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
 * @author    Rudi Ferrari <bookcrossers@gmx.de>
 * @copyright 2006-2014 phpMyFAQ Team
 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
 * @link      http://www.phpmyfaq.de
 * @since     2006-09-10
 */
if (!defined('IS_VALID_PHPMYFAQ')) {
    $protocol = 'http';
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
        $protocol = 'https';
    }
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
    exit;
}
if ($user->perm->checkRight($user->getUserId(), 'editcateg')) {
    $category = new PMF_Category($faqConfig, [], false);
    $category->setUser($currentAdminUser);
    $category->setGroups($currentAdminGroups);
    $category->getMissingCategories();
    $id = PMF_Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT);
    $user_permission = $category->getPermissions('user', array($id));
    $group_permission = $category->getPermissions('group', array($id));
    $selectedLanguage = PMF_Filter::filterInput(INPUT_GET, 'trlang', FILTER_SANITIZE_STRING, $LANGCODE);
    $twig->loadTemplate('category/translate.twig')->display(array('PMF_LANG' => $PMF_LANG, 'categoryName' => $category->categoryName[$id]['name'], 'csrfToken' => $user->getCsrfTokenFromSession(), 'languageOptions' => $category->getCategoryLanguagesToTranslate($id, $selectedLanguage), 'groupPermission' => $faqConfig->get('security.permLevel') !== 'basic' ? $group_permission[0] : -1, 'id' => $id, 'parentId' => $category->categoryName[$id]['parent_id'], 'showcat' => $selectedLanguage !== $LANGCODE, 'translations' => $category->getCategoryLanguagesTranslated($id), 'userOptions' => $user->getAllUserOptions($category->categoryName[$id]['user_id']), 'userPermission' => $user_permission[0]));
    unset($category, $id, $user_permission, $group_permission, $selectedLanguage);
} else {
    require 'noperm.php';
}
开发者ID:Ravikumarsreerama,项目名称:faq,代码行数:31,代码来源:category.translate.php


注:本文中的PMF_Category::getCategoryLanguagesToTranslate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。