fix wrong namespace, change outdated method name

This commit is contained in:
Daniel Seifert 2020-02-25 11:23:39 +01:00
parent 11447ef248
commit a66b87d7ec
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
4 changed files with 8 additions and 7 deletions

View File

@ -15,14 +15,14 @@
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
*/ */
namespace D3\Modules\AttributeMultiValues\Application\Controllers\Admin { namespace D3\AttributeMultiValues\Modules\Application\Controllers\Admin {
use OxidEsales\Eshop\Application\Controller\Admin\ArticleAttributeAjax; use OxidEsales\Eshop\Application\Controller\Admin\ArticleAttributeAjax;
class d3_article_attribute_ajax_multivalues_parent extends ArticleAttributeAjax {} class d3_article_attribute_ajax_multivalues_parent extends ArticleAttributeAjax {}
} }
namespace D3\Modules\AttributeMultiValues\Application\Model { namespace D3\AttributeMultiValues\Modules\Application\Model {
use OxidEsales\Eshop\Application\Model\AttributeList; use OxidEsales\Eshop\Application\Model\AttributeList;

View File

@ -15,7 +15,7 @@
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
*/ */
namespace D3\Modules\AttributeMultiValues\Application\Controllers\Admin; namespace D3\AttributeMultiValues\Modules\Application\Controllers\Admin;
use Exception; use Exception;
use OxidEsales\Eshop\Application\Model\Article; use OxidEsales\Eshop\Application\Model\Article;
@ -39,8 +39,9 @@ class d3_article_attribute_ajax_multivalues extends d3_article_attribute_ajax_mu
$sArtId = Registry::getRequest()->getRequestParameter('oxid'); $sArtId = Registry::getRequest()->getRequestParameter('oxid');
if (false == $sArtId) { if (false == $sArtId) {
/** @var Attribute $attribute */
$attribute = oxNew(Attribute::class); $attribute = oxNew(Attribute::class);
$sAttrViewName = $attribute->_getViewName(); $sAttrViewName = $attribute->getViewName();
$sQAdd = " from {$sAttrViewName} where {$sAttrViewName}.oxid "; $sQAdd = " from {$sAttrViewName} where {$sAttrViewName}.oxid ";
} }

View File

@ -14,7 +14,7 @@
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
*/ */
namespace D3\Modules\AttributeMultiValues\Application\Model; namespace D3\AttributeMultiValues\Modules\Application\Model;
class d3_oxattributelist_multivalues extends d3_oxattributelist_multivalues_parent class d3_oxattributelist_multivalues extends d3_oxattributelist_multivalues_parent
{ {

View File

@ -13,8 +13,8 @@
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
*/ */
use D3\Modules\AttributeMultiValues\Application\Controllers\Admin\d3_article_attribute_ajax_multivalues; use D3\AttributeMultiValues\Modules\Application\Controllers\Admin\d3_article_attribute_ajax_multivalues;
use D3\Modules\AttributeMultiValues\Application\Model\d3_oxattributelist_multivalues; use D3\AttributeMultiValues\Modules\Application\Model\d3_oxattributelist_multivalues;
use OxidEsales\Eshop\Application\Controller\Admin\ArticleAttributeAjax; use OxidEsales\Eshop\Application\Controller\Admin\ArticleAttributeAjax;
use OxidEsales\Eshop\Application\Model\AttributeList; use OxidEsales\Eshop\Application\Model\AttributeList;