本文整理汇总了PHP中TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode方法的典型用法代码示例。如果您正苦于以下问题:PHP GeneralUtility::trimExplode方法的具体用法?PHP GeneralUtility::trimExplode怎么用?PHP GeneralUtility::trimExplode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Utility\GeneralUtility
的用法示例。
在下文中一共展示了GeneralUtility::trimExplode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getExtensionSummary
/**
* Returns information about this extension plugin
*
* @param array $params Parameters to the hook
*
* @return string Information about pi1 plugin
* @hook TYPO3_CONF_VARS|SC_OPTIONS|cms/layout/class.tx_cms_layout.php|list_type_Info|calendarize_calendar
*/
public function getExtensionSummary(array $params)
{
$relIconPath = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . ExtensionManagementUtility::siteRelPath('calendarize') . 'ext_icon.png';
$this->flexFormService = GeneralUtility::makeInstance('HDNET\\Calendarize\\Service\\FlexFormService');
$this->layoutService = GeneralUtility::makeInstance('HDNET\\Calendarize\\Service\\ContentElementLayoutService');
$this->layoutService->setTitle('<img src="' . $relIconPath . '" /> Calendarize');
if ($params['row']['list_type'] != 'calendarize_calendar') {
return '';
}
$this->flexFormService->load($params['row']['pi_flexform']);
if (!$this->flexFormService->isValid()) {
return '';
}
$actions = $this->flexFormService->get('switchableControllerActions', 'main');
$parts = GeneralUtility::trimExplode(';', $actions, true);
$parts = array_map(function ($element) {
$split = explode('->', $element);
return ucfirst($split[1]);
}, $parts);
$actionKey = lcfirst(implode('', $parts));
$this->layoutService->addRow(LocalizationUtility::translate('mode', 'calendarize'), LocalizationUtility::translate('mode.' . $actionKey, 'calendarize'));
$this->layoutService->addRow(LocalizationUtility::translate('configuration', 'calendarize'), $this->flexFormService->get('settings.configuration', 'main'));
if ((bool) $this->flexFormService->get('settings.hidePagination', 'main')) {
$this->layoutService->addRow(LocalizationUtility::translate('hide.pagination.teaser', 'calendarize'), '!!!');
}
$this->addPageIdsToTable();
return $this->layoutService->render();
}
示例2: initializeAction
/**
* Initializes the controller before invoking an action method.
*
* @return void
*/
protected function initializeAction()
{
$this->id = intval(GeneralUtility::_GET('id'));
$this->tsParser = new TsParserUtility();
// Get extension configuration
/** @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility */
$configurationUtility = $this->objectManager->get('TYPO3\\CMS\\Extensionmanager\\Utility\\ConfigurationUtility');
$extensionConfiguration = $configurationUtility->getCurrentConfiguration('themes');
// Initially, get configuration from extension manager!
$extensionConfiguration['categoriesToShow'] = GeneralUtility::trimExplode(',', $extensionConfiguration['categoriesToShow']['value']);
$extensionConfiguration['constantsToHide'] = GeneralUtility::trimExplode(',', $extensionConfiguration['constantsToHide']['value']);
// mod.tx_themes.constantCategoriesToShow.value
// Get value from page/user typoscript
$externalConstantCategoriesToShow = $this->getBackendUser()->getTSConfig('mod.tx_themes.constantCategoriesToShow', BackendUtility::getPagesTSconfig($this->id));
if ($externalConstantCategoriesToShow['value']) {
$this->externalConfig['constantCategoriesToShow'] = GeneralUtility::trimExplode(',', $externalConstantCategoriesToShow['value']);
$extensionConfiguration['categoriesToShow'] = array_merge($extensionConfiguration['categoriesToShow'], $this->externalConfig['constantCategoriesToShow']);
}
// mod.tx_themes.constantsToHide.value
// Get value from page/user typoscript
$externalConstantsToHide = $this->getBackendUser()->getTSConfig('mod.tx_themes.constantsToHide', BackendUtility::getPagesTSconfig($this->id));
if ($externalConstantsToHide['value']) {
$this->externalConfig['constantsToHide'] = GeneralUtility::trimExplode(',', $externalConstantsToHide['value']);
$extensionConfiguration['constantsToHide'] = array_merge($extensionConfiguration['constantsToHide'], $this->externalConfig['constantsToHide']);
}
$this->allowedCategories = $extensionConfiguration['categoriesToShow'];
$this->deniedFields = $extensionConfiguration['constantsToHide'];
// initialize normally used values
}
示例3: loadSlides
/**
* @param $uidList
*
* @return array|NULL
*/
protected function loadSlides($uidList)
{
/** @var \WMDB\WmdbBaseEwh\DatabaseLayer\Tables\tx_wmdbbaseewh_slide $table */
$table = DatabaseFactory::getTable('tx_wmdbbaseewh_slide', 'WMDB\\WmdbBaseEwh\\DatabaseLayer\\Tables\\');
$items = $table->findByUidList($uidList);
foreach ($items as &$item) {
$item['image'] = $this->pObj->loadFalData($item, 'image', 'tx_wmdbbaseewh_slide');
if ($item['style'] == 2) {
$descriptionParts = GeneralUtility::trimExplode(LF, $item['description'], 1);
$tmp = array();
$leftCnt = $rightCnt = 190;
$itemOffset = 800;
foreach ($descriptionParts as $key => $part) {
$tmp[$key % 2 == 0 ? 'left' : 'right'][] = array('text' => $part, 'offset' => $key % 2 == 0 ? $leftCnt : $rightCnt, 'timeOffset' => $itemOffset);
if ($key % 2 == 0) {
$leftCnt += 55;
} else {
$rightCnt += 55;
}
$itemOffset += 150;
}
$item['split'] = $tmp;
}
}
return $items;
}
示例4: prepareLoader
/**
* Get all the complex data for the loader.
* This return value will be cached and stored in the database
* There is no file monitoring for this cache
*
* @param Loader $loader
* @param int $type
*
* @return array
*/
public function prepareLoader(Loader $loader, $type)
{
$pluginInformation = [];
$controllerPath = ExtensionManagementUtility::extPath($loader->getExtensionKey()) . 'Classes/Controller/';
$controllers = FileUtility::getBaseFilesRecursivelyInDir($controllerPath, 'php');
foreach ($controllers as $controller) {
$controllerName = ClassNamingUtility::getFqnByPath($loader->getVendorName(), $loader->getExtensionKey(), 'Controller/' . $controller);
if (!$loader->isInstantiableClass($controllerName)) {
continue;
}
$controllerKey = str_replace('/', '\\', $controller);
$controllerKey = str_replace('Controller', '', $controllerKey);
$methods = ReflectionUtility::getPublicMethods($controllerName);
foreach ($methods as $method) {
/** @var $method \TYPO3\CMS\Extbase\Reflection\MethodReflection */
if ($method->isTaggedWith('plugin')) {
$pluginKeys = GeneralUtility::trimExplode(' ', implode(' ', $method->getTagValues('plugin')), true);
$actionName = str_replace('Action', '', $method->getName());
foreach ($pluginKeys as $pluginKey) {
$pluginInformation = $this->addPluginInformation($pluginInformation, $pluginKey, $controllerKey, $actionName, $method->isTaggedWith('noCache'));
}
}
}
}
return $pluginInformation;
}
示例5: removeValuesFromString
/**
* Remove values of a comma separated list from another comma separated list
*
* @param string $result string comma separated list
* @param $toBeRemoved string comma separated list
* @return string
*/
public static function removeValuesFromString($result, $toBeRemoved)
{
$resultAsArray = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $result, TRUE);
$idListAsArray = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $toBeRemoved, TRUE);
$result = implode(',', array_diff($resultAsArray, $idListAsArray));
return $result;
}
示例6: previewFieldValue
/**
* Rendering preview output of a field value which is not shown as a form field but just outputted.
*
* @param string $value The value to output
* @param array $config Configuration for field.
* @param string $field Name of field.
* @return string HTML formatted output
*/
protected function previewFieldValue($value, $config, $field = '')
{
if ($config['config']['type'] === 'group' && ($config['config']['internal_type'] === 'file' || $config['config']['internal_type'] === 'file_reference')) {
// Ignore upload folder if internal_type is file_reference
if ($config['config']['internal_type'] === 'file_reference') {
$config['config']['uploadfolder'] = '';
}
$table = 'tt_content';
// Making the array of file items:
$itemArray = GeneralUtility::trimExplode(',', $value, true);
// Showing thumbnails:
$thumbnail = '';
$imgs = array();
$iconFactory = GeneralUtility::makeInstance(IconFactory::class);
foreach ($itemArray as $imgRead) {
$imgParts = explode('|', $imgRead);
$imgPath = rawurldecode($imgParts[0]);
$rowCopy = array();
$rowCopy[$field] = $imgPath;
// Icon + click menu:
$absFilePath = GeneralUtility::getFileAbsFileName($config['config']['uploadfolder'] ? $config['config']['uploadfolder'] . '/' . $imgPath : $imgPath);
$fileInformation = pathinfo($imgPath);
$title = $fileInformation['basename'] . ($absFilePath && @is_file($absFilePath)) ? ' (' . GeneralUtility::formatSize(filesize($absFilePath)) . ')' : ' - FILE NOT FOUND!';
$fileIcon = '<span title="' . htmlspecialchars($title) . '">' . $iconFactory->getIconForFileExtension($fileInformation['extension'], Icon::SIZE_SMALL)->render() . '</span>';
$imgs[] = '<span class="text-nowrap">' . BackendUtility::thumbCode($rowCopy, $table, $field, '', 'thumbs.php', $config['config']['uploadfolder'], 0, ' align="middle"') . ($absFilePath ? $this->getControllerDocumentTemplate()->wrapClickMenuOnIcon($fileIcon, $absFilePath, 0, 1, '', '+copy,info,edit,view') : $fileIcon) . $imgPath . '</span>';
}
return implode('<br />', $imgs);
} else {
return nl2br(htmlspecialchars($value));
}
}
示例7: updateCommand
/**
* Update language file for each extension
*
* @param string $localesToUpdate Comma separated list of locales that needs to be updated
* @return void
*/
public function updateCommand($localesToUpdate = '')
{
/** @var $translationService \TYPO3\CMS\Lang\Service\TranslationService */
$translationService = $this->objectManager->get(\TYPO3\CMS\Lang\Service\TranslationService::class);
/** @var $languageRepository \TYPO3\CMS\Lang\Domain\Repository\LanguageRepository */
$languageRepository = $this->objectManager->get(\TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::class);
$locales = array();
if (!empty($localesToUpdate)) {
$locales = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $localesToUpdate, TRUE);
} else {
$languages = $languageRepository->findSelected();
foreach ($languages as $language) {
/** @var $language \TYPO3\CMS\Lang\Domain\Model\Language */
$locales[] = $language->getLocale();
}
}
/** @var PackageManager $packageManager */
$packageManager = $this->objectManager->get(\TYPO3\CMS\Core\Package\PackageManager::class);
$this->emitPackagesMayHaveChangedSignal();
$packages = $packageManager->getAvailablePackages();
$this->outputLine(sprintf('Updating language packs of all activated extensions for locales "%s"', implode(', ', $locales)));
$this->output->progressStart(count($locales) * count($packages));
foreach ($locales as $locale) {
/** @var PackageInterface $package */
foreach ($packages as $package) {
$extensionKey = $package->getPackageKey();
$result = $translationService->updateTranslation($extensionKey, $locale);
if (empty($result[$extensionKey][$locale]['error'])) {
$this->registryService->set($locale, $GLOBALS['EXEC_TIME']);
}
$this->output->progressAdvance();
}
}
$this->output->progressFinish();
}
示例8: registerPluginCommand
/**
* Registers a command and its command class for several plugins
*
* @param string $plugins comma separated list of plugin names (without pi_ prefix)
* @param string $commandName command name
* @param string $commandClass name of the class implementing the command
* @param integer $requirements Bitmask of which requirements need to be met for a command to be executed
*/
public static function registerPluginCommand($plugins, $commandName, $commandClass, $requirements = Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED)
{
if (!array_key_exists($commandName, self::$commands)) {
$plugins = GeneralUtility::trimExplode(',', $plugins, TRUE);
self::$commands[$commandName] = array('plugins' => $plugins, 'commandName' => $commandName, 'commandClass' => $commandClass, 'requirements' => $requirements);
}
}
示例9: 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;
}
示例10: render
/**
* Entry method
*
* @return array As defined in initializeResultArray() of AbstractNode
*/
public function render()
{
$table = $this->data['tableName'];
$fieldToRender = $this->data['singleFieldToRender'];
$recordTypeValue = $this->data['recordTypeValue'];
$resultArray = $this->initializeResultArray();
// Load the description content for the table if requested
if ($GLOBALS['TCA'][$table]['interface']['always_description']) {
$languageService = $this->getLanguageService();
$languageService->loadSingleTableDescription($table);
}
$itemList = $this->data['processedTca']['types'][$recordTypeValue]['showitem'];
$fields = GeneralUtility::trimExplode(',', $itemList, true);
foreach ($fields as $fieldString) {
$fieldConfiguration = $this->explodeSingleFieldShowItemConfiguration($fieldString);
$fieldName = $fieldConfiguration['fieldName'];
if ((string) $fieldName === (string) $fieldToRender) {
// Field is in showitem configuration
// @todo: This field is not rendered if it is "hidden" in a palette!
if ($GLOBALS['TCA'][$table]['columns'][$fieldName]) {
$options = $this->data;
$options['fieldName'] = $fieldName;
$options['renderType'] = 'singleFieldContainer';
$resultArray = $this->nodeFactory->create($options)->render();
}
}
}
return $resultArray;
}
示例11: handleNoNewsFoundError
/**
* Error handling if no news entry is found
*
* @param string $configuration configuration what will be done
* @throws \InvalidArgumentException
* @return void
*/
protected function handleNoNewsFoundError($configuration)
{
if (empty($configuration)) {
return;
}
$configuration = GeneralUtility::trimExplode(',', $configuration, true);
switch ($configuration[0]) {
case 'redirectToListView':
$this->redirect('list');
break;
case 'redirectToPage':
if (count($configuration) === 1 || count($configuration) > 3) {
$msg = sprintf('If error handling "%s" is used, either 2 or 3 arguments, split by "," must be used', $configuration[0]);
throw new \InvalidArgumentException($msg);
}
$this->uriBuilder->reset();
$this->uriBuilder->setTargetPageUid($configuration[1]);
$this->uriBuilder->setCreateAbsoluteUri(true);
if (GeneralUtility::getIndpEnv('TYPO3_SSL')) {
$this->uriBuilder->setAbsoluteUriScheme('https');
}
$url = $this->uriBuilder->build();
if (isset($configuration[2])) {
$this->redirectToUri($url, 0, (int) $configuration[2]);
} else {
$this->redirectToUri($url);
}
break;
case 'pageNotFoundHandler':
$GLOBALS['TSFE']->pageNotFoundAndExit('No news entry found.');
break;
default:
// Do nothing, it might be handled in the view.
}
}
示例12: render
/**
* @return string
*/
public function render()
{
if ('BE' === TYPO3_MODE) {
return;
}
$languages = $this->arguments['languages'];
if (TRUE === $languages instanceof \Traversable) {
$languages = iterator_to_array($languages);
} elseif (TRUE === is_string($languages)) {
$languages = GeneralUtility::trimExplode(',', $languages, TRUE);
} else {
$languages = (array) $languages;
}
$pageUid = intval($this->arguments['pageUid']);
$normalWhenNoLanguage = $this->arguments['normalWhenNoLanguage'];
if (0 === $pageUid) {
$pageUid = $GLOBALS['TSFE']->id;
}
$currentLanguageUid = $GLOBALS['TSFE']->sys_language_uid;
$languageUid = 0;
if (FALSE === $this->pageSelect->hidePageForLanguageUid($pageUid, $currentLanguageUid, $normalWhenNoLanguage)) {
$languageUid = $currentLanguageUid;
} elseif (0 !== $currentLanguageUid) {
if (TRUE === $this->pageSelect->hidePageForLanguageUid($pageUid, 0, $normalWhenNoLanguage)) {
return;
}
}
if (FALSE === empty($languages[$languageUid])) {
return $languages[$languageUid];
}
return $languageUid;
}
示例13: main
/**
* Process the link generation
*
* @param string $linkText
* @param array $typoLinkConfiguration TypoLink Configuration array
* @param string $linkHandlerKeyword Define the identifier that an record is given
* @param string $linkHandlerValue Table and uid of the requested record like "tt_news:2"
* @param string $linkParameters Full link params like "record:tt_news:2"
* @param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObjectRenderer
* @return string
*/
public function main($linkText, array $typoLinkConfiguration, $linkHandlerKeyword, $linkHandlerValue, $linkParameters, \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObjectRenderer)
{
$typoScriptConfiguration = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_linkhandler.'];
$generatedLink = $linkText;
// extract link params like "target", "css-class" or "title"
$additionalLinkParameters = str_replace('"' . $linkHandlerKeyword . ':' . $linkHandlerValue . '"', '', $linkParameters);
$additionalLinkParameters = str_replace($linkHandlerKeyword . ':' . $linkHandlerValue, '', $additionalLinkParameters);
list($recordTableName, $recordUid) = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(':', $linkHandlerValue);
$recordArray = $this->getCurrentRecord($recordTableName, $recordUid);
if ($recordArray && $this->isRecordLinkable($recordTableName, $typoScriptConfiguration, $recordArray)) {
$this->localContentObject = clone $contentObjectRenderer;
$this->localContentObject->start($recordArray, '');
unset($typoLinkConfiguration['parameter']);
$typoScriptConfiguration[$recordTableName . '.']['parameter'] .= $additionalLinkParameters;
$currentLinkConfigurationArray = $this->mergeTypoScript($typoScriptConfiguration, $typoLinkConfiguration, $recordTableName);
if (isset($currentLinkConfigurationArray['storagePidParameterOverride.'])) {
if (array_key_exists($recordArray['pid'], $currentLinkConfigurationArray['storagePidParameterOverride.'])) {
$currentLinkConfigurationArray['parameter'] = $currentLinkConfigurationArray['storagePidParameterOverride.'][$recordArray['pid']];
}
}
// build the full link to the record
$generatedLink = $this->localContentObject->typoLink($linkText, $currentLinkConfigurationArray);
$this->updateParentLastTypoLinkMember($contentObjectRenderer);
}
return $generatedLink;
}
示例14: initializeAction
/**
* Initialize actions. These actions are meant to be called by an logged-in FE User.
*/
public function initializeAction()
{
// Perhaps it should go into a validator?
// Check permission before executing any action.
$allowedFrontendGroups = trim($this->settings['allowedFrontendGroups']);
if ($allowedFrontendGroups === '*') {
if (empty($this->getFrontendUser()->user)) {
throw new Exception('FE User must be logged-in.', 1387696171);
}
} elseif (!empty($allowedFrontendGroups)) {
$isAllowed = FALSE;
$frontendGroups = GeneralUtility::trimExplode(',', $allowedFrontendGroups, TRUE);
foreach ($frontendGroups as $frontendGroup) {
if (GeneralUtility::inList($this->getFrontendUser()->user['usergroup'], $frontendGroup)) {
$isAllowed = TRUE;
break;
}
}
// Throw exception if not allowed
if (!$isAllowed) {
throw new Exception('FE User does not have enough permission.', 1415211931);
}
}
$this->emitBeforeHandleUploadSignal();
}
示例15: getExtensionSummary
/**
* Returns information about this extension's pi1 plugin
*
* @param array $params Parameters to the hook
* @param object $pObj A reference to calling object
* @return string Information about pi1 plugin
*/
function getExtensionSummary($params, &$pObj)
{
$languageService = $this->getLanguageService();
$result = '';
if ($params['row']['list_type'] == 'irfaq_pi1') {
$data = GeneralUtility::xml2array($params['row']['pi_flexform']);
if (is_array($data)) {
$modes = array();
foreach (GeneralUtility::trimExplode(',', $data['data']['sDEF']['lDEF']['what_to_display']['vDEF'], true) as $mode) {
switch ($mode) {
case 'DYNAMIC':
$modes[] = $languageService->sL('LLL:EXT:irfaq/lang/locallang_db.xml:tx_irfaq.pi_flexform.view_dynamic');
break;
case 'STATIC':
$modes[] = $languageService->sL('LLL:EXT:irfaq/lang/locallang_db.xml:tx_irfaq.pi_flexform.view_static');
break;
case 'STATIC_SEPARATE':
$modes[] = $languageService->sL('LLL:EXT:irfaq/lang/locallang_db.xml:tx_irfaq.pi_flexform.view_static_separate');
break;
case 'SEARCH':
$modes[] = $languageService->sL('LLL:EXT:irfaq/lang/locallang_db.xml:tx_irfaq.pi_flexform.view_search');
break;
}
}
$result = implode(', ', $modes);
}
if (!$result) {
$result = $languageService->sL('LLL:EXT:irfaq/lang/locallang_db.xml:tx_irfaq.pi_flexform.no_view');
}
}
return $result;
}