-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #678 from magento-dragons/BugFestW1
[DRAGONS][Troll][GoInc][South][API][EPAM] Bug Fixes and Stories
- Loading branch information
Showing
328 changed files
with
15,225 additions
and
1,778 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
app/code/Magento/Catalog/Api/ProductManagementInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Catalog\Api; | ||
|
||
/** | ||
* @api | ||
*/ | ||
interface ProductManagementInterface | ||
{ | ||
/** | ||
* Provide the number of product count | ||
* | ||
* @param null|int $status | ||
* @return int | ||
*/ | ||
public function getCount($status = null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 0 additions & 80 deletions
80
app/code/Magento/Catalog/Model/App/Action/ContextPlugin.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Catalog\Model; | ||
|
||
use Magento\Catalog\Model\Product\Attribute\Backend\Media\ImageEntryConverter; | ||
use Magento\Catalog\Helper\Image; | ||
|
||
class ImageExtractor implements \Magento\Framework\View\Xsd\Media\TypeDataExtractorInterface | ||
{ | ||
/** | ||
* Extract configuration data of images from the DOM structure | ||
* | ||
* @param \DOMElement $mediaNode | ||
* @param string $mediaParentTag | ||
* @return array | ||
*/ | ||
public function process(\DOMElement $mediaNode, $mediaParentTag) | ||
{ | ||
$result = []; | ||
/** @var \DOMElement $node */ | ||
$moduleNameImage = $mediaNode->getAttribute('module'); | ||
foreach ($mediaNode->getElementsByTagName(ImageEntryConverter::MEDIA_TYPE_CODE) as $node) { | ||
$imageId = $node->getAttribute('id'); | ||
$result[$mediaParentTag][$moduleNameImage][Image::MEDIA_TYPE_CONFIG_NODE][$imageId]['type'] | ||
= $node->getAttribute('type'); | ||
foreach ($node->childNodes as $attribute) { | ||
if ($attribute->nodeType != XML_ELEMENT_NODE) { | ||
continue; | ||
} | ||
$nodeValue = $attribute->nodeValue; | ||
$result[$mediaParentTag][$moduleNameImage][Image::MEDIA_TYPE_CONFIG_NODE][$imageId][$attribute->tagName] | ||
= $nodeValue; | ||
} | ||
} | ||
|
||
return $result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.