Guest User

Untitled

a guest
Jun 19th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. foreach($modelCustomerAccounts as $modelCustomerAccount){
  2. $modelCustomer = Mage::getModel($customerModelClass);
  3. $customers[] = $modelCustomer->load($modelCustomerAccount->getCustomerId());
  4.  
  5. public function createObjectOnTheFly($modelName,$model)
  6. {
  7. $newObject = Mage::getModel($modelName . "/$model");
  8. return $newObject;
  9. }
  10.  
  11. public function __construct(
  12. MagentoBackendBlockTemplateContext $context,
  13. MagentoCatalogModelCategoryFactory $categoryFactory,
  14. array $data = []
  15. )
  16. {
  17. $this->_categoryFactory = $categoryFactory;
  18. parent::__construct($context, $data);
  19. }
Add Comment
Please, Sign In to add comment