modules/UpgradeWizard/upgradeMetaHelper.php

Show: inherited
Table of Contents

\UpgradeMetaHelper

Package:

Properties

Propertypublic  $customized_modules= ''
Details
Type
n/a
Propertypublic  $debug_mode= ''
Details
Type
n/a
Propertypublic  $dest_dir= ''
Details
Type
n/a
Propertypublic  $dvparser= ''
Details
Type
n/a
Propertypublic  $evparser= ''
Details
Type
n/a
Propertypublic  $path_to_master_copy= ''
Details
Type
n/a
Propertypublic  $source_dir= ''
Details
Type
n/a
Propertypublic  $upgrade_dir= ''
Details
Type
n/a
Propertypublic  $upgrade_modules= ''
Details
Type
n/a

Methods

methodpublicUpgradeMetaHelper( \$dir $dir = 'upgrade', \$masterCopyDirectory $masterCopyDirecotry = 'modules_50', \$debugMode $debugMode = false ) : void

UpgradeMetaHelper This is the constructor for the UpgradeMetaHelper class

Parameters
Name Type Description
$dir \$dir

The root upgrade directory (where to copy working files)

$masterCopyDirecotry \$masterCopyDirectory

The root master directory (where SugarCRM 5.x files reside)

$debugMode \$debugMode

Debug mode, default is false

methodpubliccreate_upgrade_directory( ) : void

create_upgrade_directory Creates a directory called upgrade to house all the modules that are studio enabled.

Also creates subdirectories for all studio enabled modules.

methodpublicgetAllCustomizedModules( ) : void

Get all the customized modules. Compare the file md5s with the base md5s If a file has been modified then put the module in the list of customized modules. Show the list in the preflight check UI.

methodpublicgetAllCustomizedModulesBeyondStudio( ) : void

methodpublicgetModifiedModules( ) : \$return_array

getModifiedModules This method returns a two-dimensional Array of Studio enabled modules that have been modified. The second Array index is an Array of files that do not match the md5 checksum for the module

Returns
Type Description
\$return_array Two-dimensional Array of [module][modified file(s) Array]
methodpublicloadStudioModules( ) : \$modules

loadStudioModules This method returns an Array of all modules where a studio.php file is present in the metadata directory of the module

Returns
Type Description
\$modules Array of modules that are studio enabled
methodpublicparseFile( \$module_name $module_name, \$files $files ) : void

parseFile Hanldes parsing the files for given module where Studio or manual changes have been detected.

Parameters
Name Type Description
$module_name \$module_name

The module to parse

$files \$files

Array of files found to parse

methodpublicrunParser( ) : void

runParser This method creates the EditView and DetailView parser intances and runs the parsing for the modules to upgrade

methodpublicsaveMatchingFilesQueries(  $currStep,  $value ) : void

Parameters
Name Type Description
$currStep
$value
methodpublicverifyMetaData( \$metadataFile $metadataFile, \$module $module, \$view $view ) : boolean

verifyMetaData This function does some quick checks to make sure the metadataFile at least has an Array panel

Parameters
Name Type Description
$metadataFile \$metadataFile

The path to the metadata file to verify

$module \$module

The module to verify

$view \$view

The view (EditView or DetailView)

Returns
Type Description
boolean true if verification check is okay; false otherwise
Documentation was generated by DocBlox 0.18.1.