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


PHP GeneralUtility::implodeArrayForUrl方法代码示例

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


在下文中一共展示了GeneralUtility::implodeArrayForUrl方法的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;
 }
开发者ID:olek07,项目名称:GiGaBonus,代码行数:33,代码来源:ImageViewHelper.php

示例2: render

 /**
  * @param string $parameter
  * @param string $target
  * @param int $noCache
  * @param int $useCacheHash
  * @param array $additionalParams
  * @param string $ATagParams
  * @param string $extTarget
  * @return mixed
  */
 public function render($parameter, $target = '', $noCache = 0, $useCacheHash = 1, $additionalParams = array(), $ATagParams = '', $extTarget = '')
 {
     $typoLinkConf = array('parameter' => $parameter);
     if ($target) {
         $typoLinkConf['target'] = $target;
     }
     if ($target) {
         $typoLinkConf['extTarget'] = $extTarget;
     }
     if ($noCache) {
         $typoLinkConf['no_cache'] = 1;
     }
     if ($useCacheHash) {
         $typoLinkConf['useCacheHash'] = 1;
     }
     if (count($additionalParams)) {
         $typoLinkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl('', $additionalParams);
     }
     if (strlen($ATagParams)) {
         $typoLinkConf['ATagParams'] = $ATagParams;
     }
     $linkText = $this->renderChildren();
     $textContentConf = array('typolink.' => $typoLinkConf, 'value' => $linkText);
     return $GLOBALS['TSFE']->cObj->cObjGetSingle('TEXT', $textContentConf);
 }
开发者ID:schnuutz,项目名称:ff_map,代码行数:35,代码来源:TypolinkViewHelper.php

示例3: getEntry

 /**
  * Renders entry for one page of the current document.
  *
  * @access	protected
  *
  * @param	integer		$number: The page to render
  * @param	string		$template: Parsed template subpart
  *
  * @return	string		The rendered entry ready for output
  */
 protected function getEntry($number, $template)
 {
     // Set current page if applicable.
     if (!empty($this->piVars['page']) && $this->piVars['page'] == $number) {
         $markerArray['###STATE###'] = 'cur';
     } else {
         $markerArray['###STATE###'] = 'no';
     }
     // Set page number.
     $markerArray['###NUMBER###'] = $number;
     // Set pagination.
     $markerArray['###PAGINATION###'] = $this->doc->physicalPagesInfo[$this->doc->physicalPages[$number]]['label'];
     // Get thumbnail or placeholder.
     if (!empty($this->doc->physicalPagesInfo[$this->doc->physicalPages[$number]]['files'][$this->conf['fileGrpThumbs']])) {
         $thumbnailFile = $this->doc->getFileLocation($this->doc->physicalPagesInfo[$this->doc->physicalPages[$number]]['files'][$this->conf['fileGrpThumbs']]);
     } elseif (!empty($this->conf['placeholder'])) {
         $thumbnailFile = $GLOBALS['TSFE']->tmpl->getFileName($this->conf['placeholder']);
     } else {
         $thumbnailFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pagegrid/placeholder.jpg';
     }
     $thumbnail = '<img alt="' . $markerArray['###PAGINATION###'] . '" src="' . $thumbnailFile . '" />';
     // Get new plugin variables for typolink.
     $piVars = $this->piVars;
     // Unset no longer needed plugin variables.
     // unset($piVars['pagegrid']) is for DFG Viewer compatibility!
     unset($piVars['pointer'], $piVars['DATA'], $piVars['pagegrid']);
     $piVars['page'] = $number;
     $linkConf = array('useCacheHash' => 1, 'parameter' => $this->conf['targetPid'], 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $piVars, '', TRUE, FALSE), 'title' => $markerArray['###PAGINATION###']);
     $markerArray['###THUMBNAIL###'] = $this->cObj->typoLink($thumbnail, $linkConf);
     return $this->cObj->substituteMarkerArray($template, $markerArray);
 }
开发者ID:jacmendt,项目名称:goobi-presentation,代码行数:41,代码来源:class.tx_dlf_pagegrid.php

示例4: renderForeignRecordHeaderControl_postProcess

 /**
  * Post-processing to define which control items to show. Possibly own icons can be added here.
  *
  * @param string $parentUid The uid of the parent (embedding) record (uid or NEW...)
  * @param string $foreignTable The table (foreign_table) we create control-icons for
  * @param array $childRecord The current record of that foreign_table
  * @param array $childConfig TCA configuration of the current field of the child record
  * @param boolean $isVirtual Defines whether the current records is only virtually shown and not physically part of the parent record
  * @param array $controlItems (reference) Associative array with the currently available control items
  *
  * @return void
  */
 public function renderForeignRecordHeaderControl_postProcess($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$controlItems)
 {
     if ($foreignTable != 'sys_file_reference') {
         return;
     }
     if (!GeneralUtility::isFirstPartOfStr($childRecord['uid_local'], 'sys_file_')) {
         return;
     }
     $parts = BackendUtility::splitTable_Uid($childRecord['uid_local']);
     if (!isset($parts[1])) {
         return;
     }
     $table = $childRecord['tablenames'];
     $uid = $parentUid;
     $arguments = GeneralUtility::_GET();
     if ($this->isValidRecord($table, $uid) && isset($arguments['edit'])) {
         $returnUrl = ['edit' => $arguments['edit'], 'returnUrl' => $arguments['returnUrl']];
         if (GeneralUtility::compat_version('7.0')) {
             $returnUrlGenerated = BackendUtility::getModuleUrl('record_edit', $returnUrl);
         } else {
             $returnUrlGenerated = 'alt_doc.php?' . ltrim(GeneralUtility::implodeArrayForUrl('', $returnUrl, '', true, true), '&') . BackendUtility::getUrlToken('editRecord');
         }
         $wizardArguments = ['P' => ['referenceUid' => $childRecord['uid'], 'returnUrl' => $returnUrlGenerated]];
         $wizardUri = BackendUtility::getModuleUrl('focuspoint', $wizardArguments);
     } else {
         $wizardUri = 'javascript:alert(\'Please save the base record first, because open this wizard will not save the changes in the current form!\');';
     }
     /** @var WizardService $wizardService */
     $wizardService = GeneralUtility::makeInstance('HDNET\\Focuspoint\\Service\\WizardService');
     $this->arrayUnshiftAssoc($controlItems, 'focuspoint', $wizardService->getWizardButton($wizardUri));
 }
开发者ID:mcmz,项目名称:focuspoint,代码行数:43,代码来源:InlineRecord.php

示例5: fetchFrontendResponse

 /**
  * @param array $requestArguments
  * @param bool $failOnFailure
  * @return Response
  */
 protected function fetchFrontendResponse(array $requestArguments, $failOnFailure = true)
 {
     if (!empty($requestArguments['url'])) {
         $requestUrl = '/' . ltrim($requestArguments['url'], '/');
     } else {
         $requestUrl = '/?' . GeneralUtility::implodeArrayForUrl('', $requestArguments);
     }
     if (property_exists($this, 'instancePath')) {
         $instancePath = $this->instancePath;
     } else {
         $instancePath = ORIGINAL_ROOT . 'typo3temp/functional-' . substr(sha1(get_class($this)), 0, 7);
     }
     $arguments = array('documentRoot' => $instancePath, 'requestUrl' => 'http://localhost' . $requestUrl);
     $template = new \Text_Template(ORIGINAL_ROOT . 'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/request.tpl');
     $template->setVar(array('arguments' => var_export($arguments, true), 'originalRoot' => ORIGINAL_ROOT));
     $php = \PHPUnit_Util_PHP::factory();
     $response = $php->runJob($template->render());
     $result = json_decode($response['stdout'], true);
     if ($result === null) {
         $this->fail('Frontend Response is empty');
     }
     if ($failOnFailure && $result['status'] === Response::STATUS_Failure) {
         $this->fail('Frontend Response has failure:' . LF . $result['error']);
     }
     $response = new Response($result['status'], $result['content'], $result['error']);
     return $response;
 }
开发者ID:helhum,项目名称:ext_scaffold,代码行数:32,代码来源:RenderingTest.php

示例6: renderPreviewContent_preProcess

 /**
  * renders the templavoila preview
  *
  * @param	pointer		$row: affected record
  * @param	pointer		$table: affected table
  * @param	pointer		$alreadyRendered: is the preview already rendered by another extension?
  * @param	pointer		$reference: pointer to the parent class
  * @return	string		preview content
  */
 function renderPreviewContent_preProcess($row, $table, &$alreadyRendered, &$reference)
 {
     if ($row['CType'] == 'list' && $row['list_type'] == 'piwikintegration_pi1') {
         $content = '<strong>Piwik in FE</strong>';
         $content = $reference->link_edit($content, $table, $row['uid']);
         $piFlexForm = \TYPO3\CMS\Core\Utility\GeneralUtility::xml2array($row['pi_flexform']);
         foreach ($piFlexForm['data'] as $sheet => $data) {
             foreach ($data as $lang => $value) {
                 foreach ($value as $key => $val) {
                     $conf[$key] = $piFlexForm['data'][$sheet]['lDEF'][$key]['vDEF'];
                 }
             }
         }
         $this->extConf = array('widget' => json_decode(base64_decode($conf['widget']), true), 'height' => $conf['div_height']);
         $this->extConf['widget']['idSite'] = $conf['idsite'];
         $this->extConf['widget']['period'] = $conf['period'];
         $this->extConf['widget']['date'] = 'yesterday';
         $this->extConf['widget']['viewDataTable'] = $conf['viewDataTable'];
         $this->extConf['widget']['moduleToWidgetize'] = $this->extConf['widget']['module'];
         $this->extConf['widget']['actionToWidgetize'] = $this->extConf['widget']['action'];
         unset($this->extConf['widget']['module']);
         unset($this->extConf['widget']['action']);
         #$helper = new tx_piwikintegration_helper();
         $obj .= '<div style="width:' . $this->extConf['height'] . 'px;"><object width="100%" type="text/html" height="' . intval($this->extConf['height']) . '" data="';
         $obj .= '../../../../typo3conf/piwik/piwik/index.php?module=Widgetize&action=iframe' . \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl('', $this->extConf['widget']);
         $obj .= '&disableLink=1"></object></div>';
         $content .= $obj;
         $alreadyRendered = true;
         return $content;
     }
 }
开发者ID:heiko-hardt,项目名称:TYPO3.piwikintegration,代码行数:40,代码来源:class.tx_piwikintegration_pi1_templavoila_preview.php

示例7: processDatamap_afterDatabaseOperations

 /**
  * Generate a different preview link     *
  * @param string $status status
  * @param string $table table name
  * @param integer $recordUid id of the record
  * @param array $fields fieldArray
  * @param \TYPO3\CMS\Core\DataHandling\DataHandler $parentObject parent Object
  * @return void
  */
 public function processDatamap_afterDatabaseOperations($status, $table, $recordUid, array $fields, \TYPO3\CMS\Core\DataHandling\DataHandler $parentObject)
 {
     // Clear category cache
     if ($table === 'sys_category') {
         /** @var \TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache */
         $cache = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->getCache('cache_news_category');
         $cache->flush();
     }
     // Preview link
     if ($table === 'tx_news_domain_model_news') {
         // direct preview
         if (!is_numeric($recordUid)) {
             $recordUid = $parentObject->substNEWwithIDs[$recordUid];
         }
         if (isset($GLOBALS['_POST']['_savedokview_x']) && !$fields['type']) {
             // If "savedokview" has been pressed and current article has "type" 0 (= normal news article)
             $pagesTsConfig = \TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfig($GLOBALS['_POST']['popViewId']);
             if ($pagesTsConfig['tx_news.']['singlePid']) {
                 $record = \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord('tx_news_domain_model_news', $recordUid);
                 $parameters = array('no_cache' => 1, 'tx_news_pi1[controller]' => 'News', 'tx_news_pi1[action]' => 'detail', 'tx_news_pi1[news_preview]' => $record['uid']);
                 if ($record['sys_language_uid'] > 0) {
                     if ($record['l10n_parent'] > 0) {
                         $parameters['tx_news_pi1[news_preview]'] = $record['l10n_parent'];
                     }
                     $parameters['L'] = $record['sys_language_uid'];
                 }
                 $GLOBALS['_POST']['popViewId_addParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl('', $parameters, '', FALSE, TRUE);
                 $GLOBALS['_POST']['popViewId'] = $pagesTsConfig['tx_news.']['singlePid'];
             }
         }
     }
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:41,代码来源:Tcemain.php

示例8: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $urlParameters = $_GET;
     \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($urlParameters, $_POST);
     $this->currentPage = max(1, intval($urlParameters['page']));
     unset($urlParameters['page']);
     unset($urlParameters['cmd']);
     $this->baseURL = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_REQUEST_SCRIPT') . '?' . \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl('', $urlParameters);
     $this->resultsPerPage = self::RESULTS_PER_PAGE_DEFAULT;
 }
开发者ID:helhum,项目名称:realurl,代码行数:13,代码来源:PageBrowserViewHelper.php

示例9: wrapTitle

 /**
  * Wrapping the title in a link, if applicable.
  *
  * @param string $title Title, ready for output.
  * @param array $v The record
  * @param bool $ext_pArrPages If set, pages clicked will return immediately, otherwise reload page.
  * @return string Wrapping title string.
  */
 public function wrapTitle($title, $v, $ext_pArrPages = false)
 {
     if ($ext_pArrPages && $v['uid']) {
         $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
         $ficon = $iconFactory->getIconForRecord('pages', $v, Icon::SIZE_SMALL)->render();
         $out = '<span data-uid="' . htmlspecialchars($v['uid']) . '" data-table="pages" data-title="' . htmlspecialchars($v['title']) . '" data-icon="' . htmlspecialchars($ficon) . '">';
         $out .= '<a href="#" data-close="1">' . $title . '</a>';
         $out .= '</span>';
         return $out;
     }
     $parameters = GeneralUtility::implodeArrayForUrl('', $this->linkParameterProvider->getUrlParameters(['pid' => $v['uid']]));
     return '<a href="#" onclick="return jumpToUrl(' . htmlspecialchars(GeneralUtility::quoteJSvalue($this->getThisScript() . ltrim($parameters, '&'))) . ');">' . $title . '</a>';
 }
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:21,代码来源:ElementBrowserPageTreeView.php

示例10: __construct

 /**
  * Initialize the class
  *
  * @param \TYPO3\CMS\Recordlist\Browser\ElementBrowser $browseLinksObj
  * @param string $addPassOnParams
  * @param array $configuration
  * @param string $currentLinkValue
  * @param bool $isRte
  * @param int $currentPid
  */
 public function __construct(\TYPO3\CMS\Recordlist\Browser\ElementBrowser $browseLinksObj, $addPassOnParams, $configuration, $currentLinkValue, $isRte, $currentPid)
 {
     $environment = '';
     $this->browseLinksObj = $browseLinksObj;
     // first step to refactoring (no dependenciy to $browseLinksObj), make the required methodcalls known in membervariables
     $this->isRte = $isRte;
     $this->expandPage = $browseLinksObj->expandPage;
     $this->configuration = $configuration;
     $this->pointer = $browseLinksObj->pointer;
     if (is_array(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('P'))) {
         $environment = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl('P', \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('P'));
     }
     $this->addPassOnParams = $addPassOnParams . $environment;
 }
开发者ID:ruudsilvrants,项目名称:linkhandler,代码行数:24,代码来源:RecordTab.php

示例11: render

 /**
  * Returns a URL to link to quick command
  *
  * @param string $parameters Is a set of GET params to send to FormEngine
  * @return string URL to FormEngine module + parameters
  */
 public function render($parameters)
 {
     $parameters = GeneralUtility::explodeUrl2Array($parameters);
     $parameters['vC'] = $this->getBackendUserAuthentication()->veriCode();
     $parameters['prErr'] = 1;
     $parameters['uPT'] = 1;
     // Make sure record_edit module is available
     if (GeneralUtility::compat_version('7.0')) {
         $url = BackendUtility::getModuleUrl('tce_db', $parameters);
     } else {
         $url = 'tce_db.php?' . GeneralUtility::implodeArrayForUrl('', $parameters);
     }
     return $url . BackendUtility::getUrlToken('tceAction');
 }
开发者ID:dp-michaelhuebe,项目名称:my_user_management,代码行数:20,代码来源:RemoveRecordViewHelper.php

示例12: render

 /**
  * Renders the view
  *
  * @return string
  */
 public function render()
 {
     $args = array();
     if ((int) $this->arguments['size'] > 0) {
         $args['s'] = (int) $this->arguments['size'];
     }
     if ($this->arguments['default']) {
         $args['d'] = $this->arguments['default'];
     }
     if (count($args) > 0) {
         $urlArgs = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl('', $args);
         $urlArgs = '?' . ltrim($urlArgs, '&');
     }
     $this->tag->addAttribute('src', self::GRAVATAR_IMAGE_REQUEST_URL . md5($this->arguments['email']) . $urlArgs);
     $this->tag->addAttribute('alt', $this->arguments['alt']);
     return $this->tag->render();
 }
开发者ID:kalypso63,项目名称:news,代码行数:22,代码来源:GravatarViewHelper.php

示例13: render

 /**
  * Render the captcha audio rendering request icon
  *
  * @param string suffix to be appended to the extenstion key when forming css class names
  * @return string The html used to render the captcha audio rendering request icon
  */
 public function render($suffix = '')
 {
     $value = '';
     // Get the plugin configuration
     $settings = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManager::CONFIGURATION_TYPE_SETTINGS, $this->extensionName, $this->pluginName);
     // Get the translation view helper
     $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $translator = $objectManager->get('SJBR\\SrFreecap\\ViewHelpers\\TranslateViewHelper');
     $translator->injectConfigurationManager($this->configurationManager);
     // Get browser info: in IE 8, we will use a simple link, as dynamic insertion of object element gives unpredictable results
     $browserInfo = \TYPO3\CMS\Core\Utility\ClientUtility::getBrowserInfo(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_USER_AGENT'));
     $browerIsIE8 = $browserInfo['browser'] == 'msie' && $browserInfo['version'] == '8';
     // Generate the icon
     if ($settings['accessibleOutput'] && in_array('mcrypt', get_loaded_extensions()) && intval($GLOBALS['TYPO3_CONF_VARS']['SYS']['UTF8filesystem'])) {
         $fakeId = \TYPO3\CMS\Core\Utility\GeneralUtility::shortMD5(uniqid(rand()), 5);
         $siteURL = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL');
         $urlParams = array('eID' => 'sr_freecap_EidDispatcher', 'id' => $GLOBALS['TSFE']->id, 'vendorName' => 'SJBR', 'extensionName' => $this->extensionName, 'pluginName' => 'AudioPlayer', 'controllerName' => 'AudioPlayer', 'actionName' => 'play', 'formatName' => $browerIsIE8 ? 'mp3' : 'wav');
         $L = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('L');
         if (isset($L)) {
             $urlParams['L'] = htmlspecialchars($L);
         }
         if ($GLOBALS['TSFE']->MP) {
             $urlParams['MP'] = $GLOBALS['TSFE']->MP;
         }
         $audioURL = $siteURL . 'index.php?' . ltrim(\TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl('', $urlParams), '&');
         if ($settings['accessibleOutputImage']) {
             if ($browerIsIE8) {
                 $value = '<a href="' . $audioURL . '&set=' . rand() . '" title="' . $translator->render('click_here_accessible') . '">' . '<img alt="' . $translator->render('click_here_accessible') . '"' . ' src="' . $siteURL . str_replace(PATH_site, '', \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($settings['accessibleOutputImage'])) . '"' . $this->getClassAttribute('image-accessible', $suffix) . ' />' . '</a>';
             } else {
                 $value = '<input type="image" alt="' . $translator->render('click_here_accessible') . '"' . ' title="' . $translator->render('click_here_accessible') . '"' . ' src="' . $siteURL . str_replace(PATH_site, '', \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($settings['accessibleOutputImage'])) . '"' . ' onclick="' . $this->extensionName . '.playCaptcha(\'' . $fakeId . '\', \'' . $audioURL . '\', \'' . $translator->render('noPlayMessage') . '\');return false;" style="cursor: pointer;"' . $this->getClassAttribute('image-accessible', $suffix) . ' />';
             }
         } else {
             if ($browerIsIE8) {
                 $value = '<span id="tx_srfreecap_captcha_playLink_' . $fakeId . '"' . $this->getClassAttribute('accessible-link', $suffix) . '>' . $translator->render('click_here_accessible_before_link') . '<a href="' . $audioURL . '&set=' . rand() . '"' . ' title="' . $translator->render('click_here_accessible') . '">' . $translator->render('click_here_accessible_link') . '</a>' . $translator->render('click_here_accessible_after_link') . '</span>';
             } else {
                 $value = '<span id="tx_srfreecap_captcha_playLink_' . $fakeId . '"' . $this->getClassAttribute('accessible-link', $suffix) . '>' . $translator->render('click_here_accessible_before_link') . '<a onClick="' . $this->extensionName . '.playCaptcha(\'' . $fakeId . '\', \'' . $audioURL . '\', \'' . $translator->render('noPlayMessage') . '\');" style="cursor: pointer;" title="' . $translator->render('click_here_accessible') . '">' . $translator->render('click_here_accessible_link') . '</a>' . $translator->render('click_here_accessible_after_link') . '</span>';
             }
         }
         $value .= '<span' . $this->getClassAttribute('accessible', $suffix) . ' id="tx_srfreecap_captcha_playAudio_' . $fakeId . '"></span>';
     }
     return $value;
 }
开发者ID:olek07,项目名称:GiGaBonus,代码行数:48,代码来源:AudioViewHelper.php

示例14: processDatamap_afterDatabaseOperations

 public function processDatamap_afterDatabaseOperations($status, $table, $recordUid, array $fields, \TYPO3\CMS\Core\DataHandling\DataHandler $parentObject)
 {
     // Preview link
     if ($table === 'tx_hwtaddress_domain_model_address') {
         // direct preview
         if (!is_numeric($recordUid)) {
             $recordUid = $parentObject->substNEWwithIDs[$recordUid];
         }
         if (isset($GLOBALS['_POST']['_savedokview_x'])) {
             // If "savedokview" has been pressed
             $pagesTsConfig = \TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfig($GLOBALS['_POST']['popViewId']);
             $pagesTsConfigSinglePid = $pagesTsConfig['tx_hwtaddress.']['singlePidAddress'];
             if ($pagesTsConfigSinglePid) {
                 $record = \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord($table, $recordUid);
                 $parameters = array('no_cache' => 1, 'tx_hwtaddress_address[address]' => $recordUid);
                 $GLOBALS['_POST']['popViewId_addParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl('', $parameters, '', FALSE, TRUE);
                 $GLOBALS['_POST']['popViewId'] = $pagesTsConfigSinglePid;
             }
         }
     }
 }
开发者ID:hwt3,项目名称:HwtTypo3HwtAddress,代码行数:21,代码来源:Tcemain.php

示例15: render

 public function render()
 {
     $content = $this->renderChildren();
     if (empty($this->arguments['parameter'])) {
         $this->arguments['parameter'] = $content;
         $content = '';
     }
     $config = array('parameter' => $this->arguments['parameter'], 'useCacheHash' => $this->arguments['useCacheHash'], 'no_cache' => !$this->arguments['useCacheHash']);
     unset($this->arguments['parameter'], $this->arguments['useCacheHash']);
     foreach ($this->arguments as $name => $value) {
         if (is_array($value)) {
             if (substr($name, -5) === 'Array') {
                 $name = substr($name, 0, -5) . '.';
             } elseif (strtolower(substr($name, -7)) === 'stdwrap') {
                 $name = substr($name, 0, -7) . '.';
             } elseif (!empty($value)) {
                 $value = '&' . GeneralUtility::implodeArrayForUrl('', $value);
             }
         }
         $config[$name] = $value;
     }
     return $this->configurationManager->getContentObject()->TEXT(array('value' => $content, 'typolink.' => $config));
 }
开发者ID:martinpfister,项目名称:manuel,代码行数:23,代码来源:TypolinkViewHelper.php


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