eZ Publish  [4.0]
checkdbfiles.php File Reference

Go to the source code of this file.

Functions

 exportSVNVersion ($version, $exportPath)
 handleExportVersionList ($basePath, $exportBasePath, $subdir, &$fileList, &$missingFileList, &$exportMissingFileList, &$conflictFileList, &$scannedDirs, $useInfoFiles, $versionList)
 handleVersionList ($basePath, $subdir, &$fileList, &$missingFileList, &$conflictFileList, &$scannedDirs, $useInfoFiles, $versionList)

Variables

 $branches = array()
 $branches [] = '4.0'
 $cli = eZCLI::instance()
 $conflictFileList = array()
if(!function_exists( 'md5_file'))
if(!$options['no-verify-branches']) 
$currentBranch = eZPublishSDK::VERSION_MAJOR . '.' . eZPublishSDK::VERSION_MINOR
 $dbTypes = array()
 $dbTypes [] = 'mysql'
 $exportMissingFileList = array()
 $fileList = array()
 $lowestExportVersion = '4.0'
 $missingFileList = array()
 $options
 $scannedDirs = array()
 $script
 $versions = array()
 $versions ['4.0'] = $versions40
 $versions40

Function Documentation

exportSVNVersion ( version,
exportPath 
)

Definition at line 211 of file checkdbfiles.php.

handleExportVersionList ( basePath,
exportBasePath,
subdir,
&$  fileList,
&$  missingFileList,
&$  exportMissingFileList,
&$  conflictFileList,
&$  scannedDirs,
useInfoFiles,
versionList 
)

Definition at line 162 of file checkdbfiles.php.

handleVersionList ( basePath,
subdir,
&$  fileList,
&$  missingFileList,
&$  conflictFileList,
&$  scannedDirs,
useInfoFiles,
versionList 
)

Definition at line 111 of file checkdbfiles.php.


Variable Documentation

$branches = array()

Definition at line 67 of file checkdbfiles.php.

$branches[] = '4.0'

Definition at line 68 of file checkdbfiles.php.

$cli = eZCLI::instance()

Definition at line 35 of file checkdbfiles.php.

$conflictFileList = array()

Definition at line 107 of file checkdbfiles.php.

Referenced by handleExportVersionList().

if (!function_exists( 'md5_file')) if (!$options['no-verify-branches']) $currentBranch = eZPublishSDK::VERSION_MAJOR . '.' . eZPublishSDK::VERSION_MINOR

Definition at line 263 of file checkdbfiles.php.

$dbTypes = array()

Definition at line 63 of file checkdbfiles.php.

$dbTypes[] = 'mysql'

Definition at line 64 of file checkdbfiles.php.

$exportMissingFileList = array()

Definition at line 108 of file checkdbfiles.php.

Referenced by handleExportVersionList().

$lowestExportVersion = '4.0'

Definition at line 71 of file checkdbfiles.php.

$missingFileList = array()

Definition at line 106 of file checkdbfiles.php.

Referenced by handleVersionList().

$options
Initial value:
 $script->getOptions( "[no-verify-branches][export-path:]",
                                "",
                                array( 'no-verify-branches' => "Do not verify the content of the files with previous branches (To avoid SVN usage)",
                                       'export-path' => "Directory to use for doing SVN exports."
                                       ) )

Definition at line 56 of file checkdbfiles.php.

$scannedDirs = array()

Definition at line 109 of file checkdbfiles.php.

Referenced by handleVersionList().

Initial value:
 eZScript::instance( array( 'description' => ( "eZ Publish DB file verifier\n\n" .
                                                        "Checks the database update files and gives a report on them.\n" .
                                                        "It will show which files are missing and which should not be present.\n" .
                                                        "\n" .
                                                        "For each file with problems it will output a status and the filepath\n" .
                                                        "The status will be one of these:\n" .
                                                        " '?' file is not defined in upgrade path\n" .
                                                        " '!' file defined in upgrade path but missing on filesystem\n" .
                                                        " 'A' file is present in working copy but not in the original stable branch\n" .
                                                        " 'C' file data conflicts with the original stable branch\n" .
                                                        "\n" .
                                                        "Example output:\n" .
                                                        "  checkdbfiles.php\n" .
                                                        "  ? update/database/mysql/3.5/dbupdate-3.5.0-to-3.5.1.sql" ),
                                     'use-session' => false,
                                     'use-modules' => false,
                                     'use-extensions' => true ) )

Definition at line 36 of file checkdbfiles.php.

$versions['4.0'] = $versions40

Definition at line 103 of file checkdbfiles.php.

$versions40
Initial value:
 array( 'unstable' => array( array( '3.10.0', '4.0.0alpha1' )
                                          , array( '4.0.0alpha1', '4.0.0alpha2' )
                                          , array( '4.0.0alpha2', '4.0.0beta1' )
                                          , array( '4.0.0beta1', '4.0.0rc1' )
                                          , array( '4.0.0rc1', '4.0.0' )
                      , array( '4.0.0', '4.0.1rc1' )
                      , array( '4.0.1rc1', '4.0.1rc2' )
                      , array( '4.0.1rc2', '4.0.1' )
                                         ),
                     'unstable_subdir' => 'unstable',
                     'stable' => array( array( '3.10.0', '4.0.0' )
                                        , array( '4.0.0', '4.0.1' )
                                        , array( '4.0.1', '4.0.2' )
                                        , array( '4.0.2', '4.0.3' )
                                        , array( '4.0.3', '4.0.4' )
                                        , array( '4.0.4', '4.0.5' )
                                        , array( '4.0.5', '4.0.6' )
                                        , array( '4.0.6', '4.0.7' )
                                        , array( '4.0.7', '4.0.8' )
                )
           )

Definition at line 81 of file checkdbfiles.php.