PHP Class N98\Magento\Command\Developer\Code\Model\MethodCommand

Inheritance: extends N98\Magento\Command\AbstractMagentoCommand
Datei anzeigen Open project: netz98/n98-magerun

Protected Properties

Property Type Description
$_fileName string
$_input Symfony\Component\Console\Input\InputInterface
$_mageModel Mage_Core_Model_Abstract
$_mageModelTable string
$_output Symfony\Component\Console\Output\OutputInterface
$_tableColumns array

Protected Methods

Method Description
camelize ( string $name ) : string
checkClassFileName ( )
checkModel ( )
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
generateComment ( ) : string
getColumnType ( $columnType ) : string Mapping method to transform MySQL column types into PHP types
getGetterSetter ( ) : array
initTableColumns ( ) helper method to fill _tableColumns array
searchFullPath ( string $filename ) : string | false
writeToClassFile ( )

Method Details

camelize() protected method

protected camelize ( string $name ) : string
$name string
return string

checkClassFileName() protected method

protected checkClassFileName ( )

checkModel() protected method

protected checkModel ( )

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | null | void

generateComment() protected method

protected generateComment ( ) : string
return string

getColumnType() protected method

Mapping method to transform MySQL column types into PHP types
protected getColumnType ( $columnType ) : string
$columnType
return string

getGetterSetter() protected method

protected getGetterSetter ( ) : array
return array

initTableColumns() protected method

helper method to fill _tableColumns array
See also: _tableColumns
protected initTableColumns ( )

searchFullPath() protected method

protected searchFullPath ( string $filename ) : string | false
$filename string
return string | false

writeToClassFile() protected method

protected writeToClassFile ( )

Property Details

$_fileName protected_oe property

protected string $_fileName
return string

$_input protected_oe property

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

$_mageModel protected_oe property

protected Mage_Core_Model_Abstract $_mageModel
return Mage_Core_Model_Abstract

$_mageModelTable protected_oe property

protected string $_mageModelTable
return string

$_output protected_oe property

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

$_tableColumns protected_oe property

See also: initTableColumns
protected array $_tableColumns
return array