TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService Class Reference

Static Public Member Functions

static registerAdditionalTypeForMigration ($table, $field, $additionalType)
 
static registerFieldForMigration ($table, $field, $migrationField, $oldFieldName, $typeField=NULL, array $types=array())
 

Static Protected Member Functions

static fieldIsInType ($fieldName, $table, array $row)
 
static getPageRepository ()
 

Static Protected Attributes

static $availableMigrationFields
 
static $migrateFields
 

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! Tslib content adapter to modify $row array ($cObj->data[]) for backwards compatibility

Author
Ingmar Schlecht ingma.nosp@m.r@ty.nosp@m.po3.o.nosp@m.rg http://www.gnu.org/copyleft/gpl.html

Definition at line 22 of file FrontendContentAdapterService.php.

Member Function Documentation

◆ fieldIsInType()

static TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService::fieldIsInType (   $fieldName,
  $table,
array  $row 
)
staticprotected

Check if fieldis in type

Parameters
string$fieldName
string$table
array$row
Returns
boolean

Definition at line 199 of file FrontendContentAdapterService.php.

◆ getPageRepository()

static TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService::getPageRepository ( )
staticprotected
Returns

Definition at line 211 of file FrontendContentAdapterService.php.

References $GLOBALS.

◆ registerAdditionalTypeForMigration()

static TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService::registerAdditionalTypeForMigration (   $table,
  $field,
  $additionalType 
)
static

Registers an additional record type for an existing migration configuration.

For use in ext_localconf.php files.

Parameters
string$tableName of the table in the migration configuration
string$fieldName of the field in the migration configuration
string$additionalTypeThe additional type for which the migration should be applied
Exceptions

Definition at line 155 of file FrontendContentAdapterService.php.

◆ registerFieldForMigration()

static TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService::registerFieldForMigration (   $table,
  $field,
  $migrationField,
  $oldFieldName,
  $typeField = NULL,
array  $types = array() 
)
static

Registers an additional field for migration.

For use in ext_localconf.php files

Parameters
string$tableName of the table in the migration configuration
string$fieldName of the field in the migration configuration
string$migrationFieldThe file property that should be migrated, see $availableMigrateFields for available settings
string$oldFieldNameThe name of the field in which the file property should be available
string$typeFieldOptional field that switches the record type, will only have an effect if $types array is provided
array$typesThe record types for which the migration should be active
Exceptions

Definition at line 177 of file FrontendContentAdapterService.php.

Member Data Documentation

◆ $availableMigrationFields

TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService::$availableMigrationFields
staticprotected
Initial value:
= array(
'paths',
'titleTexts',
'captions',
'links',
'alternativeTexts'
)

Definition at line 29 of file FrontendContentAdapterService.php.

◆ $migrateFields

TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService::$migrateFields
staticprotected
Initial value:
= array(
'tt_content' => array(
'image' => array(
'paths' => 'image',
'titleTexts' => 'titleText',
'captions' => 'imagecaption',
'links' => 'image_link',
'alternativeTexts' => 'altText',
'__typeMatch' => array(
'typeField' => 'CType',
'types' => array('image', 'textpic'),
)
),
'media' => array(
'paths' => 'media',
'captions' => 'imagecaption',
'__typeMatch' => array(
'typeField' => 'CType',
'types' => array('uploads'),
)
)
),
'pages' => array(
'media' => array(
'paths' => 'media'
)
)
)

Definition at line 42 of file FrontendContentAdapterService.php.