當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。