PHP 클래스 ConvertM1M2, convertm1m2

Copyright (c) 2015 Boris Gurvich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
파일 보기 프로젝트 열기: unirgy/convertm1m2 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_aliases
$_autoloadMode
$_classFileCache
$_currentFile
$_env
$_fileCache
$_layouts
$_replace Sources: http://mage2.ru, https://wiki.magento.com/display/MAGE2DOC/Class+Mage
$_reservedWordsRe
$_skipConvertToDiRegex .. )$#ix
$_testInputFiles
$_testMode
$_testOutputFiles

공개 메소드들

메소드 설명
__construct ( $sourceDir, $mage1Dir, $mage2Dir )
addTestInputFile ( $contents, $filename = null )
autoloadCallback ( $class )
collectCoreModulesConfigs ( )
collectCoreModulesLayouts ( )
convertAllConfigs ( )
convertAllControllers ( )
convertAllExtensions ( $stage )
convertAllI18n ( )
convertAllLayouts ( )
convertAllObservers ( )
convertAllOtherFiles ( )
convertAllPhpFilesDI ( )
convertAllTemplates ( )
convertAllWebAssets ( )
convertCodeContents ( $contents, $mode = 'php' )
convertCodeContentsPhpMode ( $contents )
convertCodeObjectManagerToDI ( $contents )
convertCodeParseMethods ( $contents, $fileType = false, $returnResult = false )
convertConfigAcl ( )
convertConfigAclRecursive ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml, $path = '' )
convertConfigAdminhtmlDI ( )
convertConfigCatalogAttributes ( )
convertConfigCrontab ( )
convertConfigDI ( )
convertConfigDefaults ( )
convertConfigEmailTemplates ( )
convertConfigEvents ( )
convertConfigFieldset ( )
convertConfigFrontendDI ( )
convertConfigMenu ( )
convertConfigMenuRecursive ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml, $parent = null )
convertConfigModule ( )
convertConfigPdf ( )
convertConfigResources ( )
convertConfigRoutesAdmin ( )
convertConfigRoutesFrontend ( )
convertConfigSales ( )
convertConfigSystem ( )
convertConfigSystemNode ( $type, SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
convertConfigWidget ( )
convertConfigWidgetDataRecursive ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
convertController ( $file, $sourceDir, $targetDir )
convertControllerContext ( $contents )
convertDIGetParentConstructArgs ( $contents )
convertExtensionStage1 ( $extName, $rootDir )
convertExtensionStage2 ( $extName )
convertFindParentConstruct ( $contents, $first = true )
convertGenerateComposerFile ( )
convertGenerateMetaFiles ( )
convertGenerateRegistrationFile ( )
convertGetFullClassName ( $contents, $contentsClass, $shortClass ) : string
convertLayoutAreaTheme ( $area, $theme )
convertLayoutArgumentRecursive ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
convertLayoutFile ( $area, $file, $outputDir )
convertLayoutHeadNode ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
convertLayoutRecursive ( $area, SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
convertNamespaceUse ( $contents )
convertObserver ( $sourceFile, $targetDir )
convertPhpClasses ( $folder, $callback = null )
convertShortArraySyntax ( $contents )
convertTemplatesAreaTheme ( $area, $theme )
convertTemplatesEmails ( )
copyFile ( $src, $dst, $expand = false )
copyRecursive ( $src, $dst, $expand = false )
createConfigXml ( string $schemaPath, string $rootTagName = 'config' ) : SimpleDOM
deleteFile ( $filename, $expand = false )
expandOutputPath ( $path )
expandSourcePath ( $path )
findFilesRecursive ( $dir, $expand = false )
getClassName ( $type, $moduleClassKey, $m2 = true )
getOpportunisticArgValue ( $value )
getReplaceMaps ( )
getTestOutputFile ( $filename = null )
log ( $msg, $continue = false )
readFile ( $filename, $expand = false )
setTestMode ( $testMode = true )
writeFile ( $filename, $contents, $expand = false )

메소드 상세

__construct() 공개 메소드

public __construct ( $sourceDir, $mage1Dir, $mage2Dir )

addTestInputFile() 공개 메소드

public addTestInputFile ( $contents, $filename = null )

autoloadCallback() 공개 메소드

public autoloadCallback ( $class )

collectCoreModulesConfigs() 공개 메소드

collectCoreModulesLayouts() 공개 메소드

convertAllConfigs() 공개 메소드

public convertAllConfigs ( )

convertAllControllers() 공개 메소드

convertAllExtensions() 공개 메소드

public convertAllExtensions ( $stage )

convertAllI18n() 공개 메소드

public convertAllI18n ( )

convertAllLayouts() 공개 메소드

public convertAllLayouts ( )

convertAllObservers() 공개 메소드

public convertAllObservers ( )

convertAllOtherFiles() 공개 메소드

convertAllPhpFilesDI() 공개 메소드

convertAllTemplates() 공개 메소드

public convertAllTemplates ( )

convertAllWebAssets() 공개 메소드

public convertAllWebAssets ( )

convertCodeContents() 공개 메소드

public convertCodeContents ( $contents, $mode = 'php' )

convertCodeContentsPhpMode() 공개 메소드

public convertCodeContentsPhpMode ( $contents )

convertCodeObjectManagerToDI() 공개 메소드

public convertCodeObjectManagerToDI ( $contents )

convertCodeParseMethods() 공개 메소드

public convertCodeParseMethods ( $contents, $fileType = false, $returnResult = false )

convertConfigAcl() 공개 메소드

public convertConfigAcl ( )

convertConfigAclRecursive() 공개 메소드

public convertConfigAclRecursive ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml, $path = '' )
$sourceXml SimpleXMLElement
$targetXml SimpleXMLElement

convertConfigAdminhtmlDI() 공개 메소드

convertConfigCatalogAttributes() 공개 메소드

convertConfigCrontab() 공개 메소드

convertConfigDI() 공개 메소드

public convertConfigDI ( )

convertConfigDefaults() 공개 메소드

convertConfigEmailTemplates() 공개 메소드

convertConfigEvents() 공개 메소드

public convertConfigEvents ( )

convertConfigFieldset() 공개 메소드

convertConfigFrontendDI() 공개 메소드

convertConfigMenu() 공개 메소드

public convertConfigMenu ( )

convertConfigMenuRecursive() 공개 메소드

public convertConfigMenuRecursive ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml, $parent = null )
$sourceXml SimpleXMLElement
$targetXml SimpleXMLElement

convertConfigModule() 공개 메소드

public convertConfigModule ( )

convertConfigPdf() 공개 메소드

public convertConfigPdf ( )

convertConfigResources() 공개 메소드

convertConfigRoutesAdmin() 공개 메소드

convertConfigRoutesFrontend() 공개 메소드

convertConfigSales() 공개 메소드

public convertConfigSales ( )

convertConfigSystem() 공개 메소드

public convertConfigSystem ( )

convertConfigSystemNode() 공개 메소드

public convertConfigSystemNode ( $type, SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
$sourceXml SimpleXMLElement
$targetXml SimpleXMLElement

convertConfigWidget() 공개 메소드

public convertConfigWidget ( )

convertConfigWidgetDataRecursive() 공개 메소드

public convertConfigWidgetDataRecursive ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
$sourceXml SimpleXMLElement
$targetXml SimpleXMLElement

convertController() 공개 메소드

public convertController ( $file, $sourceDir, $targetDir )

convertControllerContext() 공개 메소드

public convertControllerContext ( $contents )

convertDIGetParentConstructArgs() 공개 메소드

public convertDIGetParentConstructArgs ( $contents )

convertExtensionStage1() 공개 메소드

public convertExtensionStage1 ( $extName, $rootDir )

convertExtensionStage2() 공개 메소드

public convertExtensionStage2 ( $extName )

convertFindParentConstruct() 공개 메소드

public convertFindParentConstruct ( $contents, $first = true )

convertGenerateComposerFile() 공개 메소드

convertGenerateMetaFiles() 공개 메소드

convertGenerateRegistrationFile() 공개 메소드

convertGetFullClassName() 공개 메소드

public convertGetFullClassName ( $contents, $contentsClass, $shortClass ) : string
$contents
$contentsClass
$shortClass
리턴 string full class with first backslash for consistency

convertLayoutAreaTheme() 공개 메소드

public convertLayoutAreaTheme ( $area, $theme )

convertLayoutArgumentRecursive() 공개 메소드

public convertLayoutArgumentRecursive ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
$sourceXml SimpleXMLElement
$targetXml SimpleXMLElement

convertLayoutFile() 공개 메소드

public convertLayoutFile ( $area, $file, $outputDir )

convertLayoutHeadNode() 공개 메소드

public convertLayoutHeadNode ( SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
$sourceXml SimpleXMLElement
$targetXml SimpleXMLElement

convertLayoutRecursive() 공개 메소드

public convertLayoutRecursive ( $area, SimpleXMLElement $sourceXml, SimpleXMLElement $targetXml )
$sourceXml SimpleXMLElement
$targetXml SimpleXMLElement

convertNamespaceUse() 공개 메소드

public convertNamespaceUse ( $contents )

convertObserver() 공개 메소드

public convertObserver ( $sourceFile, $targetDir )

convertPhpClasses() 공개 메소드

public convertPhpClasses ( $folder, $callback = null )

convertShortArraySyntax() 공개 메소드

public convertShortArraySyntax ( $contents )

convertTemplatesAreaTheme() 공개 메소드

public convertTemplatesAreaTheme ( $area, $theme )

convertTemplatesEmails() 공개 메소드

copyFile() 공개 메소드

public copyFile ( $src, $dst, $expand = false )

copyRecursive() 공개 메소드

public copyRecursive ( $src, $dst, $expand = false )

createConfigXml() 공개 메소드

public createConfigXml ( string $schemaPath, string $rootTagName = 'config' ) : SimpleDOM
$schemaPath string
$rootTagName string
리턴 SimpleDOM

deleteFile() 공개 메소드

public deleteFile ( $filename, $expand = false )

expandOutputPath() 공개 메소드

public expandOutputPath ( $path )

expandSourcePath() 공개 메소드

public expandSourcePath ( $path )

findFilesRecursive() 공개 메소드

public findFilesRecursive ( $dir, $expand = false )

getClassName() 공개 메소드

public getClassName ( $type, $moduleClassKey, $m2 = true )

getOpportunisticArgValue() 공개 메소드

public getOpportunisticArgValue ( $value )

getReplaceMaps() 공개 메소드

public getReplaceMaps ( )

getTestOutputFile() 공개 메소드

public getTestOutputFile ( $filename = null )

log() 공개 메소드

public log ( $msg, $continue = false )

readFile() 공개 메소드

public readFile ( $filename, $expand = false )

setTestMode() 공개 메소드

public setTestMode ( $testMode = true )

writeFile() 공개 메소드

public writeFile ( $filename, $contents, $expand = false )

프로퍼티 상세

$_aliases 보호되어 있는 프로퍼티

protected $_aliases

$_autoloadMode 보호되어 있는 프로퍼티

protected $_autoloadMode

$_classFileCache 보호되어 있는 프로퍼티

protected $_classFileCache

$_currentFile 보호되어 있는 프로퍼티

protected $_currentFile

$_env 보호되어 있는 프로퍼티

protected $_env

$_fileCache 보호되어 있는 프로퍼티

protected $_fileCache

$_layouts 보호되어 있는 프로퍼티

protected $_layouts

$_replace 보호되어 있는 프로퍼티

Sources: http://mage2.ru, https://wiki.magento.com/display/MAGE2DOC/Class+Mage
protected $_replace

$_reservedWordsRe 보호되어 있는 프로퍼티

protected $_reservedWordsRe

$_skipConvertToDiRegex 보호되어 있는 프로퍼티

.. )$#ix
protected $_skipConvertToDiRegex

$_testInputFiles 보호되어 있는 프로퍼티

protected $_testInputFiles

$_testMode 보호되어 있는 프로퍼티

protected $_testMode

$_testOutputFiles 보호되어 있는 프로퍼티

protected $_testOutputFiles