TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Install\Updates\RootTemplateUpdate Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\RootTemplateUpdate:
TYPO3\CMS\Install\Updates\AbstractUpdate TYPO3\CMS\Install\Updates\InstallerProcessInterface

Public Member Functions

 checkForUpdate (&$description, &$showUpdate=0)
 
 performUpdate (array &$dbQueries, &$customMessages)
 
- Public Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 getTitle ()
 
 setTitle ($title)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 shouldRenderWizard ()
 
 shouldRenderNextButton ()
 
 checkIfTableExists ($table)
 
 checkForUpdate (&$description)
 
 performUpdate (array &$dbQueries, &$customMessages)
 

Protected Member Functions

 findRootLevelPages ()
 
 findRootTemplates (array $pageUids)
 
- Protected Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 markWizardAsDone ($confValue=1)
 
 isWizardDone ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $title = 'Integrate TypoScript Root Template'
 
- Protected Attributes inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 $title
 
 $identifier
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 $pObj
 
 $userInput
 
 $versionNumber
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Migrates the old media FlexForm to the new

Definition at line 20 of file RootTemplateUpdate.php.

Member Function Documentation

◆ checkForUpdate()

TYPO3\CMS\Install\Updates\RootTemplateUpdate::checkForUpdate ( $description,
$showUpdate = 0 
)

Checks whether updates need to be performed

Parameters
string&$descriptionThe description for the update
integer&$showUpdate0=dont show update; 1=show update and next button; 2=only show description
Returns
boolean

Definition at line 34 of file RootTemplateUpdate.php.

References TYPO3\CMS\Install\Updates\RootTemplateUpdate\findRootLevelPages(), and TYPO3\CMS\Install\Updates\RootTemplateUpdate\findRootTemplates().

◆ findRootLevelPages()

TYPO3\CMS\Install\Updates\RootTemplateUpdate::findRootLevelPages ( )
protected

Finds pages on the root level (pid 0).

Returns
array|NULL

Definition at line 102 of file RootTemplateUpdate.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Updates\RootTemplateUpdate\checkForUpdate().

◆ findRootTemplates()

TYPO3\CMS\Install\Updates\RootTemplateUpdate::findRootTemplates ( array  $pageUids)
protected

Finds root templates in the given pages.

Parameters
array$pageUids
Returns
array|NULL

Definition at line 128 of file RootTemplateUpdate.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Updates\RootTemplateUpdate\checkForUpdate().

◆ performUpdate()

TYPO3\CMS\Install\Updates\RootTemplateUpdate::performUpdate ( array &  $dbQueries,
$customMessages 
)

Performs updates and creates one page and Typoscript root template.

Parameters
array&$dbQueriesQueries done in this update
mixed&$customMessagesCustom messages
Returns
boolean Whether the updated was made or not

Definition at line 55 of file RootTemplateUpdate.php.

References $GLOBALS, and $result.

Member Data Documentation

◆ $title

TYPO3\CMS\Install\Updates\RootTemplateUpdate::$title = 'Integrate TypoScript Root Template'
protected

Definition at line 25 of file RootTemplateUpdate.php.