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


PHP t3lib_extMgm::extPath方法代码示例

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


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

示例1: main

	/**
	 * Main function, returning the HTML content of the module
	 *
	 * @return	string		HTML
	 */
	function main()	{

		require_once(t3lib_extMgm::extPath(STATIC_INFO_TABLES_EXTkey).'class.tx_staticinfotables_encoding.php');

		$tableArray = array ('static_countries', 'static_country_zones', 'static_languages', 'static_currencies');

		$content = '';
		$content.= '<br />Convert character encoding of the static info tables.';
		$content.= '<br />The default encoding is UTF-8.';
		$destEncoding = htmlspecialchars(t3lib_div::_GP('dest_encoding'));

		if(t3lib_div::_GP('convert') AND ($destEncoding != '')) {
			foreach ($tableArray as $table) {
				$content .= '<p>'.htmlspecialchars($table.' > '.$destEncoding).'</p>';
				tx_staticinfotables_encoding::convertEncodingTable($table, 'utf-8', $destEncoding);
			}
			$content .= '<p>You must enter the charset \''.$destEncoding.'\' now manually in the EM for static_info_tables!</p>';
			$content .= '<p>Done</p>';
		} else {
			$content .= '<form name="static_info_tables_form" action="'.htmlspecialchars(t3lib_div::linkThisScript()).'" method="post">';
			$linkScript = t3lib_div::slashJS(t3lib_div::linkThisScript());
			$content .= '<br /><br />';
			$content .= 'This conversion works only once. When you converted the tables and you want to do it again to another encoding you have to reinstall the tables with the Extension Manager or select \'UPDATE!\'.';
			$content .= '<br /><br />';
			$content .= 'Destination character encoding:';
			$content .= '<br />'.tx_staticinfotables_encoding::getEncodingSelect('dest_encoding', '', '', $TYPO3_CONF_VARS['EXTCONF'][STATIC_INFO_TABLES_EXTkey]['charset']);
			$content .= '<br /><br />';
			$content .= '<input type="submit" name="convert" value="Convert"  onclick="this.form.action=\''.$linkScript.'\';submit();" />';
			$content .= '</form>';
		}

		return $content;

	}
开发者ID:rafu1987,项目名称:t3bootstrap-project,代码行数:39,代码来源:class.ext_update.php

示例2: __construct

 public function __construct(Tx_Formhandler_Component_Manager $componentManager, Tx_Formhandler_Configuration $configuration)
 {
     parent::__construct($componentManager, $configuration);
     require_once t3lib_extMgm::extPath('formhandler') . 'Resources/PHP/class.formhandler_htmlmail.php';
     $this->emailObj = t3lib_div::makeInstance('formhandler_htmlmail');
     $this->emailObj->start();
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:7,代码来源:Tx_Formhandler_Mailer_HtmlMail.php

示例3: main

 /**
  * Main function, returning the HTML content of the module
  *
  * @return	string		HTML
  */
 function main()
 {
     $content = '';
     $content .= '<br />Update the Static Info Tables with new language labels.';
     $content .= '<br />';
     if (t3lib_div::_GP('import')) {
         $destEncoding = t3lib_div::_GP('dest_encoding');
         $extPath = t3lib_extMgm::extPath('static_info_tables_it');
         $fileContent = explode("\n", t3lib_div::getUrl($extPath . 'ext_tables_static_update.sql'));
         foreach ($fileContent as $line) {
             if ($line = trim($line) and preg_match('#^UPDATE#i', $line)) {
                 $query = $this->getUpdateEncoded($line, $destEncoding);
                 $res = $GLOBALS['TYPO3_DB']->admin_query($query);
             }
         }
         $content .= '<br />';
         $content .= '<p>Encoding: ' . htmlspecialchars($destEncoding) . '</p>';
         $content .= '<p>Done.</p>';
     } elseif (t3lib_extMgm::isLoaded('static_info_tables_it')) {
         $content .= '</form>';
         $content .= '<form action="' . htmlspecialchars(t3lib_div::linkThisScript()) . '" method="post">';
         $content .= '<br />Destination character encoding:';
         $content .= '<br />' . tx_staticinfotables_encoding::getEncodingSelect('dest_encoding', '', 'utf-8');
         $content .= '<br />(The character encoding must match the encoding of the existing tables data. By default this is UTF-8.)';
         $content .= '<br /><br />';
         $content .= '<input type="submit" name="import" value="Import" />';
         $content .= '</form>';
     } else {
         $content .= '<br /><strong>The extension needs to be installed first!</strong>';
     }
     return $content;
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:37,代码来源:class.ext_update.php

示例4: user_rgsg

 public function user_rgsg($content, $conf)
 {
     $sysPageObj = t3lib_div::makeInstance('t3lib_pageSelect');
     $rootLine = $sysPageObj->getRootLine($GLOBALS['TSFE']->id);
     $TSObj = t3lib_div::makeInstance('t3lib_tsparser_ext');
     $TSObj->tt_track = 0;
     $TSObj->init();
     $TSObj->runThroughTemplates($rootLine);
     $TSObj->generateConfig();
     $this->conf = $TSObj->setup['plugin.']['tx_rgsmoothgallery_pi1.'];
     $split = strpos($GLOBALS['TSFE']->currentRecord, ':');
     $id = substr($GLOBALS['TSFE']->currentRecord, $split + 1);
     $where = 'uid =' . $id;
     $table = 'tt_content';
     $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('imagewidth,imageheight', $table, $where, $groupBy = '', $orderBy, $limit = '');
     $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
     $css .= $row['imagewidth'] ? 'width:' . $row['imagewidth'] . 'px;' : '';
     $css .= $row['imageheight'] ? 'height:' . $row['imageheight'] . 'px;' : '';
     $GLOBALS['TSFE']->additionalCSS['rgsmoothgallery' . $id] = '#myGallery' . $id . ' {' . $css . '}';
     if (t3lib_extMgm::isLoaded('t3mootools')) {
         require_once t3lib_extMgm::extPath('t3mootools') . 'class.tx_t3mootools.php';
     }
     if (defined('T3MOOTOOLS')) {
         tx_t3mootools::addMooJS();
     } else {
         $header .= $this->getPath($this->conf['pathToMootools']) ? '<script src="' . $this->getPath($this->conf['pathToMootools']) . '" type="text/javascript"></script>' : '';
         $header .= $this->getPath($this->conf['pathToMootoolsMore']) ? '<script src="' . $this->getPath($this->conf['pathToMootoolsMore']) . '" type="text/javascript"></script>' : '';
     }
     // path to js + css
     $GLOBALS['TSFE']->additionalHeaderData['rgsmoothgallery'] = $header . '
     <script src="' . $this->getPath($this->conf['pathToJdgalleryJS']) . '" type="text/javascript"></script>
     <link rel="stylesheet" href="' . $this->getPath($this->conf['pathToJdgalleryCSS']) . '" type="text/css" media="screen" />
   ';
     return $content;
 }
开发者ID:neufeind,项目名称:rgsmoothgallery,代码行数:35,代码来源:class.tx_rgsmoothgallery_rgsg.php

示例5: fetchPhpHooks

 private function fetchPhpHooks()
 {
     $hooksFileBasepath = t3lib_extMgm::extPath('t3tt') . 'Resources/Private/PHP/Transition/';
     // TODO: make this configurable
     $hooksFile = $hooksFileBasepath . $this->_transformationRequest->getPhpHooksFile();
     $this->_phpHookAggregation = (array) (include_once $hooksFile);
 }
开发者ID:nforgerit,项目名称:TYPO3-Transition-Tool,代码行数:7,代码来源:Transformator.php

示例6: init

 /**
  * Initialize handler
  *
  * @param	array		Configuration from DBAL
  * @param	object		Parent object
  * @return	boolean		True on success.
  */
 function init($config, $pObj)
 {
     $this->config = $config['config'];
     if (t3lib_extMgm::isLoaded('libunzipped')) {
         // Include Unzip library:
         require_once t3lib_extMgm::extPath('libunzipped') . 'class.tx_libunzipped.php';
         // Find database file:
         $sxc_file = t3lib_div::getFileAbsFileName($this->config['sxc_file']);
         if (@is_file($sxc_file)) {
             // Initialize Unzip object:
             $this->unzip = t3lib_div::makeInstance('tx_libunzipped');
             $this->spreadSheetFiles = $this->unzip->init($sxc_file);
             if (is_array($this->spreadSheetFiles)) {
                 return TRUE;
             } else {
                 $this->errorStatus = 'Spreadsheet could not be unzipped...?';
             }
         } else {
             $this->errorStatus = 'The Spreadsheet file "' . $sxc_file . '" was not found!';
         }
     } else {
         $this->errorStatus = 'This data handler needs the extension "tx_libunzipped" to be installed!';
     }
     return FALSE;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:32,代码来源:class.tx_dbal_handler_openoffice.php

示例7: initialize_editor

 function initialize_editor($pageId, $template_uid = 0)
 {
     // Initializes the module. Done in this function because we may need to re-initialize if data is submitted!
     global $tmpl, $tplRow, $theConstants;
     $tmpl = t3lib_div::makeInstance("t3lib_tsparser_ext");
     // Defined global here!
     $tmpl->tt_track = 0;
     // Do not log time-performance information
     $tmpl->init();
     $tmpl->ext_localGfxPrefix = t3lib_extMgm::extPath("tstemplate_ceditor");
     $tmpl->ext_localWebGfxPrefix = $GLOBALS["BACK_PATH"] . t3lib_extMgm::extRelPath("tstemplate_ceditor");
     $tplRow = $tmpl->ext_getFirstTemplate($pageId, $template_uid);
     // Get the row of the first VISIBLE template of the page. whereclause like the frontend.
     if (is_array($tplRow)) {
         // IF there was a template...
         // Gets the rootLine
         $sys_page = t3lib_div::makeInstance("t3lib_pageSelect");
         $rootLine = $sys_page->getRootLine($pageId);
         $tmpl->runThroughTemplates($rootLine, $template_uid);
         // This generates the constants/config + hierarchy info for the template.
         $theConstants = $tmpl->generateConfig_constants();
         // The editable constants are returned in an array.
         $tmpl->ext_categorizeEditableConstants($theConstants);
         // The returned constants are sorted in categories, that goes into the $tmpl->categories array
         $tmpl->ext_regObjectPositions($tplRow["constants"]);
         // This array will contain key=[expanded constantname], value=linenumber in template. (after edit_divider, if any)
         return 1;
     }
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:29,代码来源:class.tx_tstemplateceditor.php

示例8: initialize

 /**
  * Initializes the Module
  *
  * @return	void
  */
 public function initialize()
 {
     parent::init();
     $this->doc = t3lib_div::makeInstance('template');
     $this->doc->setModuleTemplate(t3lib_extMgm::extPath('recycler') . 'mod1/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->setExtDirectStateProvider();
     $this->pageRenderer = $this->doc->getPageRenderer();
     $this->relativePath = t3lib_extMgm::extRelPath('recycler');
     $this->pageRecord = t3lib_BEfunc::readPageAccess($this->id, $this->perms_clause);
     $this->isAccessibleForCurrentUser = $this->id && is_array($this->pageRecord) || !$this->id && $this->isCurrentUserAdmin();
     //don't access in workspace
     if ($GLOBALS['BE_USER']->workspace !== 0) {
         $this->isAccessibleForCurrentUser = false;
     }
     //read configuration
     $modTS = $GLOBALS['BE_USER']->getTSConfig('mod.recycler');
     if ($this->isCurrentUserAdmin()) {
         $this->allowDelete = true;
     } else {
         $this->allowDelete = $modTS['properties']['allowDelete'] == '1';
     }
     if (isset($modTS['properties']['recordsPageLimit']) && intval($modTS['properties']['recordsPageLimit']) > 0) {
         $this->recordsPageLimit = intval($modTS['properties']['recordsPageLimit']);
     }
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:31,代码来源:index.php

示例9: addFields_predefinedJS

 /**
  * Adds onchange listener on the drop down menu "predefined".
  * If the event is fired and old value was ".default", then empty some fields.
  *
  * @param array $config
  * @return string the javascript
  * @author Fabien Udriot
  */
 function addFields_predefinedJS($config)
 {
     $newRecord = 'true';
     if ($config['row']['pi_flexform'] != '') {
         $flexData = t3lib_div::xml2array($config['row']['pi_flexform']);
         if (isset($flexData['data']['sDEF']['lDEF']['predefined'])) {
             $newRecord = 'false';
         }
     }
     $uid = key($GLOBALS['SOBE']->editconf['tt_content']);
     if ($uid < 0 || empty($uid) || !strstr($uid, 'NEW')) {
         $uid = $GLOBALS['SOBE']->elementsData[0]['uid'];
     }
     //print_r($GLOBALS['SOBE']->elementsData[0]);
     $js = "<script>\n";
     $js .= "/*<![CDATA[*/\n";
     $divId = $GLOBALS['SOBE']->tceforms->dynNestedStack[0][1];
     if (!$divId) {
         //$divId = 'DTM-' . $uid;
         $divId = "DIV.c-tablayer";
     } else {
         $divId .= "-DIV";
     }
     $js .= "var uid = '" . $uid . "'\n";
     $js .= "var flexformBoxId = '" . $divId . "'\n";
     //$js .= "var flexformBoxId = 'DIV.c-tablayer'\n";
     $js .= "var newRecord = " . $newRecord . "\n";
     $js .= file_get_contents(t3lib_extMgm::extPath('formhandler') . 'Resources/JS/addFields_predefinedJS.js');
     $js .= "/*]]>*/\n";
     $js .= "</script>\n";
     return $js;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:40,代码来源:class.tx_dynaflex.php

示例10: 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

示例11: __construct

 /**
  * @param String (FILENAME) $filename
  */
 public function __construct($filename)
 {
     $filepath = t3lib_extMgm::extPath('t3tt') . 'Resources/Private/XSLT/Stylesheets/Snippets/';
     if (!file_exists($filepath . $filename)) {
         throw new Tx_T3tt_Domain_Model_Exception_InvalidParamsException("Given Snippetfile `" . $filepath . $filename . "' does not exist.");
     }
     $this->_filename = $filepath . $filename;
 }
开发者ID:nforgerit,项目名称:TYPO3-Transition-Tool,代码行数:11,代码来源:Snippet.php

示例12: 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

示例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()
 {
     $llFile = t3lib_extMgm::extPath('newssdf') . 'locallang.xml';
     // Patch suggested by Marc Neuhaus on forge, concerning TYPO3 v. 6.0 compatibility; Manually applied by RICC
     $LOCAL_LANG = tx_ttnews_compatibility::getInstance()->readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
     //$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
     return $LOCAL_LANG;
 }
开发者ID:adico60,项目名称:newssdf,代码行数:13,代码来源:class.tx_newssdf_pi1_wizicon.php

示例14: proc

 function proc($wizardItems)
 {
     global $LANG;
     // get language file
     include t3lib_extMgm::extPath('sema_sourcecode') . 'pi1/locallang.php';
     $wizardItems["plugins_tx_semasourcecode_pi1"] = array("icon" => t3lib_extMgm::extRelPath("sema_sourcecode") . "pi1/ce_wiz.gif", "title" => $LANG->getLLL('ext_title', $LOCAL_LANG), "description" => $LANG->getLLL('ext_desc', $LOCAL_LANG), "params" => "&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=sema_sourcecode_pi1");
     return $wizardItems;
 }
开发者ID:sema,项目名称:typo3-source-code-highlighter,代码行数:8,代码来源:class.tx_semasourcecode_pi1_wizicon.php

示例15: getLL

 /**
  * Get the locallang for class use out of an XML file
  *
  * @return  array   Array of the locallang data
  */
 function getLL()
 {
     $path2llXml = t3lib_extMgm::extPath('pdfcontroller') . 'locallang_db.xml';
     $llXml = implode('', file($path2llXml));
     $arr_ll = t3lib_div::xml2array($llXml, $NSprefix = '', $reportDocTag = false);
     $LOCAL_LANG = $arr_ll['data'];
     return $LOCAL_LANG;
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:13,代码来源:class.tx_pdfcontroller_pi1_be_wizicon.php


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