本文整理汇总了PHP中t3lib_div::readLLXMLfile方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_div::readLLXMLfile方法的具体用法?PHP t3lib_div::readLLXMLfile怎么用?PHP t3lib_div::readLLXMLfile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_div
的用法示例。
在下文中一共展示了t3lib_div::readLLXMLfile方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tx_kickstarter_wizard
/**
* Constructor
*/
function tx_kickstarter_wizard()
{
$this->modData = t3lib_div::_POST($this->varPrefix);
$version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version);
if ($version < 4006000) {
$LOCAL_LANG = t3lib_div::readLLXMLfile(t3lib_extMgm::extPath('setup') . '/mod/locallang.xml', 'default');
// Getting the available languages
$theLanguages = t3lib_div::trimExplode('|', TYPO3_languages);
} else {
/** @var $xliffParser t3lib_l10n_parser_Xliff */
$xliffParser = t3lib_div::makeInstance('t3lib_l10n_parser_Xliff');
$LOCAL_LANG = $xliffParser->getParsedData(t3lib_extMgm::extPath('setup') . '/mod/locallang.xlf', 'default');
/** @var $locales t3lib_l10n_Locales */
$locales = t3lib_div::makeInstance('t3lib_l10n_Locales');
// Getting the available languages
$theLanguages = $locales->getLocales();
}
foreach ($theLanguages as $val) {
if ($val !== 'default') {
if ($version < 4006000) {
$localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val]);
} else {
$localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val][0]['target']);
}
$this->languages[$val] = $localLabel;
}
}
asort($this->languages);
// init reserved words
$resWords = t3lib_div::makeInstance('tx_kickstarter_reservedWords');
$this->reservedWords = $resWords->getReservedWords();
}
示例2: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
*
* @return The array with language labels
*/
function includeLocalLang()
{
$llFile = t3lib_extMgm::extPath('ameos_formidable') . 'locallang.xml';
if (function_exists("t3lib_div::readLLXMLfile")) {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例3: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
*
* @return array[] the found language labels
*/
public function includeLocalLang()
{
if (class_exists('t3lib_l10n_parser_Llxml')) {
/** @var t3lib_l10n_parser_Llxml $xmlParser */
$xmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$localLanguage = $xmlParser->getParsedData(t3lib_extMgm::extPath('seminars') . 'locallang.xml', $GLOBALS['LANG']->lang);
} else {
$localLanguage = t3lib_div::readLLXMLfile(t3lib_extMgm::extPath('seminars') . 'locallang.xml', $GLOBALS['LANG']->lang);
}
return $localLanguage;
}
示例4: includeLocalLang
function includeLocalLang()
{
$llFile = t3lib_extMgm::extPath('listfeusers') . 'pi3/locallang.xml';
if (class_exists('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser')) {
$l10nParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser');
$LOCAL_LANG = $l10nParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
} else {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例5: includeLocalLang
/**
* Laden der Lokalisierung.
*
* @return array
*/
public function includeLocalLang()
{
$llFile = $this->getLocalLangFilePath();
if (tx_rnbase_util_TYPO3::isTYPO47OrHigher()) {
$localizationParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$LOCAL_LANG = $localizationParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
} else {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例6: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
*
* @return The array with language labels
*/
function includeLocalLang()
{
$llFile = t3lib_extMgm::extPath('ke_troubletickets') . 'locallang.xml';
if ($this->getNumericTYPO3versionNumber() >= 6000000) {
$xmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$LOCAL_LANG = $xmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
} else {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例7: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
*
* @return The array with language labels
*/
function includeLocalLang()
{
$llFile = t3lib_extMgm::extPath('adgallery') . 'locallang.xml';
if (self::intFromVer(TYPO3_version) < 6000000) {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
} else {
$parser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$LOCAL_LANG = $parser->getParsedData($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例8: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
*
* @return The array with language labels
*/
function includeLocalLang()
{
$llFile = t3lib_extMgm::extPath('ods_osm') . 'locallang.xml';
$version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version);
if ($version >= 4007000) {
$object = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$LOCAL_LANG = $object->getParsedData($llFile, $GLOBALS['LANG']->lang);
} else {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例9: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
*
* @return array The array with language labels
*/
protected function includeLocalLang()
{
$llFile = t3lib_extMgm::extPath('medfancyboxcontent') . 'locallang.xml';
$version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version);
if ($version < 4006000) {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
} else {
/** @var $llxmlParser t3lib_l10n_parser_Llxml */
$llxmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$LOCAL_LANG = $llxmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例10: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
*
* @return array The array with language labels
*/
protected function includeLocalLang()
{
$llFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('listfeusers') . 'locallang.xml';
$version = class_exists('\\TYPO3\\CMS\\Core\\Utility\\VersionNumberUtility') ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version);
if ($version < 4006000) {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
} else {
/** @var $llxmlParser t3lib_l10n_parser_Llxml */
$llxmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser');
$LOCAL_LANG = $llxmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例11: extPath
function BlumenbachOnline_readonly() {
@ session_start();
// extract($GLOBALS);
$this->workpath = $_SERVER['DOCUMENT_ROOT'] . "/typo3conf/ext/bolonline/mediafiles/";
$this->workpath_rel = "typo3conf/ext/bolonline/mediafiles/";
// put names for Table Columns from locallang_db to LOCAL_LANG
$llFile = t3lib_extMgm :: extPath('bolonline') . 'locallang_db.xml';
$nochdazu = t3lib_div :: readLLXMLfile($llFile, $GLOBALS['TSFE']->lang);
$this->LOCAL_LANG = array_merge_recursive($this->LOCAL_LANG, $nochdazu);
$this->getTableColumns(); // sets variable $this->tableColumns
// $this->fe_userdata = tx_sv_auth::getUser();
$this->fe_userdata = $GLOBALS["TSFE"]->fe_user->user;
//require_once ('FileUploader.class.php');
//$this->FU = new FileUploader();
}
示例12: tx_kickstarter_wizard
/**
* Constructor
*/
function tx_kickstarter_wizard()
{
$this->modData = t3lib_div::_POST($this->varPrefix);
// getting the available languages
$theLanguages = t3lib_div::trimExplode('|', TYPO3_languages);
$llFile = t3lib_extMgm::extPath('setup') . '/mod/locallang.xml';
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, 'default');
foreach ($theLanguages as $val) {
if ($val != 'default') {
$localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val]);
$this->languages[$val] = $localLabel;
}
}
asort($this->languages);
// init reserved words
$resWords = t3lib_div::makeInstance('tx_kickstarter_reservedWords');
$this->reservedWords = $resWords->getReservedWords();
}
示例13: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
*
* @return The array with language labels
*/
function includeLocalLang()
{
$version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version);
if ($version >= 6000000) {
$llFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('myquizpoll') . 'locallang.xml';
$localLanguageParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser');
$LOCAL_LANG = $localLanguageParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
} else {
if ($version >= 4007000) {
$llFile = t3lib_extMgm::extPath('myquizpoll') . 'locallang.xml';
$localizationParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$LOCAL_LANG = $localizationParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
} else {
$llFile = t3lib_extMgm::extPath('myquizpoll') . 'locallang.xml';
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
}
}
return $LOCAL_LANG;
}
示例14: includeLocalLang
/**
* Includes the locallang file for the 'tt_address' extension
*
* @return array The LOCAL_LANG array
*/
function includeLocalLang()
{
switch (TYPO3_branch) {
case '4.5':
$llFile = t3lib_extMgm::extPath('tt_address') . 'locallang.xml';
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
break;
case '4.6':
case '4.7':
$llFile = t3lib_extMgm::extPath('tt_address') . 'locallang.xml';
$llFileParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$LOCAL_LANG = $llFileParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
break;
case '6.0':
default:
$llFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('tt_address') . 'locallang.xml';
$localLanguageParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser');
$LOCAL_LANG = $localLanguageParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}
示例15: includeLocalLang
/**
* Reads the [extDir]/locallang.xml and returns the \$LOCAL_LANG array found in that file.
*
* @return The array with language labels
*/
function includeLocalLang()
{
if (TYPO3_VERSION_INTEGER < 6002000) {
$llFile = t3lib_extMgm::extPath('ke_search') . 'pi2/locallang.xml';
} else {
$llFile = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search') . 'pi2/locallang.xml';
}
if (TYPO3_VERSION_INTEGER >= 4006000) {
if (TYPO3_VERSION_INTEGER >= 7000000) {
$xmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser');
} else {
if (TYPO3_VERSION_INTEGER >= 6002000) {
$xmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('t3lib_l10n_parser_Llxml');
} else {
$xmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
}
}
$LOCAL_LANG = $xmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang);
} else {
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
}
return $LOCAL_LANG;
}