PHP Class N98\Util\Console\Helper\MagentoHelper

Inheritance: extends N98\Magento\Command\TestCase
Exibir arquivo Open project: netz98/n98-magerun Class Usage Examples

Protected Properties

Property Type Description
$_customConfigFilename string
$_magentoEnterprise boolean
$_magentoMajorVersion integer
$_magentoRootFolder string
$_magerunStopFileFolder string
$_magerunStopFileFound boolean
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

Public Methods

Method Description
__construct ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null )
detect ( string $folder, array $subFolders = [] ) : boolean Start Magento detection
detectMagento2InHtdocsSubfolder ( )
detectMagentoFailed ( )
detectMagentoInHtdocsSubfolder ( )
detectMagentoInModmanInfrastructure ( )
detectMagentoInStandardFolder ( )
getEdition ( )
getMagerunStopFileFolder ( ) : string
getMajorVersion ( ) : integer
getName ( ) : string Returns the canonical name of this helper.
getRootFolder ( ) : string
isEnterpriseEdition ( ) : boolean
isMagerunStopFileFound ( ) : boolean
testHelperInstance ( )

Protected Methods

Method Description
_search ( string $searchFolder ) : boolean
checkMagerunFile ( array $folders ) : array Check for magerun stop-file
checkModman ( array $folders ) : array Check for modman file and .basedir
getHelper ( ) : MagentoHelper
splitPathFolders ( string $folder ) : array

Method Details

__construct() public method

public __construct ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

checkMagerunFile() protected method

Check for magerun stop-file
protected checkMagerunFile ( array $folders ) : array
$folders array
return array

checkModman() protected method

Check for modman file and .basedir
protected checkModman ( array $folders ) : array
$folders array
return array

detect() public method

Start Magento detection
public detect ( string $folder, array $subFolders = [] ) : boolean
$folder string
$subFolders array [optional] sub-folders to check
return boolean

detectMagento2InHtdocsSubfolder() public method

detectMagentoFailed() public method

public detectMagentoFailed ( )

detectMagentoInHtdocsSubfolder() public method

detectMagentoInModmanInfrastructure() public method

detectMagentoInStandardFolder() public method

getEdition() public method

public getEdition ( )

getHelper() protected method

protected getHelper ( ) : MagentoHelper
return MagentoHelper

getMagerunStopFileFolder() public method

public getMagerunStopFileFolder ( ) : string
return string

getMajorVersion() public method

public getMajorVersion ( ) : integer
return integer

getName() public method

Returns the canonical name of this helper.
public getName ( ) : string
return string The canonical name

getRootFolder() public method

public getRootFolder ( ) : string
return string

isEnterpriseEdition() public method

public isEnterpriseEdition ( ) : boolean
return boolean

isMagerunStopFileFound() public method

public isMagerunStopFileFound ( ) : boolean
return boolean

splitPathFolders() protected method

protected splitPathFolders ( string $folder ) : array
$folder string
return array

testHelperInstance() public method

public testHelperInstance ( )

Property Details

$_customConfigFilename protected_oe property

protected string $_customConfigFilename
return string

$_magentoEnterprise protected_oe property

protected bool $_magentoEnterprise
return boolean

$_magentoMajorVersion protected_oe property

protected int $_magentoMajorVersion
return integer

$_magentoRootFolder protected_oe property

protected string $_magentoRootFolder
return string

$_magerunStopFileFolder protected_oe property

protected string $_magerunStopFileFolder
return string

$_magerunStopFileFound protected_oe property

protected bool $_magerunStopFileFound
return boolean

$input protected_oe property

protected InputInterface,Symfony\Component\Console\Input $input
return Symfony\Component\Console\Input\InputInterface

$output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $output
return Symfony\Component\Console\Output\OutputInterface