// Clear clipboard
$optionArray[] = [
- 'label' => $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.clipboard.clear_clipboard', true),
+ 'label' => $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.clipboard.clear_clipboard'),
'uri' => $removeAllUrl . '#clip_head'
];
$this->view->assign('optionArray', $optionArray);
$this->errorC = 0;
$this->newC = 0;
$editForm = '';
- $trData = null;
$beUser = $this->getBackendUser();
// Traverse the GPvar edit array tables
foreach ($this->editconf as $table => $conf) {
array $transmittedUidList
): array {
// Get all valid uids that can be processed
- $validUidList = $result = $this->localizationRepository->getRecordsToCopyDatabaseResult(
+ $validUidList = $this->localizationRepository->getRecordsToCopyDatabaseResult(
$pageId,
$destLanguageId,
$srcLanguageId,
{
if (count($this->MOD_MENU['language']) > 1) {
$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
- $lang = $this->getLanguageService();
$languageMenu = $this->moduleTemplate->getDocHeaderComponent()->getMenuRegistry()->makeMenu();
$languageMenu->setIdentifier('languageMenu');
foreach ($this->MOD_MENU['language'] as $key => $language) {
'icon' => $this->iconFactory->getIconForRecord($table, $record, Icon::SIZE_SMALL)->render(),
];
} else {
- $icon = $GLOBALS['TCA'][$table]['ctrl']['typeicon_classes']['default'];
- if (empty($icon)) {
- $icon = 'tcarecords-' . $table . '-default';
- }
$data = [
'text' => sprintf('%s', $linkData['uid']),
'icon' => $this->iconFactory->getIcon('tcarecords-' . $table . '-default', Icon::SIZE_SMALL, 'overlay-missing')->render(),
if (!isset($result['processedTca']['columns'][$fieldName]['config']['dataStructureIdentifier'])) {
$flexFormTools = GeneralUtility::makeInstance(FlexFormTools::class);
- $dataStructureIdentifier = '';
$dataStructureArray = ['sheets' => ['sDEF' => []]];
try {
$recordTitle = $this->getRecordTitleForSelectType($rawValue, $fieldConfig);
break;
case 'group':
- $recordTitle = $this->getRecordTitleForGroupType($rawValue, $fieldConfig);
+ $recordTitle = $this->getRecordTitleForGroupType($rawValue);
break;
case 'check':
$recordTitle = $this->getRecordTitleForCheckboxType($rawValue, $fieldConfig);
* Return the record title for database records
*
* @param mixed $value Current database value of this field
- * @param array $fieldConfig TCA field configuration
* @return string
*/
- protected function getRecordTitleForGroupType($value, $fieldConfig)
+ protected function getRecordTitleForGroupType($value)
{
$labelParts = [];
foreach ($value as $singleValue) {
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
- $site = null;
$pageId = (int)($request->getQueryParams()['id'] ?? $request->getParsedBody()['id'] ?? 0);
$rootLine = null;
* Initialize the object
*
* @param BaseScriptClass $pObj A reference to the parent (calling) object
- * @param array $conf The configuration set for this module - from global array TBE_MODULES_EXT
* @throws \RuntimeException
* @see \TYPO3\CMS\Backend\Module\BaseScriptClass::checkExtObj()
*/
- public function init(&$pObj, $conf)
+ public function init($pObj)
{
$this->pObj = $pObj;
// Local lang:
*/
public function addItem(AbstractButton $item, $primaryAction = false)
{
- if (!$item->isValid($item)) {
+ if (!$item->isValid()) {
throw new \InvalidArgumentException(
'Only valid items may be assigned to a split Button. "' .
$item->getType() .
// Render header
$table .= '<p>';
if (isset($columnConfig['colPos']) && $head) {
- $table .= '<strong>' . $this->wrapColumnHeader($head, '', '') . '</strong>';
+ $table .= '<strong>' . $this->wrapColumnHeader($head, '') . '</strong>';
} elseif ($columnConfig['colPos']) {
- $table .= '<em>' . $this->wrapColumnHeader($this->getLanguageService()->getLL('noAccess'), '', '') . '</em>';
+ $table .= '<em>' . $this->wrapColumnHeader($this->getLanguageService()->getLL('noAccess'), '') . '</em>';
} else {
- $table .= '<em>' . $this->wrapColumnHeader(($this->getLanguageService()->sL($columnConfig['name']) ?: '') . ' (' . $this->getLanguageService()->getLL('notAssigned') . ')', '', '') . '</em>';
+ $table .= '<em>' . $this->wrapColumnHeader(($this->getLanguageService()->sL($columnConfig['name']) ?: '') . ' (' . $this->getLanguageService()->getLL('notAssigned') . ')', '') . '</em>';
}
$table .= '</p>';
// Render lines
switch ($table) {
case 'pages':
return $this->getTable_pages($id);
- break;
case 'tt_content':
return $this->getTable_tt_content($id);
- break;
default:
return '';
}
$this->view->assign('timeFormat', $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm']);
$this->view->assign('backendUsers', $this->backendUserRepository->findDemanded($demand));
$this->view->assign('backendUserGroups', array_merge([''], $this->backendUserGroupRepository->findAll()->toArray()));
- $this->view->assign('compareUserUidList', array_map(function ($item) {
+ $this->view->assign('compareUserUidList', array_map(function () {
return true;
}, array_flip((array)$compareUserList)));
$this->view->assign('currentUserUid', $this->getBackendUserAuthentication()->user['uid']);
}
}
return false;
- break;
case 'language':
if (GeneralUtility::getIndpEnv('HTTP_ACCEPT_LANGUAGE') === $value) {
return true;
}
}
return false;
- break;
case 'IP':
if ($value === 'devIP') {
$value = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']);
}
return (bool)GeneralUtility::cmpIP(GeneralUtility::getIndpEnv('REMOTE_ADDR'), $value);
- break;
case 'hostname':
return (bool)GeneralUtility::cmpFQDN(GeneralUtility::getIndpEnv('REMOTE_ADDR'), $value);
- break;
case 'hour':
case 'minute':
case 'month':
}
}
return false;
- break;
case 'compatVersion':
return VersionNumberUtility::convertVersionNumberToInteger(TYPO3_branch) >= VersionNumberUtility::convertVersionNumberToInteger($value);
- break;
case 'loginUser':
if ($this->isUserLoggedIn()) {
$values = GeneralUtility::trimExplode(',', $value, true);
return true;
}
return false;
- break;
case 'page':
if ($keyParts[1]) {
$page = $this->getPage();
}
}
return false;
- break;
case 'globalVar':
$values = GeneralUtility::trimExplode(',', $value, true);
foreach ($values as $test) {
}
}
return false;
- break;
case 'globalString':
$values = GeneralUtility::trimExplode(',', $value, true);
foreach ($values as $test) {
}
}
return false;
- break;
case 'userFunc':
$matches = [];
preg_match_all('/^\s*([^\(\s]+)\s*(?:\((.*)\))?\s*$/', $value, $matches);
return true;
}
return false;
- break;
}
return null;
}
static::startOutputBuffering();
$configurationManager = static::createConfigurationManager();
- if (!static::checkIfEssentialConfigurationExists($configurationManager, true)) {
+ if (!static::checkIfEssentialConfigurationExists($configurationManager)) {
$failsafe = true;
}
static::populateLocalConfiguration($configurationManager);
case 'setFinalCachingFrameworkCacheConfiguration':
case 'populateLocalConfiguration':
return call_user_func_array([self::class, $methodName], $arguments);
- break;
default:
throw new \Error(sprintf('Call to undefined method "%s"', $methodName), 1534156090);
}
$this->literal(',')
)
);
- break;
case 'oci8':
case 'pdo_oracle':
throw new \RuntimeException(
'FIND_IN_SET support for database platform "Oracle" not yet implemented.',
1459696680
);
- break;
case 'sqlsrv':
case 'pdo_sqlsrv':
case 'mssql':
)
);
return $comparison;
- break;
default:
return sprintf(
'FIND_IN_SET(%s, %s)',
} elseif ($mQ === 'count') {
$queryBuilder = $connection->createQueryBuilder();
$queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
- $dataRows = $queryBuilder->count('*')
+ $queryBuilder->count('*')
->from($queryGenerator->table)
->where(QueryHelper::stripLogicalOperatorPrefix($queryString));
$fullQueryString = $queryBuilder->getSQL();
if (!empty($rowArr)) {
$cPR['header'] = 'Result';
$out .= '<table class="table table-striped table-hover">'
- . $this->resultRowTitles($dataRow, $GLOBALS['TCA'][$table], $table) . implode(LF, $rowArr)
+ . $this->resultRowTitles($dataRow, $GLOBALS['TCA'][$table]) . implode(LF, $rowArr)
. '</table>';
} else {
$this->renderNoResultsFoundMessage();
$markup[] = htmlspecialchars($this->languageService->sL($conf['ctrl']['title'])) . ' (' . $count . ')';
$markup[] = ' </div>';
$markup[] = ' <table class="table table-striped table-hover">';
- $markup[] = $this->resultRowTitles($lastRow, $conf, $table);
+ $markup[] = $this->resultRowTitles($lastRow, $conf);
$markup[] = implode(LF, $rowArr);
$markup[] = ' </table>';
$markup[] = '</div>';
*
* @param array $row Table columns
* @param array $conf Table TCA
- * @param string $table Table name
* @return string HTML of table header
*/
- public function resultRowTitles($row, $conf, $table)
+ public function resultRowTitles($row, $conf)
{
$tableHeader = [];
// Start header row
*
* @param array $row
* @param array $conf
- * @param mixed $table Not used
* @return string
+ * @todo Unused?
*/
- public function csvRowTitles($row, $conf, $table)
+ public function csvRowTitles($row, $conf)
{
$out = '';
foreach ($row as $fieldName => $fieldValue) {
$retVal = $resultArray;
break;
case 'images':
- $retVal = $this->findRef_images($content, $spParams);
+ $retVal = $this->findRef_images($content);
break;
case 'typolink':
$retVal = $this->findRef_typolink($content, $spParams);
break;
case 'typolink_tag':
- $retVal = $this->findRef_typolink_tag($content, $spParams);
+ $retVal = $this->findRef_typolink_tag($content);
break;
case 'ext_fileref':
- $retVal = $this->findRef_extension_fileref($content, $spParams);
+ $retVal = $this->findRef_extension_fileref($content);
break;
case 'email':
$retVal = $this->findRef_email($content, $spParams);
* Any "clear.gif" images are ignored.
*
* @param string $content The input content to analyse
- * @param array $spParams Parameters set for the softref parser key in TCA/columns
* @return array Result array on positive matches, see description above. Otherwise FALSE
*/
- public function findRef_images($content, $spParams)
+ public function findRef_images($content)
{
// Start HTML parser and split content by image tag:
$htmlParser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Html\HtmlParser::class);
* Will search for <link ...> and <a> tags in the content string and process any found.
*
* @param string $content The input content to analyse
- * @param array $spParams Parameters set for the softref parser key in TCA/columns
* @return array Result array on positive matches, see description above. Otherwise FALSE
* @see \TYPO3\CMS\Frontend\ContentObject::typolink(), getTypoLinkParts()
*/
- public function findRef_typolink_tag($content, $spParams)
+ public function findRef_typolink_tag($content)
{
// Parse string for special TYPO3 <link> tag:
$htmlParser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Html\HtmlParser::class);
* Finding reference to files from extensions in content, but only to notify about their existence. No substitution
*
* @param string $content The input content to analyse
- * @param array $spParams Parameters set for the softref parser key in TCA/columns
* @return array Result array on positive matches, see description above. Otherwise FALSE
*/
- public function findRef_extension_fileref($content, $spParams)
+ public function findRef_extension_fileref($content)
{
// Files starting with EXT:
$parts = preg_split('/([^[:alnum:]"\']+)(EXT:[[:alnum:]_]+\\/[^[:space:]"\',]*)/', ' ' . $content . ' ', 10000, PREG_SPLIT_DELIM_CAPTURE);
$configuration = $this->getConfigurationForLogger(self::CONFIGURATION_TYPE_WRITER, $logger->getName());
foreach ($configuration as $severityLevel => $writer) {
foreach ($writer as $logWriterClassName => $logWriterOptions) {
- /** @var $logWriter \TYPO3\CMS\Core\Log\Writer\WriterInterface */
- $logWriter = null;
try {
+ /** @var $logWriter \TYPO3\CMS\Core\Log\Writer\WriterInterface */
$logWriter = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($logWriterClassName, $logWriterOptions);
$logger->addWriter($severityLevel, $logWriter);
} catch (\Psr\Log\InvalidArgumentException $e) {
$configuration = $this->getConfigurationForLogger(self::CONFIGURATION_TYPE_PROCESSOR, $logger->getName());
foreach ($configuration as $severityLevel => $processor) {
foreach ($processor as $logProcessorClassName => $logProcessorOptions) {
- /** @var $logProcessor \TYPO3\CMS\Core\Log\Processor\ProcessorInterface */
- $logProcessor = null;
try {
+ /** @var $logProcessor \TYPO3\CMS\Core\Log\Processor\ProcessorInterface */
$logProcessor = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($logProcessorClassName, $logProcessorOptions);
$logger->addProcessor($severityLevel, $logProcessor);
} catch (\Psr\Log\InvalidArgumentException $e) {
{
// A couple of defaults.
$phrase = '';
- $comment = '';
$comments = [];
// Catch any RFC822 comments and store them separately.
$_mailbox = $mailbox;
// Process extension static files if not done yet, but explicitly requested
if (!$this->extensionStaticsProcessed && $this->processExtensionStatics) {
- $this->addExtensionStatics('sys_0', 'sys_0', 0, []);
+ $this->addExtensionStatics('sys_0', 'sys_0', 0);
}
// Add the global default TypoScript from the TYPO3_CONF_VARS
// If "Include before all static templates if root-flag is set" is set:
$staticFileMode = $row['static_file_mode'] ?? null;
if ($staticFileMode == 3 && strpos($templateID, 'sys_') === 0 && $row['root']) {
- $this->addExtensionStatics($idList, $templateID, $pid, $row);
+ $this->addExtensionStatics($idList, $templateID, $pid);
}
// Static Template Files (Text files from extensions): include_static_file is a list of static files to include (from extensions)
if (trim($row['include_static_file'] ?? '')) {
// If "Default (include before if root flag is set)" is set OR
// "Always include before this template record" AND root-flag are set
if ($staticFileMode == 1 || $staticFileMode == 0 && substr($templateID, 0, 4) === 'sys_' && $row['root']) {
- $this->addExtensionStatics($idList, $templateID, $pid, $row);
+ $this->addExtensionStatics($idList, $templateID, $pid);
}
// Include Static Template Records after all other TypoScript has been included.
$_params = [
* @param string $idList A list of already processed template ids including the current; The list is on the form "[prefix]_[uid]" where [prefix] is "sys" for "sys_template" records and "ext_" for static include files (from extensions). The list is used to check that the recursive inclusion of templates does not go into circles: Simply it is used to NOT include a template record/file which has already BEEN included somewhere in the recursion.
* @param string $templateID The id of the current template. Same syntax as $idList ids, eg. "sys_123
* @param int $pid The PID of the input template record
- * @param array $row A full TypoScript template record
* @access private
* @see includeStaticTypoScriptSources()
*/
- public function addExtensionStatics($idList, $templateID, $pid, $row)
+ public function addExtensionStatics($idList, $templateID, $pid)
{
$this->extensionStaticsProcessed = true;
$this->addMessageToFlashMessageQueue('FileUtility.DestinationWasNotADirectory', [$cmds['target']]);
return false;
}
- $resultObject = null;
$folderName = $cmds['data'];
try {
$resultObject = $targetFolderObject->createFolder($folderName);
if ($object->_isNew()) {
$this->insertObject($object);
}
- $this->persistObject($object, null);
+ $this->persistObject($object);
}
foreach ($this->changedEntities as $object) {
- $this->persistObject($object, null);
+ $this->persistObject($object);
}
}
{
/**
* @param string $method
+ * @param int $exceptionCode
*/
- public function __construct($method)
+ public function __construct($method, int $exceptionCode = null)
{
- parent::__construct(sprintf('Method %s is not supported by generic persistence"', $method), 1350213237);
+ parent::__construct(sprintf('Method %s is not supported by generic persistence"', $method), $exceptionCode ?? 1350213237);
}
}
// usually that does not happen, but if the proxy is held from outside
// its parent ... the result would be weird.
if ($this->parentObject->_getProperty($this->propertyName) instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) {
- $objects = $this->dataMapper->fetchRelated($this->parentObject, $this->propertyName, $this->fieldValue, false, false);
+ $objects = $this->dataMapper->fetchRelated($this->parentObject, $this->propertyName, $this->fieldValue, false);
$propertyValue = $this->dataMapper->mapResultToPropertyValue($this->parentObject, $this->propertyName, $objects);
$this->parentObject->_setProperty($this->propertyName, $propertyValue);
$this->parentObject->_memorizeCleanState($this->propertyName);
*
* @param string $propertyName The name of the multivalued property to compare against
* @throws \TYPO3\CMS\Extbase\Persistence\Generic\Exception\NotImplementedException
- * @throws \TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException if used on a single-valued property
* @return bool
* @api
*/
$this->suggestDistinctQuery = true;
} elseif ($columnMap->getTypeOfRelation() === ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY) {
$relationTableName = $columnMap->getRelationTableName();
- $relationTableAlias = $relationTableAlias = $this->getUniqueAlias($relationTableName, $fullPropertyPath . '_mm');
+ $relationTableAlias = $this->getUniqueAlias($relationTableName, $fullPropertyPath . '_mm');
$joinConditionExpression = $this->queryBuilder->expr()->andX(
$this->queryBuilder->expr()->eq(
/**
* Dummy method to avoid unserialization.
*
- * @param string $serialized
* @throws \RuntimeException
*/
- public function unserialize($serialized)
+ public function unserialize()
{
throw new \RuntimeException('A ObjectStorage instance cannot be unserialized.', 1267700870);
}
public function render()
{
$extensionKey = $this->arguments['extensionKey'];
- $tag = '';
// If the "class.ext_update.php" file exists, build link to the update script screen
/** @var $updateScriptUtility \TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility */
*/
public function editPanel($content, array $conf, $currentRecord = '', array $dataArr = [], $table = '', array $allow = [], $newUID = 0, array $hiddenFields = [])
{
- $hiddenFieldString = $command = '';
+ $hiddenFieldString = '';
// Special content is about to be shown, so the cache must be disabled.
$this->frontendController->set_no_cache('Frontend edit panel is shown', true);
$cells = [];
$fullIdentifier = $fileOrFolderObject->getCombinedIdentifier();
$md5 = GeneralUtility::shortMD5($fullIdentifier);
- $isSel = $this->clipObj->isSelected('_FILE', $md5);
/** @var \TYPO3\CMS\Backend\Routing\UriBuilder $uriBuilder */
$uriBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Routing\UriBuilder::class);
$extbaseFrameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
$widgetViewHelperClassName = $this->request->getWidgetContext()->getWidgetViewHelperClassName();
$templatePaths = new TemplatePaths($this->controllerContext->getRequest()->getControllerExtensionKey());
- $widgetViewConfiguration = null;
$parentConfiguration = $view->getTemplatePaths()->toArray();
$rootConfiguration = $templatePaths->toArray();
$pluginConfiguration = $extbaseFrameworkConfiguration['view']['widget'][$widgetViewHelperClassName] ?? [];
*/
protected function performLogoff()
{
- $oldSession = [];
$sessionData = [];
try {
// Session might not be loaded at this point, so fetch it
*/
protected function getCropAreaFromFileReference(FileReference $fileReference, array $fileArray)
{
- /** @var Area $cropArea */
- $cropArea = null;
// Use cropping area from file reference if nothing is configured in TypoScript.
if (!isset($fileArray['crop']) && !isset($fileArray['crop.'])) {
// Set crop variant from TypoScript settings. If not set, use default.
switch ($conf['returnLast']) {
case 'url':
return $this->lastTypoLinkUrl;
- break;
case 'target':
return $this->lastTypoLinkTarget;
- break;
}
}
case 'sys_language_contentOL':
trigger_error('Property $TSFE->sys_language_contentOL is not in use anymore as this information is now stored within the language aspect.', E_USER_DEPRECATED);
return $this->context->getPropertyFromAspect('language', 'legacyOverlayType', '0');
- break;
case 'sys_language_mode':
trigger_error('Property $TSFE->sys_language_mode is not in use anymore as this information is now stored within the language aspect.', E_USER_DEPRECATED);
return $this->context->getPropertyFromAspect('language', 'legacyLanguageMode', '');
$this->setup['workArea'] = $this->calcOffset($this->setup['workArea']);
foreach ($sKeyArray as $theKey) {
$theValue = $this->setup[$theKey];
- if ((int)$theKey && ($conf = $this->setup[$theKey . '.'])) {
+ if ((int)$theKey && $this->setup[$theKey . '.']) {
switch ($theValue) {
case 'TEXT':
{
switch (strtolower($this->setup['format'])) {
case 'jpg':
-
case 'jpeg':
return 'jpg';
- break;
case 'png':
return 'png';
- break;
case 'gif':
return 'gif';
- break;
default:
return $this->gifExtension;
}
trigger_error('Calling getPagesOverlay() with "-1" as languageId is discouraged and will be unsupported in TYPO3 v10.0. Omit the parameter or use "null" instead.', E_USER_DEPRECATED);
$languageUid = $this->sys_language_uid;
}
- $row = null;
foreach ($pagesInput as &$origPage) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_page.php']['getPageOverlay'] ?? [] as $className) {
$hookObject = GeneralUtility::makeInstance($className);
}
/** @var $import Import */
$import = GeneralUtility::makeInstance(Import::class);
- $import->init(0, 'import');
+ $import->init();
$this->emitAfterImportExportInitialisationSignal($import);
switch ((string)$this->searchData['sortOrder']) {
case 'rank_count':
return $row['order_val'] . ' ' . LocalizationUtility::translate('result.ratingMatches', 'IndexedSearch');
- break;
case 'rank_first':
return ceil(MathUtility::forceIntegerInRange(255 - $row['order_val'], 1, 255) / 255 * 100) . '%';
- break;
case 'rank_flag':
if ($this->firstRow['order_val2']) {
// (3 MSB bit, 224 is highest value of order_val1 currently)
$max = 10000;
$total = MathUtility::forceIntegerInRange($row['order_val'], 0, $max);
return ceil(log($total) / log($max) * 100) . '%';
- break;
case 'crdate':
return $GLOBALS['TSFE']->cObj->calcAge($GLOBALS['EXEC_TIME'] - $row['item_crdate'], 0);
- break;
case 'mtime':
return $GLOBALS['TSFE']->cObj->calcAge($GLOBALS['EXEC_TIME'] - $row['item_mtime'], 0);
- break;
default:
return ' ';
}
case 'tif':
// TIF images (EXIF comment)
return true;
- break;
}
return false;
}
case 'tif':
// PHP EXIF
return sprintf($this->sL('LLL:EXT:indexed_search/Resources/Private/Language/locallang_main.xlf:extension.Images'), $extension);
- break;
case 'html':
case 'htm':
// PHP strip-tags()
return sprintf($this->sL('LLL:EXT:indexed_search/Resources/Private/Language/locallang_main.xlf:extension.HTML'), $extension);
- break;
case 'txt':
// Raw text
return sprintf($this->sL('LLL:EXT:indexed_search/Resources/Private/Language/locallang_main.xlf:extension.TXT'), $extension);
- break;
case 'csv':
// Raw text
return sprintf($this->sL('LLL:EXT:indexed_search/Resources/Private/Language/locallang_main.xlf:extension.CSV'), $extension);
- break;
case 'xml':
// PHP strip-tags()
return sprintf($this->sL('LLL:EXT:indexed_search/Resources/Private/Language/locallang_main.xlf:extension.XML'), $extension);
- break;
default:
// Do nothing
}
switch ((string)$extension) {
case 'pdf':
return true;
- break;
}
return false;
}
$pageId = (int)$pageId;
if ($pageId > 0) {
- $pageRecordIsDeleted = $queryBuilderForPages
+ $queryBuilderForPages
->select('uid', 'deleted')
->from('pages')
->where(
}
// Looking for a reference from a field which is NOT a soft reference (thus, only fields with a proper TCA/Flexform configuration)
- $result = $queryBuilder
+ $queryBuilder
->select('hash')
->from('sys_refindex')
->where(
public static function getRecordPath($uid)
{
$uid = (int)$uid;
- $output = ($fullOutput = '/');
+ $output = '/';
if ($uid === 0) {
return $output;
}
// If password is updated, output whether it failed or was OK.
if ($this->passwordIsSubmitted) {
- $flashMessage = null;
switch ($this->passwordIsUpdated) {
case self::PASSWORD_OLD_WRONG:
$flashMessages[] = $this->getFlashMessage('oldPassword_failed', 'newPassword', FlashMessage::ERROR);
* Init
*
* @param TypoScriptTemplateModuleController $pObj
- * @param array $conf
*/
- public function init(&$pObj, $conf)
+ public function init($pObj)
{
- parent::init($pObj, $conf);
$this->localLanguageFilePath = 'EXT:tstemplate/Resources/Private/Language/locallang_analyzer.xlf';
$this->pObj->modMenu_setDefaultList .= ',ts_analyzer_checkLinenum,ts_analyzer_checkSyntax';
}
* Init
*
* @param TypoScriptTemplateModuleController $pObj
- * @param array $conf
*/
- public function init(&$pObj, $conf)
+ public function init($pObj)
{
- parent::init($pObj, $conf);
+ parent::init($pObj);
$this->pObj->modMenu_dontValidateList .= ',ts_browser_toplevel_setup,ts_browser_toplevel_const,ts_browser_TLKeys_setup,ts_browser_TLKeys_const';
$this->pObj->modMenu_setDefaultList .= ',ts_browser_fixedLgd,ts_browser_showComments';
$this->localLanguageFilePath = 'EXT:tstemplate/Resources/Private/Language/locallang_objbrowser.xlf';
$workspaceStageRecs = $this->getStagesForWS();
if (is_array($workspaceStageRecs) && !empty($workspaceStageRecs)) {
reset($workspaceStageRecs);
- while ($workspaceStageRecKey = key($workspaceStageRecs) !== null) {
+ while (key($workspaceStageRecs) !== null) {
$workspaceStageRec = current($workspaceStageRecs);
if ($workspaceStageRec['uid'] == $stageId) {
$nextStage = next($workspaceStageRecs);
$workspaceStageRecs = $this->getStagesForWS();
if (is_array($workspaceStageRecs) && !empty($workspaceStageRecs)) {
end($workspaceStageRecs);
- while ($workspaceStageRecKey = key($workspaceStageRecs) !== null) {
+ while (key($workspaceStageRecs) !== null) {
$workspaceStageRec = current($workspaceStageRecs);
if ($workspaceStageRec['uid'] == $stageId) {
$prevStage = prev($workspaceStageRecs);