本文整理汇总了PHP中TYPO3\CMS\Core\Utility\GeneralUtility::_GP方法的典型用法代码示例。如果您正苦于以下问题:PHP GeneralUtility::_GP方法的具体用法?PHP GeneralUtility::_GP怎么用?PHP GeneralUtility::_GP使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Utility\GeneralUtility
的用法示例。
在下文中一共展示了GeneralUtility::_GP方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
/**
* Render the captcha image html
*
* @param string suffix to be appended to the extenstion key when forming css class names
* @return string The html used to render the captcha image
*/
public function render($suffix = '')
{
$value = '';
// Include the required JavaScript
$GLOBALS['TSFE']->additionalHeaderData[$this->extensionKey . '_freeCap'] = '<script type="text/javascript" src="' . GeneralUtility::createVersionNumberedFilename(ExtensionManagementUtility::siteRelPath($this->extensionKey) . 'Resources/Public/JavaScript/freeCap.js') . '"></script>';
// Disable caching
$GLOBALS['TSFE']->no_cache = 1;
// Get the plugin configuration
$settings = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS, $this->extensionName);
// Get the translation view helper
$objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
$translator = $objectManager->get('SJBR\\SrFreecap\\ViewHelpers\\TranslateViewHelper');
$translator->injectConfigurationManager($this->configurationManager);
// Generate the image url
$fakeId = GeneralUtility::shortMD5(uniqid(rand()), 5);
$siteURL = GeneralUtility::getIndpEnv('TYPO3_SITE_URL');
$L = GeneralUtility::_GP('L');
$urlParams = array('eID' => 'sr_freecap_EidDispatcher', 'id' => $GLOBALS['TSFE']->id, 'vendorName' => 'SJBR', 'extensionName' => 'SrFreecap', 'pluginName' => 'ImageGenerator', 'controllerName' => 'ImageGenerator', 'actionName' => 'show', 'formatName' => 'png', 'L' => $GLOBALS['TSFE']->sys_language_uid);
if ($GLOBALS['TSFE']->MP) {
$urlParams['MP'] = $GLOBALS['TSFE']->MP;
}
$urlParams['set'] = $fakeId;
$imageUrl = $siteURL . 'index.php?' . ltrim(GeneralUtility::implodeArrayForUrl('', $urlParams), '&');
// Generate the html text
$value = '<img' . $this->getClassAttribute('image', $suffix) . ' id="tx_srfreecap_captcha_image_' . $fakeId . '"' . ' src="' . htmlspecialchars($imageUrl) . '"' . ' alt="' . $translator->render('altText') . ' "/>' . '<span' . $this->getClassAttribute('cant-read', $suffix) . '>' . $translator->render('cant_read1') . ' <a href="#" onclick="this.blur();' . $this->extensionName . '.newImage(\'' . $fakeId . '\', \'' . $translator->render('noImageMessage') . '\');return false;">' . $translator->render('click_here') . '</a>' . $translator->render('cant_read2') . '</span>';
return $value;
}
示例2: main
/**
* Main function.
* Creates the header code in XHTML, the JavaScript, then the frameset for the two frames.
*
* @return void
* @todo Define visibility
*/
public function main()
{
// Setting GPvars:
$mode = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('mode');
$bparams = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('bparams');
// Set doktype:
$GLOBALS['TBE_TEMPLATE']->docType = 'xhtml_frames';
$GLOBALS['TBE_TEMPLATE']->JScode = $GLOBALS['TBE_TEMPLATE']->wrapScriptTags('
function closing() { //
close();
}
function setParams(mode,params) { //
parent.content.location.href = "browse_links.php?mode="+mode+"&bparams="+params;
}
if (!window.opener) {
alert("ERROR: Sorry, no link to main window... Closing");
close();
}
');
$this->content .= $GLOBALS['TBE_TEMPLATE']->startPage($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:TYPO3_Element_Browser'));
// URL for the inner main frame:
$url = $GLOBALS['BACK_PATH'] . 'browse_links.php?mode=' . rawurlencode($mode) . '&bparams=' . rawurlencode($bparams);
// Create the frameset for the window:
// Formerly there were a ' onunload="closing();"' in the <frameset> tag - but it failed on Safari browser on Mac unless the handler was "onUnload"
$this->content .= '
<frameset rows="*,1" framespacing="0" frameborder="0" border="0">
<frame name="content" src="' . htmlspecialchars($url) . '" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
<frame name="menu" src="' . $GLOBALS['BACK_PATH'] . 'dummy.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />
</frameset>
';
$this->content .= '
</html>';
}
示例3: init
/**
* Initializes the Module
* @return void
*/
function init()
{
$id = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'));
$tsconfig = \TYPO3\CMS\Backend\Utility\BackendUtility::getModTSconfig($id, 'tx_formhandler_mod1');
$this->settings = $tsconfig['properties']['config.'];
parent::init();
}
示例4: init
/**
* Initialize script class
*
* @return void
* @throws \TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException
*/
protected function init()
{
// Setting target, which must be a file reference to a file within the mounts.
$this->target = $this->origTarget = $fileIdentifier = GeneralUtility::_GP('target');
$this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
// create the file object
if ($fileIdentifier) {
$this->fileObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($fileIdentifier);
}
// Cleaning and checking target directory
if (!$this->fileObject) {
$title = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_mod_file_list.xlf:paramError', TRUE);
$message = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_mod_file_list.xlf:targetNoDir', TRUE);
throw new \RuntimeException($title . ': ' . $message, 1294586841);
}
if ($this->fileObject->getStorage()->getUid() === 0) {
throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException('You are not allowed to access files outside your storages', 1375889832);
}
// Setting the title and the icon
$icon = IconUtility::getSpriteIcon('apps-filetree-root');
$this->title = $icon . htmlspecialchars($this->fileObject->getStorage()->getName()) . ': ' . htmlspecialchars($this->fileObject->getIdentifier());
// Setting template object
$this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
$this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_edit.html');
$this->doc->backPath = $GLOBALS['BACK_PATH'];
$this->doc->JScode = $this->doc->wrapScriptTags('
function backToList() { //
top.goToModule("file_list");
}
');
$this->doc->form = '<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('tce_file')) . '" method="post" name="editform">';
}
示例5: render
/**
* Gets a constant
*
* @param string $constant The name of the constant
* @return string Constant-Value
*
* = Examples =
*
* <code title="Example">
* <theme:constant constant="themes.configuration.baseurl" />
* </code>
* <output>
* http://yourdomain.tld/
* (depending on your domain)
* </output>
*/
public function render($constant = '')
{
$pageWithTheme = \KayStrobach\Themes\Utilities\FindParentPageWithThemeUtility::find($this->getFrontendController()->id);
$pageLanguage = (int) GeneralUtility::_GP('L');
// instantiate the cache
/** @var \TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache */
$cache = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->getCache('themes_cache');
$cacheLifeTime = 60 * 60 * 24 * 7 * 365 * 20;
$cacheIdentifierString = 'theme-of-page-' . $pageWithTheme . '-of-language-' . $pageLanguage;
$cacheIdentifier = sha1($cacheIdentifierString);
// If flatSetup is available, cache it
$flatSetup = $this->getFrontendController()->tmpl->flatSetup;
if (isset($flatSetup) && is_array($flatSetup) && count($flatSetup) > 0) {
$cache->set($cacheIdentifier, $flatSetup, array('page-' . $this->getFrontendController()->id), $cacheLifeTime);
} else {
$flatSetup = $cache->get($cacheIdentifier);
}
// If flatSetup not available and not cached, generate it!
if (!isset($flatSetup) || !is_array($flatSetup)) {
$this->getFrontendController()->tmpl->generateConfig();
$flatSetup = $this->getFrontendController()->tmpl->flatSetup;
$cache->set($cacheIdentifier, $flatSetup, array('page-' . $this->getFrontendController()->id), $cacheLifeTime);
}
// check if there is a value and return it
if (is_array($flatSetup) && array_key_exists($constant, $flatSetup)) {
return $this->getFrontendController()->tmpl->substituteConstants($flatSetup[$constant]);
}
return NULL;
}
示例6: initializeAction
/**
* Action initializer
*
* @return void
*/
protected function initializeAction()
{
$pageId = (int) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id');
$frameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
$persistenceConfiguration = ['persistence' => ['storagePid' => $pageId]];
$this->configurationManager->setConfiguration(array_merge($frameworkConfiguration, $persistenceConfiguration));
}
示例7: main
/**
* Main function. Generates all output.
*
* @author Martin Helmich <m.helmich@mittwald.de>
* @version 2007-05-02
*
* @param string $content The content that was generated until now
* @return string The import script content
*
* @uses display_step0
* @uses display_step1
* @uses display_step2
* @uses outputImportSettings
*/
function main($content)
{
$this->importData = GeneralUtility::_GP('tx_mmforum_import');
if (!isset($this->importData['step'])) {
$this->importData['step'] = 0;
}
if (isset($this->importData['extdb']) && !is_array($this->importData['extdb'])) {
$this->importData['extdb'] = stripslashes($this->importData['extdb']);
$this->importData['extdb'] = unserialize($this->importData['extdb']);
}
if ($this->importData['action'] == 'phpbb') {
$this->maxSteps = 6;
} else {
$this->maxSteps = 4;
}
switch ($this->importData['step']) {
case 0:
$content .= $this->display_step0();
break;
case 1:
$content .= $this->display_step1();
break;
case 2:
$content .= $this->display_step2();
break;
}
$content .= $this->outputImportSettings();
return $content;
}
示例8: queryTable
/**
* Queries a table for records and completely processes them
*
* Returns a two-dimensional array of almost finished records;
* they only need to be put into a <li>-structure
*
* @param array $params
* @param integer $recursionCounter recursion counter
* @return mixed array of rows or FALSE if nothing found
*/
public function queryTable(&$params, $recursionCounter = 0)
{
$uid = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('uid');
$records = parent::queryTable($params, $recursionCounter);
if ($this->checkIfTagIsNotFound($records)) {
$text = htmlspecialchars($params['value']);
$javaScriptCode = '
var value=\'' . $text . '\';
Ext.Ajax.request({
url : \'ajax.php\' ,
params : { ajaxID : \'News::createTag\', item:value,newsid:\'' . $uid . '\' },
success: function ( result, request ) {
var arr = result.responseText.split(\'-\');
setFormValueFromBrowseWin(arr[5], arr[2] + \'_\' + arr[0], arr[1]);
TBE_EDITOR.fieldChanged(arr[3], arr[6], arr[4], arr[5]);
},
failure: function ( result, request) {
Ext.MessageBox.alert(\'Failed\', result.responseText);
}
});
';
$javaScriptCode = trim(str_replace('"', '\'', $javaScriptCode));
$link = implode(' ', explode(chr(10), $javaScriptCode));
$records['tx_news_domain_model_tag_' . strlen($text)] = array('text' => '<div onclick="' . $link . '">
<span class="suggest-path">
<a>' . sprintf($GLOBALS['LANG']->sL('LLL:EXT:news/Resources/Private/Language/locallang_be.xml:tag_suggest'), $text) . '</a>
</span></div>', 'table' => 'tx_news_domain_model_tag', 'class' => 'suggest-noresults', 'style' => 'background-color:#E9F1FE !important;background-image:url(' . $this->getDummyIconPath() . ');');
}
return $records;
}
示例9: init
/**
* Initialize
*
* @return void
*/
protected function init()
{
// Initialize GPvars:
$this->target = GeneralUtility::_GP('target');
$this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
if (!$this->returnUrl) {
$this->returnUrl = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir . BackendUtility::getModuleUrl('file_list') . '&id=' . rawurlencode($this->target);
}
// Create the folder object
if ($this->target) {
$this->folderObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($this->target);
}
if ($this->folderObject->getStorage()->getUid() === 0) {
throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException('You are not allowed to access folders outside your storages', 1375889834);
}
// Cleaning and checking target directory
if (!$this->folderObject) {
$title = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_mod_file_list.xlf:paramError', TRUE);
$message = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_mod_file_list.xlf:targetNoDir', TRUE);
throw new \RuntimeException($title . ': ' . $message, 1294586843);
}
// Setting the title and the icon
$icon = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('apps-filetree-root');
$this->title = $icon . htmlspecialchars($this->folderObject->getStorage()->getName()) . ': ' . htmlspecialchars($this->folderObject->getIdentifier());
// Setting template object
$this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
$this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_upload.html');
$this->doc->backPath = $GLOBALS['BACK_PATH'];
$this->doc->form = '<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('tce_file')) . '" method="post" name="editform" enctype="' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['form_enctype'] . '">';
}
示例10: findById
/**
* @param string $listenerId
* @return object
*/
public function findById($listenerId)
{
if ($listenerId) {
$object = parent::findById($listenerId);
if (!$object) {
list($table, $uid, $rawListenerId) = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode('-', $listenerId, false, 3);
// try to generate the listener cache
if ($table == 'tt_content' && $uid) {
$object = $this->serviceContent->generateListenerCacheForContentElement($table, $uid);
} elseif ($table == 'h' || $table == 'hInt') {
$settingsHash = $uid;
$encodedSettings = $rawListenerId;
if (\TYPO3\CMS\Core\Utility\GeneralUtility::hmac($encodedSettings) == $settingsHash) {
$loadContentFromTypoScript = str_replace('---', '.', $encodedSettings);
$eventsToListen = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('e');
$object = $this->serviceContent->generateListenerCacheForHijaxPi1($loadContentFromTypoScript, $eventsToListen[$listenerId], $table == 'h');
}
}
if ($table == 'f') {
$settingsHash = $uid;
$encodedSettings = $rawListenerId;
if (\TYPO3\CMS\Core\Utility\GeneralUtility::hmac($encodedSettings) == $settingsHash) {
$fallbackTypoScriptConfiguration = str_replace('---', '.', $encodedSettings);
$object = $this->serviceContent->generateListenerCacheForTypoScriptFallback($fallbackTypoScriptConfiguration);
}
}
}
return $object;
} else {
return null;
}
}
示例11: renderStatic
/**
* @param array $arguments
* @param callable $renderChildrenClosure
* @param RenderingContextInterface $renderingContext
*
* @return string
*/
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
{
$id = GeneralUtility::_GP('id');
$pageRecord = BackendUtility::readPageAccess($id, $GLOBALS['BE_USER']->getPagePermsClause(1));
// Add icon with clickmenu, etc:
/** @var IconFactory $iconFactory */
$iconFactory = GeneralUtility::makeInstance(IconFactory::class);
if ($pageRecord['uid']) {
// If there IS a real page
$altText = BackendUtility::getRecordIconAltText($pageRecord, 'pages');
$theIcon = '<span title="' . $altText . '">' . $iconFactory->getIconForRecord('pages', $pageRecord, Icon::SIZE_SMALL)->render() . '</span>';
// Make Icon:
$theIcon = BackendUtility::wrapClickMenuOnIcon($theIcon, 'pages', $pageRecord['uid']);
// Setting icon with clickmenu + uid
$theIcon .= ' <em>[PID: ' . $pageRecord['uid'] . ']</em>';
} else {
// On root-level of page tree
// Make Icon
$theIcon = '<span title="' . htmlspecialchars($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']) . '">' . $iconFactory->getIcon('apps-pagetree-page-domain', Icon::SIZE_SMALL)->render() . '</span>';
if ($GLOBALS['BE_USER']->user['admin']) {
$theIcon = BackendUtility::wrapClickMenuOnIcon($theIcon, 'pages', 0);
}
}
return $theIcon;
}
示例12: getSortingLinks
protected function getSortingLinks()
{
$sortHelper = GeneralUtility::makeInstance('Tx_Solr_Sorting', $this->configuration['search.']['sorting.']['options.']);
$query = $this->search->getQuery();
$queryLinkBuilder = GeneralUtility::makeInstance('Tx_Solr_Query_LinkBuilder', $query);
$queryLinkBuilder->setLinkTargetPageId($this->parentPlugin->getLinkTargetPageId());
$sortOptions = array();
$urlParameters = GeneralUtility::_GP('tx_solr');
$urlSortParameters = GeneralUtility::trimExplode(',', $urlParameters['sort']);
$configuredSortOptions = $sortHelper->getSortOptions();
foreach ($configuredSortOptions as $sortOptionName => $sortOption) {
$sortDirection = $this->configuration['search.']['sorting.']['defaultOrder'];
if (!empty($this->configuration['search.']['sorting.']['options.'][$sortOptionName . '.']['defaultOrder'])) {
$sortDirection = $this->configuration['search.']['sorting.']['options.'][$sortOptionName . '.']['defaultOrder'];
}
$sortIndicator = $sortDirection;
$currentSortOption = '';
$currentSortDirection = '';
foreach ($urlSortParameters as $urlSortParameter) {
$explodedUrlSortParameter = explode(' ', $urlSortParameter);
if ($explodedUrlSortParameter[0] == $sortOptionName) {
list($currentSortOption, $currentSortDirection) = $explodedUrlSortParameter;
break;
}
}
// toggle sorting direction for the current sorting field
if ($currentSortOption == $sortOptionName) {
switch ($currentSortDirection) {
case 'asc':
$sortDirection = 'desc';
$sortIndicator = 'asc';
break;
case 'desc':
$sortDirection = 'asc';
$sortIndicator = 'desc';
break;
}
}
if (!empty($this->configuration['search.']['sorting.']['options.'][$sortOptionName . '.']['fixedOrder'])) {
$sortDirection = $this->configuration['search.']['sorting.']['options.'][$sortOptionName . '.']['fixedOrder'];
}
$sortParameter = $sortOptionName . ' ' . $sortDirection;
$temp = array('link' => $queryLinkBuilder->getQueryLink($sortOption['label'], array('sort' => $sortParameter)), 'url' => $queryLinkBuilder->getQueryUrl(array('sort' => $sortParameter)), 'optionName' => $sortOptionName, 'field' => $sortOption['field'], 'label' => $sortOption['label'], 'is_current' => '0', 'direction' => $sortDirection, 'indicator' => $sortIndicator, 'current_direction' => ' ');
// set sort indicator for the current sorting field
if ($currentSortOption == $sortOptionName) {
$temp['selected'] = 'selected="selected"';
$temp['current'] = 'current';
$temp['is_current'] = '1';
$temp['current_direction'] = $sortIndicator;
}
// special case relevance: just reset the search to normal behavior
if ($sortOptionName == 'relevance') {
$temp['link'] = $queryLinkBuilder->getQueryLink($sortOption['label'], array('sort' => NULL));
$temp['url'] = $queryLinkBuilder->getQueryUrl(array('sort' => NULL));
unset($temp['direction'], $temp['indicator']);
}
$sortOptions[] = $temp;
}
return $sortOptions;
}
示例13: get
/**
* Returns the locale object for frontend
*
* @param \Aimeos\MShop\Context\Item\Iface $context Context object
* @param \TYPO3\CMS\Extbase\Mvc\RequestInterface|null $request Request object
* @return \Aimeos\MShop\Locale\Item\Iface Locale item object
*/
public static function get(\Aimeos\MShop\Context\Item\Iface $context, \TYPO3\CMS\Extbase\Mvc\RequestInterface $request = null)
{
if (!isset(self::$locale)) {
$config = $context->getConfig();
$sitecode = $config->get('mshop/locale/site', 'default');
$name = $config->get('typo3/param/name/site', 'loc_site');
if ($request !== null && $request->hasArgument($name) === true) {
$sitecode = $request->getArgument($name);
} elseif (($value = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('S')) !== null) {
$sitecode = $value;
}
$langid = $config->get('mshop/locale/language', '');
$name = $config->get('typo3/param/name/language', 'loc_language');
if ($request !== null && $request->hasArgument($name) === true) {
$langid = $request->getArgument($name);
} elseif (isset($GLOBALS['TSFE']->config['config']['language'])) {
$langid = $GLOBALS['TSFE']->config['config']['language'];
}
$currency = $config->get('mshop/locale/currency', '');
$name = $config->get('typo3/param/name/currency', 'loc_currency');
if ($request !== null && $request->hasArgument($name) === true) {
$currency = $request->getArgument($name);
} elseif (($value = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('C')) !== null) {
$currency = $value;
}
$localeManager = \Aimeos\MShop\Locale\Manager\Factory::createManager($context);
self::$locale = $localeManager->bootstrap($sitecode, $langid, $currency);
}
return self::$locale;
}
示例14: __construct
/**
* Constructor, prepare the context information
*/
public function __construct()
{
$formValues = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('install');
if (isset($formValues['context'])) {
$this->backendContext = $formValues['context'] === 'backend';
}
}
示例15: init
/**
* Initialize
*
* @throws InsufficientFolderAccessPermissionsException
*/
protected function init()
{
// Initialize GPvars:
$this->target = GeneralUtility::_GP('target');
$this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
if (!$this->returnUrl) {
$this->returnUrl = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir . BackendUtility::getModuleUrl('file_list') . '&id=' . rawurlencode($this->target);
}
// Create the folder object
if ($this->target) {
$this->folderObject = ResourceFactory::getInstance()->retrieveFileOrFolderObject($this->target);
}
if ($this->folderObject->getStorage()->getUid() === 0) {
throw new InsufficientFolderAccessPermissionsException('You are not allowed to access folders outside your storages', 1375889834);
}
// Cleaning and checking target directory
if (!$this->folderObject) {
$title = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_mod_file_list.xlf:paramError', true);
$message = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_mod_file_list.xlf:targetNoDir', true);
throw new \RuntimeException($title . ': ' . $message, 1294586843);
}
// Setting up the context sensitive menu
$this->moduleTemplate->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Backend/ClickMenu');
// building pathInfo for metaInformation
$pathInfo = ['combined_identifier' => $this->folderObject->getCombinedIdentifier()];
$this->moduleTemplate->getDocHeaderComponent()->setMetaInformation($pathInfo);
}