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


PHP ExtensionManager::extPath方法代码示例

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


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

示例1: initialize_editor

 /**
  * Initialize editor
  *
  * @param integer $pageId
  * @param integer $template_uid
  * @return integer
  * @todo Define visibility
  */
 public 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 = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\ExtendedTemplateService');
     // Defined global here!
     $tmpl->tt_track = 0;
     // Do not log time-performance information
     $tmpl->init();
     $tmpl->ext_localGfxPrefix = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('tstemplate_ceditor');
     $tmpl->ext_localWebGfxPrefix = $GLOBALS['BACK_PATH'] . \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('tstemplate_ceditor');
     // Get the row of the first VISIBLE template of the page. whereclause like the frontend.
     $tplRow = $tmpl->ext_getFirstTemplate($pageId, $template_uid);
     // IF there was a template...
     if (is_array($tplRow)) {
         // Gets the rootLine
         $sys_page = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
         $rootLine = $sys_page->getRootLine($pageId);
         // This generates the constants/config + hierarchy info for the template.
         $tmpl->runThroughTemplates($rootLine, $template_uid);
         // The editable constants are returned in an array.
         $theConstants = $tmpl->generateConfig_constants();
         // The returned constants are sorted in categories, that goes into the $tmpl->categories array
         $tmpl->ext_categorizeEditableConstants($theConstants);
         // This array will contain key=[expanded constantname], value=linenumber in template. (after edit_divider, if any)
         $tmpl->ext_regObjectPositions($tplRow['constants']);
         return 1;
     }
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:37,代码来源:TypoScriptTemplateConstantEditorModuleFunctionController.php

示例2: initialize

 /**
  * Initializes the Module
  *
  * @return 	void
  */
 public function initialize()
 {
     parent::init();
     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
     $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('recycler') . 'mod1/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->setExtDirectStateProvider();
     $this->pageRenderer = $this->doc->getPageRenderer();
     $this->relativePath = \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('recycler');
     $this->pageRecord = \TYPO3\CMS\Backend\Utility\BackendUtility::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:noxludo,项目名称:TYPO3v4-Core,代码行数:31,代码来源:RecyclerModuleController.php

示例3: main

 public function main($parentObject)
 {
     if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('static_info_tables') && file_exists(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php')) {
         require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php';
     } else {
         $this->pluginButtons = \TYPO3\CMS\Core\Utility\GeneralUtility::rmFromList('language', $this->pluginButtons);
     }
     return parent::main($parentObject);
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:9,代码来源:Language.php

示例4: __construct

 /**
  * Initializes the Module
  *
  * @return void
  */
 public function __construct()
 {
     parent::init();
     // Initialize document
     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
     $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('taskcenter') . 'res/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->getPageRenderer()->loadScriptaculous('effects,dragdrop');
     $this->doc->addStyleSheet('tx_taskcenter', '../' . \TYPO3\CMS\Core\Extension\ExtensionManager::siteRelPath('taskcenter') . 'res/mod_styles.css');
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:15,代码来源:TaskModuleController.php

示例5: showInstallToolEnableRequest

 /**
  * Shows warning message about ENABLE_INSTALL_TOOL file and a button to create this file
  *
  * @return void
  */
 protected function showInstallToolEnableRequest()
 {
     // Create instance of object for output of data
     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
     $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('install') . 'mod/mod_template.html');
     $this->doc->form = '<form method="post" id="t3-install-form-unlock" action="">';
     $this->doc->addStyleSheet('install', 'stylesheets/install/install.css');
     $this->doc->addStyleSheet('mod-install', \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('install') . 'mod/mod_styles.css');
     $markers = $buttons = array();
     $markers['CONTENT'] = $this->renderMessage();
     $content = $this->doc->moduleBody('', $buttons, $markers);
     $this->doc->postCode = '<input type="hidden" name="enableInstallTool" value="1" />' . \TYPO3\CMS\Backend\Form\FormEngine::getHiddenTokenField('installToolEnableToken');
     echo $this->doc->render('', $content);
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:19,代码来源:InstallToolModuleController.php

示例6: renderByPid

 /**
  * Render sys_notes by pid
  *
  * @param string $pidList comma separated list of page ids
  * @return string
  */
 public function renderByPid($pidList)
 {
     /** @var $repository \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository */
     $repository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\SysNote\\Domain\\Repository\\SysNoteRepository');
     $notes = $repository->findAllByPidList($pidList);
     $out = '';
     if ($this->notesAvailable($notes)) {
         /** @var $fluidView \TYPO3\CMS\Fluid\View\StandaloneView */
         $fluidView = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Fluid\\View\\StandaloneView');
         $templatePathAndFilename = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('sys_note', 'Resources/Private/Template/List.html');
         $fluidView->setTemplatePathAndFilename($templatePathAndFilename);
         $fluidView->assign('notes', $notes);
         $out = $fluidView->render();
     }
     return $out;
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:22,代码来源:SysNoteRenderer.php

示例7: processAjaxRequest

 /**
  * General processor for AJAX requests.
  * (called by typo3/ajax.php)
  *
  * @param array $params Additional parameters (not used here)
  * @param \TYPO3\CMS\Core\Http\AjaxRequestHandler &$ajaxObj The TYPO3AJAX object of this request
  * @return void
  * @author Oliver Hader <oliver@typo3.org>
  */
 public function processAjaxRequest($params, \TYPO3\CMS\Core\Http\AjaxRequestHandler &$ajaxObj)
 {
     $this->ajaxObj = $ajaxObj;
     // Load the TSref XML information:
     $this->loadFile(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('t3editor') . 'res/tsref/tsref.xml');
     $ajaxIdParts = explode('::', $ajaxObj->getAjaxID(), 2);
     $ajaxMethod = $ajaxIdParts[1];
     $response = array();
     // Process the AJAX requests:
     if ($ajaxMethod == 'getTypes') {
         $ajaxObj->setContent($this->getTypes());
         $ajaxObj->setContentFormat('jsonbody');
     } elseif ($ajaxMethod == 'getDescription') {
         $ajaxObj->addContent('', $this->getDescription(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('typeId'), \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('parameterName')));
         $ajaxObj->setContentFormat('plain');
     }
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:26,代码来源:TypoScriptReferenceLoader.php

示例8:

<?php

/*
 * @deprecated since 6.0, the classname tx_scheduler_CronCmd_Normalize and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/scheduler/Classes/CronCommand/NormalizeCommand.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('scheduler') . 'Classes/CronCommand/NormalizeCommand.php';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:8,代码来源:class.tx_scheduler_croncmd_normalize.php

示例9:

<?php

/*
 * @deprecated since 6.0, the classname tx_lowlevel_missing_files and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/integrity/Classes/MissingFilesCommand.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('integrity') . 'Classes/MissingFilesCommand.php';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:8,代码来源:class.missing_files.php

示例10:

<?php

/*
 * @deprecated since 6.0, the classname t3lib_utility_Dependency_Element and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/version/Classes/Dependency/ElementEntity.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Dependency/ElementEntity.php';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:8,代码来源:class.t3lib_utility_dependency_element.php

示例11:

<?php

/*
 * @deprecated since 6.0, the classname tx_form_System_Validate_Inarray and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/form/Classes/Validation/InArrayValidator.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('form') . 'Classes/Validation/InArrayValidator.php';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:8,代码来源:Inarray.php

示例12:

<?php

/*
 * @deprecated since 6.0, the classname t3lib_TStemplate and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/core/Classes/TypoScript/TemplateService.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('core') . 'Classes/TypoScript/TemplateService.php';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:8,代码来源:class.t3lib_tstemplate.php

示例13:

<?php

/*
 * @deprecated since 6.0, the classname tslib_pibase and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('frontend') . 'Classes/Plugin/AbstractPlugin.php';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:8,代码来源:class.tslib_pibase.php

示例14:

<?php

/*
 * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_ListTest and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Utility/ListUtilityTest.php';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:8,代码来源:ListTest.php

示例15:

<?php

/*
 * @deprecated since 6.0, the classname tx_form_View_Confirmation_Additional_Legend and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/form/Classes/View/Confirmation/Additional/LegendAdditionalElementView.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('form') . 'Classes/View/Confirmation/Additional/LegendAdditionalElementView.php';
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:8,代码来源:Legend.php


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