/** * @return bool * @SuppressWarnings(PHPMD.UnusedLocalVariable) */ protected function isValidAttributes() { $this->_clearMessages(); if (!isset($this->_rowData['product_type'])) { return false; } $entityTypeModel = $this->context->retrieveProductTypeByName($this->_rowData['product_type']); if ($entityTypeModel) { foreach ($this->_rowData as $attrCode => $attrValue) { $attrParams = $entityTypeModel->retrieveAttributeFromCache($attrCode); if ($attrParams) { $this->isAttributeValid($attrCode, $attrParams, $this->_rowData); } } if ($this->getMessages()) { return false; } } return true; }