TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties:
TYPO3\CMS\Install\Updates\AbstractUpdate tx_rtehtmlarea_deprecatedRteProperties

Public Member Functions

 checkForUpdate (&$description)
 
 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

 findUpdateablePagesWithDeprecatedRteProperties (&$pages)
 
 updatePages ($pages, &$dbQueries, &$customMessages)
 
- Protected Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 markWizardAsDone ($confValue=1)
 
 isWizardDone ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $title = 'Deprecated RTE properties in Page TSconfig'
 
 $replacementRteProperties
 
 $doubleReplacementRteProperties
 
 $useInsteadRteProperties
 
- 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

Contains the update class for the replacement of deprecated RTE properties in Page TSconfig. Used by the update wizard in the install tool.

Author
Stanislas Rolland typo3.nosp@m.@sjb.nosp@m.r.ca

Definition at line 24 of file DeprecatedRteProperties.php.

Member Function Documentation

◆ checkForUpdate()

TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::checkForUpdate ( $description)

Function which checks if update is needed. Called in the beginning of an update process.

Parameters
stringpointer to description for the update
Returns
boolean TRUE if update is needs to be performed, FALSE otherwise.

Definition at line 83 of file DeprecatedRteProperties.php.

References $result, TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties\findUpdateablePagesWithDeprecatedRteProperties(), and TYPO3\CMS\Install\Updates\AbstractUpdate\isWizardDone().

◆ findUpdateablePagesWithDeprecatedRteProperties()

TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::findUpdateablePagesWithDeprecatedRteProperties ( $pages)
protected

Gets the pages with updateable deprecated RTE properties in TSConfig column

Parameters
array$pages,reference to pages with deprecated property
Returns
array uid and inclusion string for the pages with deprecated RTE properties in TSConfig column

Definition at line 213 of file DeprecatedRteProperties.php.

Referenced by TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties\checkForUpdate(), and TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties\performUpdate().

◆ performUpdate()

TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::performUpdate ( array &  $dbQueries,
$customMessages 
)

Performs the update itself

Parameters
arraypointer where to insert all DB queries made, so they can be shown to the user if wanted
stringpointer to output custom messages
Returns
boolean TRUE if update succeeded, FALSE otherwise

Definition at line 147 of file DeprecatedRteProperties.php.

References $GLOBALS, TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties\findUpdateablePagesWithDeprecatedRteProperties(), TYPO3\CMS\Install\Updates\AbstractUpdate\markWizardAsDone(), and TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties\updatePages().

◆ updatePages()

TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::updatePages (   $pages,
$dbQueries,
$customMessages 
)
protected

updates the pages records with updateable Page TSconfig properties

Parameters
arraypages records to update, fetched by getTemplates() and filtered by
arraypointer where to insert all DB queries made, so they can be shown to the user if wanted
stringpointer to output custom messages

Definition at line 234 of file DeprecatedRteProperties.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties\performUpdate().

Member Data Documentation

◆ $doubleReplacementRteProperties

TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::$doubleReplacementRteProperties
protected
Initial value:
= array(
'disableTYPO3Browsers' => array(
'buttons.image.TYPO3Browser.disabled',
'buttons.link.TYPO3Browser.disabled'
),
'showTagFreeClasses' => array(
'buttons.blockstyle.showTagFreeClasses',
'buttons.textstyle.showTagFreeClasses'
),
'disablePCexamples' => array(
'buttons.blockstyle.disableStyleOnOptionLabel',
'buttons.textstyle.disableStyleOnOptionLabel'
)
)

Definition at line 47 of file DeprecatedRteProperties.php.

◆ $replacementRteProperties

TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::$replacementRteProperties
protected
Initial value:
= array(
'disableRightClick' => 'contextMenu.disable',
'disableContextMenu' => 'contextMenu.disable',
'hidePStyleItems' => 'buttons.formatblock.removeItems',
'hideFontFaces' => 'buttons.fontstyle.removeItems',
'fontFace' => 'buttons.fontstyle.addItems',
'hideFontSizes' => 'buttons.fontsize.removeItems',
'classesCharacter' => 'buttons.textstyle.tags.span.allowedClasses',
'classesParagraph' => 'buttons.blockstyle.tags.div.allowedClasses',
'classesTable' => 'buttons.blockstyle.tags.table.allowedClasses',
'classesTD' => 'buttons.blockstyle.tags.td.allowedClasses',
'classesImage' => 'buttons.image.properties.class.allowedClasses',
'classesLinks' => 'buttons.link.properties.class.allowedClasses',
'blindImageOptions' => 'buttons.image.options.removeItems',
'blindLinkOptions' => 'buttons.link.options.removeItems',
'defaultLinkTarget' => 'buttons.link.properties.target.default'
)

Definition at line 29 of file DeprecatedRteProperties.php.

◆ $title

TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::$title = 'Deprecated RTE properties in Page TSconfig'
protected

Definition at line 26 of file DeprecatedRteProperties.php.

◆ $useInsteadRteProperties

TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties::$useInsteadRteProperties
protected
Initial value:
= array(
'fontSize' => 'buttons.fontsize.addItems',
'RTE.default.classesAnchor' => 'RTE.default.buttons.link.properties.class.allowedClasses',
'RTE.default.classesAnchor.default.[link-type]' => 'RTE.default.buttons.link.[link-type].properties.class.default',
'mainStyleOverride' => 'contentCSS',
'mainStyleOverride_add.[key]' => 'contentCSS',
'mainStyle_font' => 'contentCSS',
'mainStyle_size' => 'contentCSS',
'mainStyle_color' => 'contentCSS',
'mainStyle_bgcolor' => 'contentCSS',
'inlineStyle.[any-keystring]' => 'contentCSS',
'ignoreMainStyleOverride' => 'n.a.'
)

Definition at line 63 of file DeprecatedRteProperties.php.