PHP Class Contao\Database\Updater

Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0.
Inheritance: extends Controller
Datei anzeigen Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__construct ( ) Import the Database object
convertMultiField ( string $table, string $field ) Convert a multi source field to UUIDs
convertOrderField ( string $table, string $field ) Convert an order source field to UUIDs
convertSingleField ( string $table, string $field ) Convert a single source field to UUIDs
run210Update ( ) Version 2.10.0 update
run28Update ( ) Version 2.8.0 update
run292Update ( ) Version 2.9.2 update
run29Update ( ) Version 2.9.0 update
run300Update ( ) Version 3.0.0 update
run31Update ( ) Version 3.1.0 update
run32Update ( ) Version 3.2.0 update
run33Update ( ) Version 3.3.0 update
run35Update ( ) Version 3.5.0 update
run40Update ( ) Version 4.0.0 update
scanUploadFolder ( string $strPath = null, integer $pid = null ) Scan the upload folder and create the database entries
updateFileTreeFields ( ) Update all FileTree fields

Protected Methods

Method Description
createContentElement ( Result $objElement, string $strPtable, string $strField ) Create a content element
generateHelperObject ( mixed $value ) : stdClass Generate a helper object based on a field value

Method Details

__construct() public method

Import the Database object
public __construct ( )

convertMultiField() public static method

Convert a multi source field to UUIDs
public static convertMultiField ( string $table, string $field )
$table string The table name
$field string The field name

convertOrderField() public static method

Convert an order source field to UUIDs
public static convertOrderField ( string $table, string $field )
$table string The table name
$field string The field name

convertSingleField() public static method

Convert a single source field to UUIDs
public static convertSingleField ( string $table, string $field )
$table string The table name
$field string The field name

createContentElement() protected method

Create a content element
protected createContentElement ( Result $objElement, string $strPtable, string $strField )
$objElement Result A database result object
$strPtable string The name of the parent table
$strField string The name of the text column

generateHelperObject() protected static method

Generate a helper object based on a field value
protected static generateHelperObject ( mixed $value ) : stdClass
$value mixed The field value
return stdClass The helper object

run210Update() public method

Version 2.10.0 update
public run210Update ( )

run28Update() public method

Version 2.8.0 update
public run28Update ( )

run292Update() public method

Version 2.9.2 update
public run292Update ( )

run29Update() public method

Version 2.9.0 update
public run29Update ( )

run300Update() public method

Version 3.0.0 update
public run300Update ( )

run31Update() public method

Version 3.1.0 update
public run31Update ( )

run32Update() public method

Version 3.2.0 update
public run32Update ( )

run33Update() public method

Version 3.3.0 update
public run33Update ( )

run35Update() public method

Version 3.5.0 update
public run35Update ( )

run40Update() public method

Version 4.0.0 update
public run40Update ( )

scanUploadFolder() public method

Scan the upload folder and create the database entries
public scanUploadFolder ( string $strPath = null, integer $pid = null )
$strPath string The target folder
$pid integer The parent ID

updateFileTreeFields() public method

Update all FileTree fields