PHP Class KJ\Magento\Command\Order\Create\DummyCommand

Inheritance: extends N98\Magento\Command\AbstractMagentoCommand
Show file Open project: kalenjordan/magerun-addons

Protected Properties

Property Type Description
$_availableSippingMethods * Supported shipping methods
$_customer Mage_Customer_Model_Customer
$_defaultStoreId * Lazy loading
$_input Symfony\Component\Console\Input\InputInterface
$_output Symfony\Component\Console\Output\OutputInterface
$_product Mage_Catalog_Model_Product
$_quote Mage_Sales_Model_Quote

Protected Methods

Method Description
_createOrder ( )
_getCustomOptions ( )
_getDefaultStoreId ( )
_getShippingMethodCode ( )
_getStoreId ( )
_loadRandomCustomer ( )
_loadRandomProduct ( $skuPattern = null )
_resetEverything ( ) Reset the customer, product, quote objects that have been saved so that new ones can be generated for the next iteration.
addItemToQuote ( )
configure ( )
createOrderFromQuote ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
getCreatedAt ( )
getCustomer ( ) : Mage_Customer_Model_Customer
getCustomerBillingAddress ( )
getCustomerShippingAddress ( )
getDefaultAddress ( )
getProduct ( ) : Mage_Catalog_Model_Product
getQuote ( ) : Mage_Sales_Model_Quote
sendOrderEmail ( $order )
setupBillingAddress ( )
setupPaymentMethod ( )
setupShippingAddress ( )
setupShippingMethod ( )

Method Details

_createOrder() protected method

protected _createOrder ( )

_getCustomOptions() protected method

protected _getCustomOptions ( )

_getDefaultStoreId() protected method

protected _getDefaultStoreId ( )

_getShippingMethodCode() protected method

protected _getShippingMethodCode ( )

_getStoreId() protected method

protected _getStoreId ( )

_loadRandomCustomer() protected method

protected _loadRandomCustomer ( )

_loadRandomProduct() protected method

protected _loadRandomProduct ( $skuPattern = null )

_resetEverything() protected method

Reset the customer, product, quote objects that have been saved so that new ones can be generated for the next iteration.
protected _resetEverything ( )

addItemToQuote() protected method

protected addItemToQuote ( )

configure() protected method

protected configure ( )

createOrderFromQuote() protected method

protected createOrderFromQuote ( )

execute() protected method

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

getCreatedAt() protected method

protected getCreatedAt ( )

getCustomer() protected method

protected getCustomer ( ) : Mage_Customer_Model_Customer
return Mage_Customer_Model_Customer

getCustomerBillingAddress() protected method

getCustomerShippingAddress() protected method

getDefaultAddress() protected method

protected getDefaultAddress ( )

getProduct() protected method

protected getProduct ( ) : Mage_Catalog_Model_Product
return Mage_Catalog_Model_Product

getQuote() protected method

protected getQuote ( ) : Mage_Sales_Model_Quote
return Mage_Sales_Model_Quote

sendOrderEmail() protected method

protected sendOrderEmail ( $order )
$order \Mage_Sales_Model_Order

setupBillingAddress() protected method

protected setupBillingAddress ( )

setupPaymentMethod() protected method

protected setupPaymentMethod ( )

setupShippingAddress() protected method

protected setupShippingAddress ( )

setupShippingMethod() protected method

protected setupShippingMethod ( )

Property Details

$_availableSippingMethods protected property

* Supported shipping methods
protected $_availableSippingMethods

$_customer protected property

protected Mage_Customer_Model_Customer $_customer
return Mage_Customer_Model_Customer

$_defaultStoreId protected property

* Lazy loading
protected $_defaultStoreId

$_input protected property

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

$_output protected property

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

$_product protected property

protected Mage_Catalog_Model_Product $_product
return Mage_Catalog_Model_Product

$_quote protected property

protected Mage_Sales_Model_Quote $_quote
return Mage_Sales_Model_Quote