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


PHP t3lib_div::readLLXMLfile方法代码示例

本文整理汇总了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();
 }
开发者ID:jaguerra,项目名称:TYPO3-Kickstarter,代码行数:35,代码来源:class.tx_kickstarter_wizard.php

示例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;
 }
开发者ID:preinboth,项目名称:formidable,代码行数:13,代码来源:class.tx_ameosformidable_pi2_wizicon.php

示例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;
 }
开发者ID:Konafets,项目名称:seminars,代码行数:16,代码来源:WizardIcon.php

示例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;
 }
开发者ID:snoblucha,项目名称:typo3_listfeusers,代码行数:11,代码来源:class.tx_listfeusers_pi3_wizicon.php

示例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;
 }
开发者ID:RocKordier,项目名称:typo3-mklib,代码行数:16,代码来源:class.tx_mklib_util_WizIcon.php

示例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;
 }
开发者ID:tiggr,项目名称:ke_troubletickets,代码行数:16,代码来源:class.tx_ketroubletickets_pi1_wizicon.php

示例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;
 }
开发者ID:Apen,项目名称:adgallery,代码行数:16,代码来源:class.tx_adgallery_pi1_wizicon.php

示例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;
 }
开发者ID:fabianlipp,项目名称:ods_osm,代码行数:17,代码来源:class.tx_odsosm_pi1_wizicon.php

示例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;
 }
开发者ID:rafu1987,项目名称:t3bootstrap-project,代码行数:18,代码来源:class.tx_medfancyboxcontent_pi1_wizicon.php

示例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;
 }
开发者ID:snoblucha,项目名称:typo3_listfeusers,代码行数:18,代码来源:class.tx_listfeusers_pi2_wizicon.php

示例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();

  }
开发者ID:blumenbach,项目名称:blumenbach-online.de,代码行数:16,代码来源:class.BlumenbachOnline_readonly.php

示例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();
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:21,代码来源:class.tx_kickstarter_wizard.php

示例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;
 }
开发者ID:woehrlag,项目名称:Intranet,代码行数:24,代码来源:class.tx_myquizpoll_pi1_wizicon.php

示例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;
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:26,代码来源:class.tx_ttaddress_pi1_wizicon.php

示例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;
 }
开发者ID:brainformatik,项目名称:ke_search,代码行数:28,代码来源:class.tx_kesearch_pi2_wizicon.php


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