TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Updates\PageShortcutParentUpdate Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\PageShortcutParentUpdate:
TYPO3\CMS\Install\Updates\AbstractUpdate

Public Member Functions

 checkForUpdate (&$description)
 
 performUpdate (array &$databaseQueries, &$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

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

Protected Attributes

 $title = 'Update page shortcuts with shortcut type "Parent of selected or current page"'
 
- 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

Update all pages which have set the shortcut mode "Parent of selected or current page" (PageRepository::SHORTCUT_MODE_PARENT_PAGE) to remove a possibly selected page as this would cause a different behaviour of the shortcut now since the selected page is now respected in this shortcut mode.

Definition at line 24 of file PageShortcutParentUpdate.php.

Member Function Documentation

◆ checkForUpdate()

TYPO3\CMS\Install\Updates\PageShortcutParentUpdate::checkForUpdate ( $description)

Checks if an update is needed

Parameters
string&$descriptionThe description for the update
Returns
bool Whether an update is needed (TRUE) or not (FALSE)

Definition at line 37 of file PageShortcutParentUpdate.php.

References TYPO3\CMS\Install\Updates\PageShortcutParentUpdate\getUpdatablePages(), and TYPO3\CMS\Install\Updates\AbstractUpdate\isWizardDone().

◆ getUpdatablePages()

TYPO3\CMS\Install\Updates\PageShortcutParentUpdate::getUpdatablePages ( )
protected

◆ performUpdate()

TYPO3\CMS\Install\Updates\PageShortcutParentUpdate::performUpdate ( array &  $databaseQueries,
$customMessages 
)

Performs the database update

Parameters
array&$databaseQueriesQueries done in this update
mixed&$customMessagesCustom messages
Returns
bool

Definition at line 70 of file PageShortcutParentUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\getDatabaseConnection(), TYPO3\CMS\Install\Updates\PageShortcutParentUpdate\getUpdatablePages(), and TYPO3\CMS\Install\Updates\AbstractUpdate\markWizardAsDone().

Member Data Documentation

◆ $title

TYPO3\CMS\Install\Updates\PageShortcutParentUpdate::$title = 'Update page shortcuts with shortcut type "Parent of selected or current page"'
protected

Definition at line 29 of file PageShortcutParentUpdate.php.