Skip to content
Merged
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Block\Adminhtml\Catalog\Product\Edit\Tab;

Expand All @@ -14,7 +14,6 @@
/**
* Adminhtml catalog product downloadable items tab and form
*
* @author Magento Core Team <core@magentocommerce.com>
* @deprecated 100.3.1
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite
*/
Expand Down Expand Up @@ -45,8 +44,6 @@ class Downloadable extends Widget implements TabInterface
protected $blockId = 'downloadableInfo';

/**
* Core registry
*
* @var Registry
*/
protected $_coreRegistry = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable;

/**
* Adminhtml catalog product downloadable items tab links section
*
* @author Magento Core Team <core@magentocommerce.com>
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*
* @deprecated 100.3.1 in favor of new class which adds grid links
Expand Down Expand Up @@ -36,8 +35,6 @@ class Links extends \Magento\Backend\Block\Template
protected $_template = 'Magento_Downloadable::product/edit/downloadable/links.phtml';

/**
* Downloadable file
*
* @var \Magento\Downloadable\Helper\File
*/
protected $_downloadableFile = null;
Expand All @@ -50,8 +47,6 @@ class Links extends \Magento\Backend\Block\Template
protected $_coreFileStorageDb = null;

/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable;

/**
* Adminhtml catalog product downloadable items tab links section
*
* @author Magento Core Team <core@magentocommerce.com>
*
* @deprecated 100.3.1 because of new class which adds grids samples
* @see \Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Samples
*/
Expand All @@ -28,8 +26,6 @@ class Samples extends \Magento\Backend\Block\Widget
protected $_template = 'Magento_Downloadable::product/edit/downloadable/samples.phtml';

/**
* Downloadable file
*
* @var \Magento\Downloadable\Helper\File
*/
protected $_downloadableFile = null;
Expand All @@ -42,8 +38,6 @@ class Samples extends \Magento\Backend\Block\Widget
protected $_coreFileStorageDb = null;

/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Catalog downloadable product part block
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Downloadable\Block\Catalog\Product\View;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2013 Adobe
* All Rights Reserved.
*/

/**
* Shopping cart downloadable item render block
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Downloadable\Block\Checkout\Cart\Item;

Expand Down
6 changes: 2 additions & 4 deletions app/code/Magento/Downloadable/Block/Checkout/Success.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Downloadable checkout success page
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Downloadable\Block\Checkout;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Controller\Adminhtml\Downloadable;

/**
* Downloadable File upload controller
*
* @author Magento Core Team <core@magentocommerce.com>
*/
abstract class File extends \Magento\Backend\App\Action
{
Expand All @@ -17,5 +15,5 @@ abstract class File extends \Magento\Backend\App\Action
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Catalog::products';
public const ADMIN_RESOURCE = 'Magento_Catalog::products';
}
6 changes: 2 additions & 4 deletions app/code/Magento/Downloadable/Controller/Download.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2013 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Controller;

Expand All @@ -10,8 +10,6 @@

/**
* Download controller
*
* @author Magento Core Team <core@magentocommerce.com>
*/
abstract class Download extends \Magento\Framework\App\Action\Action
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

namespace Magento\Downloadable\Helper\Catalog\Product;

/**
* Helper for fetching properties by product configurational item
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Configuration extends \Magento\Framework\App\Helper\AbstractHelper implements
\Magento\Catalog\Helper\Product\Configuration\ConfigurationInterface
Expand Down
6 changes: 2 additions & 4 deletions app/code/Magento/Downloadable/Helper/Data.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Helper;

Expand All @@ -11,8 +11,6 @@

/**
* Downloadable helper
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{
Expand Down
6 changes: 2 additions & 4 deletions app/code/Magento/Downloadable/Model/Product/Price.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Downloadable products price model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Downloadable\Model\Product;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Model\ResourceModel\Link;

use Magento\Catalog\Api\Data\ProductInterface;

/**
* Downloadable links resource collection
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Model\ResourceModel\Link;

/**
* Downloadable Product link purchased resource model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Purchased extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Model\ResourceModel\Link\Purchased;

/**
* Downloadable Product link purchased items resource model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Item extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Model\System\Config\Source;

/**
* Downloadable Content Disposition Source
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Contentdisposition implements \Magento\Framework\Option\ArrayInterface
{
/**
* Return option array
*
* @return array
*/
public function toOptionArray()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Model\System\Config\Source;

/**
* Downloadable Order Item Status Source
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Orderitemstatus implements \Magento\Framework\Option\ArrayInterface
{
/**
* Return option array
*
* @return array
*/
public function toOptionArray()
Expand Down