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


PHP ExtensionManager::addLLrefForTCAdescr方法代码示例

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


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

示例1: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('fe_groups', 'EXT:context_help/locallang_csh_fe_groups.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('fe_users', 'EXT:context_help/locallang_csh_fe_users.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('pages', 'EXT:context_help/locallang_csh_pages.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('pages_language_overlay', 'EXT:context_help/locallang_csh_pageslol.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('static_template', 'EXT:context_help/locallang_csh_statictpl.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_domain', 'EXT:context_help/locallang_csh_sysdomain.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_file_storage', 'EXT:context_help/locallang_csh_sysfilestorage.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('sys_template', 'EXT:context_help/locallang_csh_systmpl.xml');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('tt_content', 'EXT:context_help/locallang_csh_ttcontent.xml');
// Labels for TYPO3 4.5 and greater.  These labels override the ones set above, while still falling back to the original labels if no translation is available.
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:context_help/locallang_csh_pages.xml'][] = 'EXT:context_help/4.5/locallang_csh_pages.xml';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:context_help/locallang_csh_ttcontent.xml'][] = 'EXT:context_help/4.5/locallang_csh_ttcontent.xml';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:17,代码来源:ext_tables.php

示例2: array_flip

$GLOBALS['TCA']['fe_users']['columns']['password']['config']['max'] = 100;
if (\TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::isUsageEnabled('FE')) {
    // Get eval field operations methods as array keys
    $operations = array_flip(\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $GLOBALS['TCA']['fe_users']['columns']['password']['config']['eval'], TRUE));
    // Remove md5 and temporary password from the list of evaluated methods
    unset($operations['md5'], $operations['password']);
    // Append new methods to have "password" as last operation.
    $operations['TYPO3\\CMS\\Saltedpasswords\\Evaluation\\Evaluator_fe'] = 1;
    $operations['password'] = 1;
    $GLOBALS['TCA']['fe_users']['columns']['password']['config']['eval'] = implode(',', array_keys($operations));
    unset($operations);
}
\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('be_users');
$GLOBALS['TCA']['be_users']['columns']['password']['config']['max'] = 100;
if (\TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::isUsageEnabled('BE')) {
    // Get eval field operations methods as array keys
    $operations = array_flip(\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $GLOBALS['TCA']['be_users']['columns']['password']['config']['eval'], TRUE));
    // Remove md5 and temporary password from the list of evaluated methods
    unset($operations['md5'], $operations['password']);
    // Append new methods to have "password" as last operation.
    $operations['TYPO3\\CMS\\Saltedpasswords\\Evaluation\\BackendEvaluator'] = 1;
    $operations['password'] = 1;
    $GLOBALS['TCA']['be_users']['columns']['password']['config']['eval'] = implode(',', array_keys($operations));
    unset($operations);
    // Prevent md5 hashing on client side via JS
    $GLOBALS['TYPO3_USER_SETTINGS']['columns']['password']['eval'] = '';
    $GLOBALS['TYPO3_USER_SETTINGS']['columns']['password2']['eval'] = '';
}
// Add context sensitive help (csh) for scheduler task
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('_txsaltedpasswords', 'EXT:' . $_EXTKEY . '/locallang_csh_saltedpasswords.xml');
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:30,代码来源:ext_tables.php


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