PHP 클래스 N98\Magento\Command\AbstractMagentoCommand

상속: extends Symfony\Component\Console\Command\Command
파일 보기 프로젝트 열기: netz98/n98-magerun 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_deprecatedAlias array
$_magentoEnterprise boolean
$_magentoMajorVersion integer
$_magentoRootFolder string
$_websiteCodeMap array

공개 메소드들

메소드 설명
detectMagento ( Symfony\Component\Console\Output\OutputInterface $output, boolean $silent = true ) Search for magento root folder
run ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer

보호된 메소드들

메소드 설명
_getModel ( string $mage1code, string $mage2class ) : Mage_Core_Model_Abstract Magento 1 / 2 switches
_getResourceModel ( string $mage1code, string $mage2class ) : Mage_Core_Model_Abstract Magento 1 / 2 switches
_getResourceSingleton ( string $mage1code, string $mage2class ) : Mage_Core_Model_Abstract Magento 1 / 2 switches
_getWebsiteCodeById ( integer $websiteId ) : string
_getWebsiteIdByCode ( string $websiteCode ) : integer
_parseBoolOption ( string $value ) : boolean
addDeprecatedAlias ( string $alias, string $message ) : AbstractMagentoCommand
askForArrayEntry ( array $entries, Symfony\Component\Console\Output\OutputInterface $output, string $question ) : mixed
checkDeprecatedAliases ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
checkRepository ( Composer\Package\PackageInterface $package, string $targetFolder ) brings locally cached repository up to date if it is missing the requested tag
chooseInstallationFolder ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
createComposerPackageByConfig ( array | Composer\Package\PackageInterface $config ) : Composer\Package\CompletePackage
downloadByComposerConfig ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array | Composer\Package\PackageInterface $config, string $targetFolder, boolean $preferSource = true ) : Composer\Package\CompletePackage
formatActive ( string $value ) : string
getArgumentMessage ( string $argument, string $message = null ) : string
getCommandConfig ( string | null $commandClass = null ) : array
getComposer ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : Composer\Composer obtain composer
getComposerDownloadManager ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : Composer\Downloader\DownloadManager
getCoreHelper ( ) : Mage_Core_Helper_Data
getOrAskForArgument ( string $argument, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $message = null ) : string
initMagento ( boolean $soft = false ) : boolean Bootstrap magento shop
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Initializes the command just after the input has been validated.
isSourceTypeRepository ( string $type ) : boolean
normalizePath ( string $path ) : string normalize paths on windows / cygwin / msysgit
requireEnterprise ( Symfony\Component\Console\Output\OutputInterface $output ) Die if not Enterprise
writeSection ( Symfony\Component\Console\Output\OutputInterface $output, string $text, string $style = 'bg=blue;fg=white' )

비공개 메소드들

메소드 설명
_initWebsites ( )

메소드 상세

_getModel() 보호된 메소드

Magento 1 / 2 switches
protected _getModel ( string $mage1code, string $mage2class ) : Mage_Core_Model_Abstract
$mage1code string Magento 1 class code
$mage2class string Magento 2 class name
리턴 Mage_Core_Model_Abstract

_getResourceModel() 보호된 메소드

Magento 1 / 2 switches
protected _getResourceModel ( string $mage1code, string $mage2class ) : Mage_Core_Model_Abstract
$mage1code string Magento 1 class code
$mage2class string Magento 2 class name
리턴 Mage_Core_Model_Abstract

_getResourceSingleton() 보호된 메소드

Magento 1 / 2 switches
protected _getResourceSingleton ( string $mage1code, string $mage2class ) : Mage_Core_Model_Abstract
$mage1code string Magento 1 class code
$mage2class string Magento 2 class name
리턴 Mage_Core_Model_Abstract

_getWebsiteCodeById() 보호된 메소드

protected _getWebsiteCodeById ( integer $websiteId ) : string
$websiteId integer
리턴 string

_getWebsiteIdByCode() 보호된 메소드

protected _getWebsiteIdByCode ( string $websiteCode ) : integer
$websiteCode string
리턴 integer

_parseBoolOption() 보호된 메소드

protected _parseBoolOption ( string $value ) : boolean
$value string
리턴 boolean

addDeprecatedAlias() 보호된 메소드

protected addDeprecatedAlias ( string $alias, string $message ) : AbstractMagentoCommand
$alias string
$message string
리턴 AbstractMagentoCommand

askForArrayEntry() 보호된 메소드

protected askForArrayEntry ( array $entries, Symfony\Component\Console\Output\OutputInterface $output, string $question ) : mixed
$entries array zero-indexed array of entries (represented by strings) to select from
$output Symfony\Component\Console\Output\OutputInterface
$question string
리턴 mixed

checkDeprecatedAliases() 보호된 메소드

protected checkDeprecatedAliases ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

checkRepository() 보호된 메소드

brings locally cached repository up to date if it is missing the requested tag
protected checkRepository ( Composer\Package\PackageInterface $package, string $targetFolder )
$package Composer\Package\PackageInterface
$targetFolder string

chooseInstallationFolder() 보호된 메소드

protected chooseInstallationFolder ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

createComposerPackageByConfig() 보호된 메소드

protected createComposerPackageByConfig ( array | Composer\Package\PackageInterface $config ) : Composer\Package\CompletePackage
$config array | Composer\Package\PackageInterface
리턴 Composer\Package\CompletePackage

detectMagento() 공개 메소드

Search for magento root folder
public detectMagento ( Symfony\Component\Console\Output\OutputInterface $output, boolean $silent = true )
$output Symfony\Component\Console\Output\OutputInterface
$silent boolean print debug messages

downloadByComposerConfig() 보호된 메소드

protected downloadByComposerConfig ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array | Composer\Package\PackageInterface $config, string $targetFolder, boolean $preferSource = true ) : Composer\Package\CompletePackage
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$config array | Composer\Package\PackageInterface
$targetFolder string
$preferSource boolean
리턴 Composer\Package\CompletePackage

formatActive() 보호된 메소드

protected formatActive ( string $value ) : string
$value string
리턴 string

getArgumentMessage() 보호된 메소드

protected getArgumentMessage ( string $argument, string $message = null ) : string
$argument string
$message string [optional]
리턴 string

getCommandConfig() 보호된 메소드

protected getCommandConfig ( string | null $commandClass = null ) : array
$commandClass string | null
리턴 array

getComposer() 보호된 메소드

obtain composer
protected getComposer ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : Composer\Composer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 Composer\Composer

getComposerDownloadManager() 보호된 메소드

protected getComposerDownloadManager ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : Composer\Downloader\DownloadManager
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 Composer\Downloader\DownloadManager

getCoreHelper() 보호된 메소드

protected getCoreHelper ( ) : Mage_Core_Helper_Data
리턴 Mage_Core_Helper_Data

getOrAskForArgument() 보호된 메소드

protected getOrAskForArgument ( string $argument, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $message = null ) : string
$argument string
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$message string
리턴 string

initMagento() 보호된 메소드

Bootstrap magento shop
protected initMagento ( boolean $soft = false ) : boolean
$soft boolean
리턴 boolean

initialize() 보호된 메소드

This is mainly useful when a lot of commands extends one main command where some things need to be initialized based on the input arguments and options.
protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface An InputInterface instance
$output Symfony\Component\Console\Output\OutputInterface An OutputInterface instance

isSourceTypeRepository() 보호된 메소드

protected isSourceTypeRepository ( string $type ) : boolean
$type string
리턴 boolean

normalizePath() 보호된 메소드

when using a path value that has been created in a cygwin shell but then PHP uses it inside a cmd shell it needs to be filtered.
protected normalizePath ( string $path ) : string
$path string
리턴 string

requireEnterprise() 보호된 메소드

Die if not Enterprise
protected requireEnterprise ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

run() 공개 메소드

public run ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 integer

writeSection() 보호된 메소드

protected writeSection ( Symfony\Component\Console\Output\OutputInterface $output, string $text, string $style = 'bg=blue;fg=white' )
$output Symfony\Component\Console\Output\OutputInterface
$text string
$style string

프로퍼티 상세

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

protected array $_deprecatedAlias
리턴 array

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

protected bool $_magentoEnterprise
리턴 boolean

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

protected int $_magentoMajorVersion
리턴 integer

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

protected string $_magentoRootFolder
리턴 string

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

protected array $_websiteCodeMap
리턴 array