2024-11-05 16:13:03 +01:00
|
|
|
<?php
|
2024-11-20 18:50:18 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view
|
|
|
|
* the LICENSE file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* https://www.d3data.de
|
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
|
|
|
* @author D3 Data Development - Max Buhe, Daniel Seifert <info@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
|
|
|
*/
|
|
|
|
|
2024-11-05 16:13:03 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace D3\ManufacturerInformation\Modules\Application\Model;
|
|
|
|
|
|
|
|
use D3\ManufacturerInformation\Application\Model\Constants;
|
|
|
|
use OxidEsales\Eshop\Application\Model\Manufacturer;
|
|
|
|
use OxidEsales\Eshop\Application\Model\ManufacturerList;
|
|
|
|
use OxidEsales\Eshop\Core\Field;
|
2024-11-21 17:01:14 +01:00
|
|
|
use OxidEsales\Eshop\Core\Registry;
|
2024-11-05 16:13:03 +01:00
|
|
|
|
|
|
|
class ManufacturerInfoList extends ManufacturerInfoList_parent
|
|
|
|
{
|
2024-11-20 18:50:18 +01:00
|
|
|
/**
|
|
|
|
* @param Manufacturer|D3ManufacturerLongDesc $oManufacturer
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function addCategoryFields($oManufacturer)
|
|
|
|
{
|
|
|
|
parent::addCategoryFields($oManufacturer);
|
|
|
|
|
2024-11-21 17:01:14 +01:00
|
|
|
if (Registry::getConfig()->getConfigParam('d3manufacturerinformation_showManufacturertextOnManufacturerPage')) {
|
|
|
|
$oManufacturer->oxcategories__oxlongdesc = new Field(
|
|
|
|
html_entity_decode(
|
2024-11-22 21:34:45 +01:00
|
|
|
$oManufacturer->getFieldData(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME) ?? ''
|
2024-11-21 17:01:14 +01:00
|
|
|
),
|
|
|
|
Field::T_RAW
|
|
|
|
);
|
|
|
|
}
|
2024-11-20 18:50:18 +01:00
|
|
|
}
|
|
|
|
}
|