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


PHP t3lib_extMgm::extRelPath方法代码示例

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


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

示例1: proc

 /**
  * Processing the wizard items array
  *
  * @param	array		$wizardItems: The wizard items
  * @return	Modified array with wizard items
  */
 function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     $wizardItems['plugins_tx_rggooglemap_pi1'] = array('icon' => t3lib_extMgm::extRelPath('rggooglemap') . 'pi1/ce_wiz.png', 'title' => $LANG->getLLL('pi1_title', $LL), 'description' => $LANG->getLLL('pi1_plus_wiz_description', $LL), 'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=rggooglemap_pi1');
     return $wizardItems;
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:13,代码来源:class.tx_rggooglemap_pi1_wizicon.php

示例2: main

 /**
  * Main function, adding the item to input menuItems array
  *
  * @param	object		References to parent clickmenu objects.
  * @param	array		Array of existing menu items accumulated. New element added to this.
  * @param	string		Table name of the element
  * @param	integer		Record UID of the element
  * @return	array		Modified menuItems array
  */
 function main(&$backRef, $menuItems, $table, $uid)
 {
     global $BE_USER, $TCA, $LANG;
     $localItems = array();
     if (!$backRef->cmLevel && $uid > 0 && $BE_USER->check('modules', 'web_txversionM1')) {
         // Returns directly, because the clicked item was not from the pages table
         if (in_array('versioning', $backRef->disabledItems) || !$TCA[$table] || !$TCA[$table]['ctrl']['versioningWS']) {
             return $menuItems;
         }
         // Adds the regular item
         $LL = $this->includeLL();
         // "Versioning" element added:
         $url = t3lib_extMgm::extRelPath('version') . 'cm1/index.php?table=' . rawurlencode($table) . '&uid=' . $uid;
         $localItems[] = $backRef->linkItem($GLOBALS['LANG']->getLLL('title', $LL), $backRef->excludeIcon('<img src="' . $backRef->backPath . t3lib_extMgm::extRelPath('version') . 'cm1/cm_icon.gif" width="15" height="12" border="0" align="top" alt="" />'), $backRef->urlRefForCM($url), 1);
         // "Send to review" element added:
         $url = t3lib_extMgm::extRelPath('version') . 'cm1/index.php?id=' . ($table == 'pages' ? $uid : $backRef->rec['pid']) . '&table=' . rawurlencode($table) . '&uid=' . $uid . '&sendToReview=1';
         $localItems[] = $backRef->linkItem($GLOBALS['LANG']->getLLL('title_review', $LL), $backRef->excludeIcon('<img src="' . $backRef->backPath . t3lib_extMgm::extRelPath('version') . 'cm1/cm_icon.gif" width="15" height="12" border="0" align="top" alt="" />'), $backRef->urlRefForCM($url), 1);
         // Find position of "delete" element:
         $c = 0;
         foreach ($menuItems as $k => $value) {
             $c++;
             if (!strcmp($k, 'delete')) {
                 break;
             }
         }
         // .. subtract two (delete item + divider line)
         $c -= 2;
         // ... and insert the items just before the delete element.
         array_splice($menuItems, $c, 0, $localItems);
     }
     return $menuItems;
 }
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:41,代码来源:class.tx_version_cm1.php

示例3: main

 /**
  * Processing of clickmenu items
  *
  * @param	object		Reference to parent
  * @param	array		Menu items array to modify
  * @param	string		Table name
  * @param	integer		Uid of the record
  * @return	array		Menu item array, returned after modification
  * @todo	Skinning for icons...
  */
 function main(&$backRef, $menuItems, $table, $uid)
 {
     global $BE_USER, $TCA;
     $localItems = array();
     if ($backRef->cmLevel && t3lib_div::_GP('subname') == 'moreoptions' || $table === 'pages' && $uid == 0) {
         // Show import/export on second level menu OR root level.
         $LL = $this->includeLL();
         $modUrl = $backRef->backPath . t3lib_extMgm::extRelPath('impexp') . 'app/index.php';
         $url = $modUrl . '?tx_impexp[action]=export&id=' . ($table == 'pages' ? $uid : $backRef->rec['pid']);
         if ($table == 'pages') {
             $url .= '&tx_impexp[pagetree][id]=' . $uid;
             $url .= '&tx_impexp[pagetree][levels]=0';
             $url .= '&tx_impexp[pagetree][tables][]=_ALL';
         } else {
             $url .= '&tx_impexp[record][]=' . rawurlencode($table . ':' . $uid);
             $url .= '&tx_impexp[external_ref][tables][]=_ALL';
         }
         $localItems[] = $backRef->linkItem($GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->getLLL('export', $LL)), $backRef->excludeIcon(t3lib_iconWorks::getSpriteIcon('actions-document-export-t3d')), $backRef->urlRefForCM($url), 1);
         if ($table == 'pages') {
             $url = $modUrl . '?id=' . $uid . '&table=' . $table . '&tx_impexp[action]=import';
             $localItems[] = $backRef->linkItem($GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->getLLL('import', $LL)), $backRef->excludeIcon(t3lib_iconWorks::getSpriteIcon('actions-document-import-t3d')), $backRef->urlRefForCM($url), 1);
         }
     }
     return array_merge($menuItems, $localItems);
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:35,代码来源:class.tx_impexp_clickmenu.php

示例4: proc

 /**
  * Adds the plugin wizard icon
  *
  * @param 	array 	Input array with wizard items for plugins
  * @return 	array 	Modified input array, having the items for plugin added.
  */
 public function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     $wizardItems['plugins_tx_' . $this->extKey] = array('icon' => t3lib_extMgm::extRelPath($this->extKey) . $this->iconPath, 'title' => $LANG->getLLL('plugin.' . $this->extKey . '.label', $LL), 'description' => $LANG->getLLL('plugin.' . $this->extKey . '.description', $LL), 'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=tx_' . $this->extKey);
     return $wizardItems;
 }
开发者ID:RocKordier,项目名称:typo3-mklib,代码行数:13,代码来源:class.tx_mklib_util_WizIcon.php

示例5: proc

 /**
  * Adds the formhandler wizard icon
  *
  * @param	array		Input array with wizard items for plugins
  * @return	array		Modified input array, having the item for formhandler
  * pi1 added.
  */
 function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     $wizardItems['plugins_tx_formhandler_pi1'] = array('icon' => t3lib_extMgm::extRelPath('formhandler') . 'Resources/Images/ce_wiz_pi1.png', 'title' => $LANG->getLLL('wizard_pi1.title', $LL), 'description' => $LANG->getLLL('tt_content.pi1_plus_wiz_description', $LL), 'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=formhandler_pi1');
     return $wizardItems;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:14,代码来源:class.tx_formhandler_wizicon.php

示例6: proc

 /**
  * Adds the formhandler wizard icon
  *
  * @param array $wizardItems Input array with wizard items for plugins
  *
  * @return array Modified input array, having the semantic template
  *               pi1 item added.
  */
 public function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     $wizardItems['plugins_tx_formhandler_pi1'] = array('icon' => t3lib_extMgm::extRelPath('nr_semantic_templates') . 'res/ce_wiz_pi1.png', 'title' => $LANG->getLLL('tt_content.list_type_pi1', $LL), 'description' => $LANG->getLLL('tt_content.wiz_description_pi1', $LL), 'params' => '&defVals[tt_content][CType]=list' . '&defVals[tt_content][list_type]=nr_semantic_templates_pi1');
     return $wizardItems;
 }
开发者ID:netresearch,项目名称:t3x-nr_semantic_templates,代码行数:15,代码来源:class.tx_nrsemantictemplates_wizicon.php

示例7: proc

 /**
  * Processing the wizard items array
  *
  * @param	array		$wizardItems: The wizard items
  * @return	Modified array with wizard items
  */
 function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     $wizardItems['plugins_ameos_formidable_pi2'] = array('icon' => t3lib_extMgm::extRelPath('ameos_formidable') . 'pi2/ce_wiz.gif', 'title' => 'FORMIDABLE_INT cObj (not cached)', 'description' => 'Formidable standard plugins to invoke and run your XML application (not cached)', 'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=ameos_formidable_pi2');
     return $wizardItems;
 }
开发者ID:preinboth,项目名称:formidable,代码行数:13,代码来源:class.tx_ameosformidable_pi2_wizicon.php

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

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

示例10: proc

 /**
  * Adds the newloginbox wizard icon
  *
  * @param	array		Input array with wizard items for plugins
  * @return	array		Modified input array, having the item for newloginbox added.
  */
 function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     $wizardItems['plugins_tx_ttnews_pi'] = array('icon' => t3lib_extMgm::extRelPath('tt_news') . 'pi/ce_wiz.gif', 'title' => $LANG->getLLL('pi_title', $LL), 'description' => $LANG->getLLL('pi_plus_wiz_description', $LL), 'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=9');
     return $wizardItems;
 }
开发者ID:ghanshyamgohel,项目名称:tt_news,代码行数:13,代码来源:class.tx_ttnews_wizicon.php

示例11: displayMessage

    /**
     * [Describe function...]
     *
     * @return	[type]		...
     */
    function displayMessage(&$params, &$tsObj)
    {
        $out = '';
        if ($this->compatibility()->int_from_ver(TYPO3_version) < 4003000) {
            // 4.3.0 comes with flashmessages styles. For older versions we include the needed styles here
            $cssPath = $GLOBALS['BACK_PATH'] . t3lib_extMgm::extRelPath('tt_news');
            $out .= '<link rel="stylesheet" type="text/css" href="' . $cssPath . 'compat/flashmessages.css" media="screen" />';
        }
        if ($this->compatibility()->int_from_ver(TYPO3_version) < 4005000) {
            $link = 'index.php?&amp;id=0&amp;CMD[showExt]=tt_news&amp;SET[singleDetails]=updateModule';
        } else {
            $link = 'mod.php?&amp;id=0&amp;M=tools_em&amp;CMD[showExt]=tt_news&amp;SET[singleDetails]=updateModule';
        }
        $out .= '
		<div style="position:absolute;top:10px;right:10px; width:300px;">
			<div class="typo3-message message-information">
   				<div class="message-header">' . $GLOBALS['LANG']->sL('LLL:EXT:tt_news/locallang.xml:extmng.updatermsgHeader') . '</div>
  				<div class="message-body">
  					' . $GLOBALS['LANG']->sL('LLL:EXT:tt_news/locallang.xml:extmng.updatermsg') . '<br />
  					<a style="text-decoration:underline;" href="' . $link . '">
  					' . $GLOBALS['LANG']->sL('LLL:EXT:tt_news/locallang.xml:extmng.updatermsgLink') . '</a>
  				</div>
  			</div>
  		</div>
  		';
        return $out;
    }
开发者ID:ghanshyamgohel,项目名称:tt_news,代码行数:32,代码来源:class.tx_ttnews_tsparserext.php

示例12: proc

 function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     $wizardItems["plugins_tx_thexttable_pi1"] = array("icon" => t3lib_extMgm::extRelPath("th_exttable") . "pi1/ce_wiz.gif", "title" => $LANG->getLLL("pi1_title", $LL), "description" => $LANG->getLLL("pi1_plus_wiz_description", $LL), "params" => "&defVals[tt_content][CType]=th_exttable_pi1");
     return $wizardItems;
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:7,代码来源:class.tx_thexttable_pi1_wizicon.php

示例13: proc

 function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->getLL();
     $wizardItems['plugins_tx_pdfcontroller_pi1'] = array('icon' => t3lib_extMgm::extRelPath('pdfcontroller') . 'pi1/pdfcontroller_wizard.gif', 'title' => $LANG->getLLL('wizard.list_type_pi1', $LL), 'description' => $LANG->getLLL('wizard.list_type_pi1.desc', $LL), 'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=pdfcontroller_pi1');
     return $wizardItems;
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:7,代码来源:class.tx_pdfcontroller_pi1_be_wizicon.php

示例14: main

 /**
  * Main function
  *
  * @param   [type]    $$backRef: ...
  * @param   [type]    $menuItems: ...
  * @param   [type]    $table: ...
  * @param   [type]    $uid: ...
  * @return  [type]    ...
  */
 function main(&$backRef, $menuItems, $table, $uid)
 {
     global $BE_USER, $TCA, $LANG;
     $localItems = array();
     if (!$backRef->cmLevel) {
         // Returns directly, because the clicked item was not from the pages table
         if ($table == "tx_l10nmgr_cfg") {
             // Adds the regular item:
             $LL = $this->includeLL();
             // Repeat this (below) for as many items you want to add!
             // Remember to add entries in the localconf.php file for additional titles.
             $url = t3lib_extMgm::extRelPath("l10nmgr") . "cm1/index.php?id=" . $uid;
             $localItems[] = $backRef->linkItem($GLOBALS["LANG"]->getLLL("cm1_title", $LL), $backRef->excludeIcon('<img src="' . t3lib_extMgm::extRelPath("l10nmgr") . 'cm1/cm_icon.gif" width="15" height="12" border="0" align="top" />'), $backRef->urlRefForCM($url), 1);
         }
         $localItems["moreoptions_tx_l10nmgr_cm3"] = $backRef->linkItem('L10Nmgr tools', '', "top.loadTopMenu('" . t3lib_div::linkThisScript() . "&cmLevel=1&subname=moreoptions_tx_l10nmgrXX_cm3');return false;", 0, 1);
         // Simply merges the two arrays together and returns ...
         $menuItems = array_merge($menuItems, $localItems);
     } elseif (t3lib_div::_GET('subname') == 'moreoptions_tx_l10nmgrXX_cm3') {
         $url = t3lib_extMgm::extRelPath("l10nmgr") . "cm3/index.php?id=" . $uid . '&table=' . $table;
         $localItems[] = $backRef->linkItem('Create priority', '', $backRef->urlRefForCM($url . '&cmd=createPriority'), 1);
         $localItems[] = $backRef->linkItem('Manage priorities', '', $backRef->urlRefForCM($url . '&cmd=managePriorities'), 1);
         $localItems[] = $backRef->linkItem('Update Index', '', $backRef->urlRefForCM($url . '&cmd=updateIndex'), 1);
         $localItems[] = $backRef->linkItem('Flush Translations', '', $backRef->urlRefForCM($url . '&cmd=flushTranslations'), 1);
         $menuItems = array_merge($menuItems, $localItems);
     }
     return $menuItems;
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:36,代码来源:class.tx_l10nmgr_cm1.php

示例15: main

 /**
  * Main function
  *
  * @param clickMenu reference parent object
  * @param array menutitems for manipultation
  * @param string table name
  * @param int uid
  * @return array manipulated menuitems
  */
 function main(clickMenu $backRef, array $menuItems, $table, $uid)
 {
     if ($table != 'tx_crawler_configuration') {
         // early return without doing anything
         return $menuItems;
     }
     $localItems = array();
     $row = t3lib_BEfunc::getRecord($table, $uid, 'pid, name, processing_instruction_filter', '', true);
     if (!empty($row)) {
         if (version_compare(TYPO3_version, '4.5.0', '>=')) {
             $url = t3lib_extMgm::extRelPath('info') . 'mod1/index.php';
         } else {
             $url = $backRef->backPath . 'mod/web/info/index.php';
         }
         $url .= '?id=' . intval($row['pid']);
         $url .= '&SET[function]=tx_crawler_modfunc1';
         $url .= '&SET[crawlaction]=start';
         $url .= '&configurationSelection[]=' . $row['name'];
         foreach (t3lib_div::trimExplode(',', $row['processing_instruction_filter']) as $processing_instruction) {
             $url .= '&procInstructions[]=' . $processing_instruction;
         }
         // $onClick = $backRef->urlRefForCM($url);
         $onClick = "top.nextLoadModuleUrl='" . $url . "';top.goToModule('web_info',1);";
         $localItems[] = $backRef->linkItem('Crawl', $backRef->excludeIcon('<img src="' . $backRef->backPath . t3lib_extMgm::extRelPath('crawler') . 'icon_tx_crawler_configuration.gif" border="0" align="top" alt="" />'), $onClick, 0);
     }
     return array_merge($menuItems, $localItems);
 }
开发者ID:bia-nca,项目名称:crawler,代码行数:36,代码来源:class.tx_crawler_contextMenu.php


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