Compare commits

..

No commits in common. "master" and "1.0.0.0" have entirely different histories.

20 changed files with 108 additions and 499 deletions

View File

@ -31,7 +31,7 @@ class FixArtextendsItems extends ActionBase
*/ */
public function getTitle() : string public function getTitle() : string
{ {
return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_ACTIONS_FIXARTEXTENDSITEMS', null, true); return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_ACTIONS_FIXARTEXTENDSITEMS');
} }
/** /**

View File

@ -1,62 +0,0 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
namespace D3\DataWizardTasks\Application\Model\Actions;
use D3\DataWizard\Application\Model\ActionBase;
use OxidEsales\Eshop\Application\Model\Content;
use OxidEsales\Eshop\Core\Registry;
class FixWysiwygSpecialChars extends ActionBase
{
/**
* @return string
*/
public function getTitle() : string
{
return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_ACTIONS_FIXWYSIWYGSPECIALCHARS', null, true);
}
/**
* @return array
*/
public function getQuery() : array
{
$content = oxNew(Content::class);
$contentTableName = $content->getCoreTableName();
$currentLanguage = $content->getLanguage();
$updateFields = [];
$whereFields = [];
foreach (array_keys(Registry::getLang()->getAllShopLanguageIds()) as $langId) {
$content->setLanguage($langId);
$fieldName = $content->getUpdateSqlFieldName('oxcontent');
$updateFields[] = 'oc.'.$fieldName.' = REPLACE(oc.'.$fieldName.', :searchSpecialChars, :replaceSpecialChars)';
$whereFields[] = $content->getUpdateSqlFieldName('oxcontent').' LIKE :whereSpecialChars';
}
$content->setLanguage($currentLanguage);
return [
"UPDATE
".$contentTableName." oc
SET
".implode(', ', $updateFields)."
WHERE ".implode(' OR ', $whereFields),
[
'searchSpecialChars' => '-&gt;',
'replaceSpecialChars' => '->',
'whereSpecialChars' => '%-&gt;%'
]
];
}
}

View File

@ -1,70 +0,0 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
namespace D3\DataWizardTasks\Application\Model\Exports;
use D3\DataWizard\Application\Model\ExportBase;
use OxidEsales\Eshop\Application\Model\Content;
use OxidEsales\Eshop\Core\Registry;
class DestroyedWysiwygSpecialChars extends ExportBase
{
/**
* @return string
*/
public function getTitle() : string
{
return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS', null, true);
}
public function getDescription() : string
{
return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_DESC', null, true);
}
/**
* @return array
*/
public function getQuery() : array
{
$content = oxNew(Content::class);
$contentTableName = $content->getCoreTableName();
$titleTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_TITLE', null, true);
$loadIdTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_LOADID', null, true);
$currentLanguage = $content->getLanguage();
$whereFields = [];
foreach (array_keys(Registry::getLang()->getAllShopLanguageIds()) as $langId) {
$content->setLanguage($langId);
$whereFields[] = $content->getUpdateSqlFieldName('oxcontent').' LIKE :specialChars';
}
$content->setLanguage($currentLanguage);
return [
"SELECT
oc.OXID,
oc.OXSHOPID,
oc.OXLOADID as :loadId,
oc.OXTITLE as :titleTitle
FROM ".$contentTableName." oc
WHERE ".implode(' OR ', $whereFields)."
GROUP BY oc.oxloadid",
[
'specialChars' => '%-&gt;%',
'loadId' => $loadIdTitle,
'titleTitle' => $titleTitle
]
];
}
}

View File

@ -30,7 +30,7 @@ class InactiveCategories extends ExportBase
*/ */
public function getTitle() : string public function getTitle() : string
{ {
return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES', null, true); return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES');
} }
/** /**
@ -42,9 +42,9 @@ class InactiveCategories extends ExportBase
$object2categoryTableName = oxNew(Object2Category::class)->getCoreTableName(); $object2categoryTableName = oxNew(Object2Category::class)->getCoreTableName();
$articleTableName = oxNew(Article::class)->getCoreTableName(); $articleTableName = oxNew(Article::class)->getCoreTableName();
$treeTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TREE', null, true); $treeTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TREE');
$titleTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TITLE', null, true); $titleTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TITLE');
$countTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_COUNT', null, true); $countTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_COUNT');
return [ return [
"SELECT "SELECT

View File

@ -31,9 +31,9 @@ class KeyFigures extends ExportBase
public function __construct() public function __construct()
{ {
/** @var Date $startDate */ /** @var Date $startDate */
$startDateValue = Registry::getRequest()->getRequestEscapedParameter(self::STARTDATE_NAME) ?: '1970-01-01'; $startDateValue = Registry::getRequest()->getRequestEscapedParameter(self::STARTDATE_NAME);
$startDate = FormFactory::date( $startDate = FormFactory::date(
Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_STARTDATE', null, true), Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_STARTDATE'),
[ [
'name' => self::STARTDATE_NAME, 'name' => self::STARTDATE_NAME,
'value' => $startDateValue 'value' => $startDateValue
@ -42,9 +42,9 @@ class KeyFigures extends ExportBase
$this->registerFormElement($startDate); $this->registerFormElement($startDate);
/** @var Date $endDate */ /** @var Date $endDate */
$endDateValue = Registry::getRequest()->getRequestEscapedParameter(self::ENDDATE_NAME) ?: date('Y-m-d'); $endDateValue = Registry::getRequest()->getRequestEscapedParameter(self::ENDDATE_NAME);
$endDate = FormFactory::date( $endDate = FormFactory::date(
Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_ENDDATE', null, true), Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_ENDDATE'),
[ [
'name' => self::ENDDATE_NAME, 'name' => self::ENDDATE_NAME,
'value' => $endDateValue 'value' => $endDateValue
@ -58,7 +58,7 @@ class KeyFigures extends ExportBase
*/ */
public function getTitle() : string public function getTitle() : string
{ {
return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES', null, true); return Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES');
} }
/** /**
@ -67,9 +67,9 @@ class KeyFigures extends ExportBase
public function getQuery() : array public function getQuery() : array
{ {
$orderTable = oxNew(Order::class)->getCoreTableName(); $orderTable = oxNew(Order::class)->getCoreTableName();
$ordersTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_ORDERSPERMONTH', null, true); $ordersTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_ORDERSPERMONTH');
$basketsTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_BASKETSIZE', null, true); $basketsTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_BASKETSIZE');
$monthTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_MONTH', null, true); $monthTitle = Registry::getLang()->translateString('D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_MONTH');
$startDateValue = Registry::getRequest()->getRequestEscapedParameter(self::STARTDATE_NAME) ?: '1970-01-01'; $startDateValue = Registry::getRequest()->getRequestEscapedParameter(self::STARTDATE_NAME) ?: '1970-01-01';
$endDateValue = Registry::getRequest()->getRequestEscapedParameter(self::ENDDATE_NAME) ?: date('Y-m-d'); $endDateValue = Registry::getRequest()->getRequestEscapedParameter(self::ENDDATE_NAME) ?: date('Y-m-d');

View File

@ -0,0 +1,38 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
$sLangName = "Deutsch";
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
$aLang = array(
//Navigation
'charset' => 'UTF-8',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES' => 'deaktivierte Kategorien, mit aktiven Artikeln',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TREE' => 'Baum',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TITLE' => 'Titel',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_COUNT' => 'Anzahl',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES' => 'Bestellungskennzahlen nach Monat',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_STARTDATE'=> 'Startdatum (optional)',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_ENDDATE' => 'Enddatum (optional)',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_ORDERSPERMONTH' => 'Bestellungen pro Monat',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_BASKETSIZE' => 'Warenkorbhöhe',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_MONTH' => 'Monat',
'D3_DATAWIZARDTASKS_ACTIONS_FIXARTEXTENDSITEMS' => 'fehlende oxartextends-Einträge nachtragen',
);

View File

@ -0,0 +1,38 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
$sLangName = "English";
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
$aLang = array(
//Navigation
'charset' => 'UTF-8',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES' => 'deactivated categories, with active articles',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TREE' => 'tree',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TITLE' => 'title',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_COUNT' => 'count',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES' => 'Order key figures by month',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_STARTDATE'=> 'start date (optional)',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_ENDDATE' => 'end date (optional)',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_ORDERSPERMONTH' => 'orders per month',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_BASKETSIZE' => 'shopping cart value',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_MONTH' => 'month',
'D3_DATAWIZARDTASKS_ACTIONS_FIXARTEXTENDSITEMS' => 'add missing oxartextends entries',
);

View File

@ -1,25 +0,0 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
// @codeCoverageIgnoreStart
declare(strict_types=1);
$sLangName = 'Deutsch';
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
$aLang = include __DIR__."/../../de/d3DataWizardTasks_translations.php";
// @codeCoverageIgnoreEnd

View File

@ -1,25 +0,0 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
// @codeCoverageIgnoreStart
declare(strict_types=1);
$sLangName = 'English';
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
$aLang = include __DIR__."/../../en/d3DataWizardTasks_translations.php";
// @codeCoverageIgnoreEnd

View File

@ -1,25 +0,0 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
// @codeCoverageIgnoreStart
declare(strict_types=1);
$sLangName = 'Deutsch';
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
$aLang = include __DIR__."/../../de/d3DataWizardTasks_translations.php";
// @codeCoverageIgnoreEnd

View File

@ -1,25 +0,0 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
// @codeCoverageIgnoreStart
declare(strict_types=1);
$sLangName = 'English';
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
$aLang = include __DIR__."/../../en/d3DataWizardTasks_translations.php";
// @codeCoverageIgnoreEnd

View File

@ -1,44 +0,0 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
$sLangName = "Deutsch";
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
return [
//Navigation
'charset' => 'UTF-8',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES' => 'deaktivierte Kategorien, mit aktiven Artikeln',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TREE' => 'Baum',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TITLE' => 'Titel',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_COUNT' => 'Anzahl',
'D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS' => 'Texte mit zerstörten Sonderzeichen',
'D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_DESC' => 'Dies wird typischerweise beim Speichern von Texten im WYSIWYG-Editor hervorgerufen und kann zu undefinierten Fehlern im Shopablauf führen.',
'D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_LOADID'=> 'Lade-ID',
'D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_TITLE' => 'Titel',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES' => 'Bestellungskennzahlen nach Monat',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_STARTDATE' => 'Startdatum (optional)',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_ENDDATE' => 'Enddatum (optional)',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_ORDERSPERMONTH' => 'Bestellungen pro Monat',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_BASKETSIZE' => 'Warenkorbhöhe',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_MONTH' => 'Monat',
'D3_DATAWIZARDTASKS_ACTIONS_FIXARTEXTENDSITEMS' => 'fehlende oxartextends-Einträge nachtragen',
'D3_DATAWIZARDTASKS_ACTIONS_FIXWYSIWYGSPECIALCHARS' => 'Texte mit zerstörten Sonderzeichen korrigieren',
];

View File

@ -1,44 +0,0 @@
<?php
/**
* 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 - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
$sLangName = "English";
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
return [
//Navigation
'charset' => 'UTF-8',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES' => 'deactivated categories, with active articles',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TREE' => 'tree',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_TITLE' => 'title',
'D3_DATAWIZARDTASKS_EXPORTS_INACTIVECATEGORIES_COUNT' => 'count',
'D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS' => 'texts with destroyed special characters',
'D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_DESC' => 'This is typically caused when saving texts in the WYSIWYG editor and can lead to undefined errors in the shop flow.',
'D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_LOADID'=> 'load ID',
'D3_DATAWIZARDTASKS_EXPORTS_DESTROYEDWYSIWYGSPECIALCHARS_TITLE' => 'title',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES' => 'Order key figures by month',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_STARTDATE' => 'start date (optional)',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_FIELD_ENDDATE' => 'end date (optional)',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_ORDERSPERMONTH' => 'orders per month',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_BASKETSIZE' => 'shopping cart value',
'D3_DATAWIZARDTASKS_EXPORTS_KEYFIGURES_MONTH' => 'month',
'D3_DATAWIZARDTASKS_ACTIONS_FIXARTEXTENDSITEMS' => 'add missing oxartextends entries',
'D3_DATAWIZARDTASKS_ACTIONS_FIXWYSIWYGSPECIALCHARS' => 'fix texts with destroyed special characters',
];

View File

@ -1,26 +1,5 @@
# Changelog # Changelog
## 1.1.0.0 (2021-11-11)
- force get translations from admin
- initialize form elements with default values for generating prefilled link arguments
- make compatible to data wizard 2.x
- hide form elements containing exports, if required but outdated FormManager (5.x) is installed
---
## 1.0.2.0 (2021-07-29)
- improve description of WYSIWYG special chars tasks
---
## 1.0.1.0 (2021-07-28)
- add tasks to find and fix specal character issues caused by WYSIWYG editor
---
## 1.0.0.0 (2021-07-27) ## 1.0.0.0 (2021-07-27)
- extract tasks (exports and action) from DataWizard Core - extract tasks (exports and action) from DataWizard Core

View File

@ -15,11 +15,8 @@ namespace D3\DataWizardTasks\Modules\DataWizard\Application\Model;
use D3\DataWizard\Application\Model\Configuration as ConfigurationParent; use D3\DataWizard\Application\Model\Configuration as ConfigurationParent;
use D3\DataWizardTasks\Application\Model\Actions\FixArtextendsItems; use D3\DataWizardTasks\Application\Model\Actions\FixArtextendsItems;
use D3\DataWizardTasks\Application\Model\Actions\FixWysiwygSpecialChars;
use D3\DataWizardTasks\Application\Model\Exports\DestroyedWysiwygSpecialChars;
use D3\DataWizardTasks\Application\Model\Exports\InactiveCategories; use D3\DataWizardTasks\Application\Model\Exports\InactiveCategories;
use D3\DataWizardTasks\Application\Model\Exports\KeyFigures; use D3\DataWizardTasks\Application\Model\Exports\KeyFigures;
use FormManager\Factory;
class Configuration extends Configuration_parent class Configuration extends Configuration_parent
{ {
@ -28,13 +25,8 @@ class Configuration extends Configuration_parent
parent::configure(); parent::configure();
$this->registerAction( ConfigurationParent::GROUP_ARTICLES, oxNew( FixArtextendsItems::class)); $this->registerAction( ConfigurationParent::GROUP_ARTICLES, oxNew( FixArtextendsItems::class));
$this->registerAction( ConfigurationParent::GROUP_CMS, oxNew( FixWysiwygSpecialChars::class));
$this->registerExport( ConfigurationParent::GROUP_CATEGORY, oxNew( InactiveCategories::class)); $this->registerExport( ConfigurationParent::GROUP_CATEGORY, oxNew( InactiveCategories::class));
// FormManager $this->registerExport( ConfigurationParent::GROUP_SHOP, oxNew( KeyFigures::class));
if (class_exists(Factory::class)) {
$this->registerExport( ConfigurationParent::GROUP_SHOP, oxNew( KeyFigures::class ) );
}
$this->registerExport( ConfigurationParent::GROUP_CMS, oxNew( DestroyedWysiwygSpecialChars::class));
} }
} }

View File

@ -1,9 +1,8 @@
[![deutsche Version](https://logos.oxidmodule.com/de2_xs.svg)](README.md) > [deutsche Version](README.md)
[![english version](https://logos.oxidmodule.com/en2_xs.svg)](README.en.md)
# D³ Data Wizard Tasks for OXID eShop # D³ Data Wizard Tasks for OXID eShop
This module contains useful sample tasks for the D3 `DataWizard` in the OXID eShop and acts as an implementation reference for own exports or tasks. This module contains useful sample tasks for the D3 `DataWizard` in the OXID eShop.
## Installation ## Installation

View File

@ -1,9 +1,8 @@
[![deutsche Version](https://logos.oxidmodule.com/de2_xs.svg)](README.md) > [english version](README.en.md)
[![english version](https://logos.oxidmodule.com/en2_xs.svg)](README.en.md)
# D³ Data Wizard Aufgaben für OXID eShop # D³ Data Wizard Aufgaben für OXID eShop
Dieses Modul enthält nützliche Beispielaufgaben für den D3 `DataWizard` im OXID eShop und dient als Implementierungsreferenz für eigene Exporte oder Tasks. Dieses Modul enthält nützliche Beispielaufgaben für den D3 `DataWizard` im OXID eShop.
## Schnellinstallation ## Schnellinstallation

View File

@ -1,125 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="201px" height="124px" viewBox="0 0 201 124" enable-background="new 0 0 201 124" xml:space="preserve">
<g>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="393.0801" y1="-190.9922" x2="393.0801" y2="-178.0942" gradientTransform="matrix(1 0 0 -1 -346.0195 -123.4805)">
<stop offset="0.0056" style="stop-color:#3266A9"/>
<stop offset="1" style="stop-color:#0099FF"/>
</linearGradient>
<path fill="url(#SVGID_1_)" d="M50.282,55.502c-0.784-0.592-2.104-0.888-3.961-0.888h-1.376l-2.283,12.898h1.779
c3.76,0,6.032-2.244,6.815-6.733c0.134-0.871,0.202-1.642,0.202-2.313C51.457,57.081,51.064,56.093,50.282,55.502z"/>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="411.9805" y1="-172.5845" x2="411.9805" y2="-160.4233" gradientTransform="matrix(1 0 0 -1 -346.0195 -123.4805)">
<stop offset="0.0056" style="stop-color:#3266A9"/>
<stop offset="1" style="stop-color:#0099FF"/>
</linearGradient>
<path fill="url(#SVGID_2_)" d="M65.72,40.482c1.074,0,1.611,0.381,1.611,1.143c0,0.701-0.321,1.201-0.962,1.5
c-0.209,0.119-0.366,0.194-0.471,0.224c-0.065,0.019-0.158,0.037-0.271,0.056c1.98,1.621,3.702,3.544,5.097,5.699
c0.117-0.321,0.21-0.658,0.277-1.013l0.09-1.008c0-1.223-0.568-2.081-1.701-2.574c0.776-0.402,1.376-0.94,1.801-1.611
c0.425-0.672,0.638-1.418,0.638-2.239c0-0.642-0.198-1.265-0.593-1.868c-0.396-0.605-0.98-1.049-1.757-1.333
c-0.433-0.193-0.876-0.328-1.332-0.402c-0.456-0.075-1.003-0.113-1.645-0.113c-0.82,0-1.663,0.124-2.529,0.37
c-0.865,0.246-1.6,0.563-2.204,0.952c-0.604,0.389-1.13,0.907-1.578,1.557c-0.036,0.052-0.066,0.109-0.101,0.163
c1.196,0.534,2.341,1.163,3.426,1.874C63.947,40.943,64.68,40.482,65.72,40.482z"/>
<linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="396.0771" y1="-210.541" x2="396.0771" y2="-161.3354" gradientTransform="matrix(1 0 0 -1 -346.0195 -123.4805)">
<stop offset="0.0056" style="stop-color:#3266A9"/>
<stop offset="1" style="stop-color:#0099FF"/>
</linearGradient>
<path fill="url(#SVGID_3_)" d="M70.725,49.104c-0.433,1.189-1.208,2.147-2.331,2.871c-1.425,0.918-3.182,1.377-5.271,1.377
c-1.179,0-2.175-0.176-2.988-0.525c-0.813-0.35-1.444-0.864-1.891-1.543c-0.448-0.678-0.671-1.481-0.671-2.405l0.022-0.694
l0.156-0.693h4.367l-0.028,0.179v0.179v0.246c0,1.164,0.628,1.746,1.884,1.746c0.635,0,1.201-0.217,1.696-0.649
c0.495-0.434,0.742-0.94,0.742-1.522c0-0.522-0.194-0.887-0.582-1.097c-0.329-0.208-1.007-0.313-2.036-0.313l0.47-2.754
l1.141-0.067c0.083-0.011,0.154-0.022,0.221-0.033c-0.674-0.551-1.378-1.067-2.11-1.546c-0.044,0.096-0.087,0.195-0.125,0.302
h-4.185c0.192-0.837,0.49-1.56,0.884-2.175c-3.064-1.372-6.46-2.133-10.034-2.133c-13.588,0-24.603,11.014-24.603,24.601
c0,13.59,11.015,24.604,24.603,24.604c13.588,0,24.604-11.018,24.604-24.607C74.66,57.532,73.214,52.949,70.725,49.104z
M59.413,59.233l-0.168,1.275c-0.538,2.953-1.511,5.404-2.921,7.35c-1.298,1.836-3.016,3.18-5.153,4.029
c-2.138,0.85-4.494,1.273-7.067,1.273H33.731l4.264-24.198h10.441c1.141,0,2.204,0.073,3.189,0.218
c0.984,0.146,1.868,0.364,2.651,0.655c1.611,0.537,2.887,1.471,3.827,2.802c0.94,1.332,1.41,2.992,1.41,4.984L59.413,59.233z"/>
</g>
<linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="453.3232" y1="-229.3364" x2="439.0932" y2="-139.491" gradientTransform="matrix(1 0 0 -1 -346.0195 -123.4805)">
<stop offset="0" style="stop-color:#B2B2B2;stop-opacity:0"/>
<stop offset="0.2" style="stop-color:#B2B2B2"/>
<stop offset="0.8" style="stop-color:#B2B2B2"/>
<stop offset="1" style="stop-color:#B2B2B2;stop-opacity:0"/>
</linearGradient>
<rect x="99.875" y="14.933" fill="url(#SVGID_4_)" width="0.625" height="92"/>
<script xmlns=""></script>
<g>
<g>
<polygon fill="#8B8B8B" points="150.193,68.813 147.563,66.18 147.563,68.813 "/>
<path fill="#8B8B8B" d="M141.91,61.195h0.669l-1.599-1.598c-0.272-0.272-0.477-0.588-0.613-0.924
c-0.17-0.339-0.271-0.704-0.316-1.088h-3.215c-0.896,0-1.646,0.632-1.827,1.476h3.599C140.074,59.062,141.34,59.938,141.91,61.195
z"/>
<g>
<rect x="133.869" y="48.23" fill="none" width="4.838" height="0.001"/>
<path fill="#8B8B8B" d="M161.158,50.835V42.62c0-3.1-2.514-5.613-5.613-5.613h-14.967c-0.496,0-0.973,0.197-1.322,0.548
l-11.227,11.226c-0.352,0.352-0.549,0.826-0.549,1.322v11.094h0.408c0.568-1.259,1.836-2.135,3.301-2.135h0.033v-7.089h9.354
c1.032,0,1.871-0.838,1.871-1.871v-9.354h13.096c1.033,0,1.872,0.837,1.872,1.871v15.579l1.419,1.42l1.302-1.736l-0.99-2.9
c-0.357-1.064-0.215-2.154,0.395-3C159.941,51.422,160.512,51.029,161.158,50.835z M138.707,48.23L138.707,48.23l-4.838,0.001
l0.001-0.001l4.837-4.837V48.23z"/>
</g>
<path fill="#8B8B8B" d="M155.545,74.424h-7.982v0.241c0.896,1.005,1.527,2.208,1.861,3.501h6.121c1.139,0,2.196-0.342,3.081-0.924
l-2.842-2.842C155.704,74.41,155.628,74.424,155.545,74.424z"/>
<path fill="#8B8B8B" d="M162.859,57.326c0.15,0.455,0.043,1.149-0.239,1.539l-2.19,2.926c-0.293,0.391-0.13,0.701,0.353,0.697
l3.655-0.049c0.479-0.006,1.106,0.314,1.388,0.711l2.108,2.981c0.281,0.394,0.625,0.341,0.77-0.125l1.089-3.485
c0.14-0.466,0.636-0.96,1.099-1.104l3.486-1.084c0.465-0.142,0.52-0.488,0.126-0.768l-2.985-2.112
c-0.396-0.281-0.715-0.902-0.705-1.385l0.045-3.656c0.006-0.479-0.305-0.644-0.694-0.352l-2.929,2.186
c-0.385,0.289-1.076,0.398-1.536,0.246l-3.46-1.178c-0.459-0.152-0.709,0.094-0.555,0.55L162.859,57.326z"/>
<path fill="#8B8B8B" d="M177.324,82.078l0.061-0.063l-29.578-29.571l-0.033,0.031c-0.004-0.002-0.004-0.006-0.008-0.007
c-0.49-0.495-1.99,0.201-3.344,1.552c-1.348,1.353-2.045,2.848-1.553,3.343c0.003,0.005,0.009,0.005,0.01,0.006l-0.033,0.036
l29.575,29.579l0.06-0.064c0.586,0.313,1.961-0.367,3.215-1.625C176.956,84.037,177.633,82.662,177.324,82.078z M151.271,60.873
c-0.715,0.716-1.469,1.239-2.097,1.511l-4.374-4.4c0.624-0.272,1.368-0.795,2.08-1.503c0.705-0.709,1.223-1.446,1.497-2.066
l4.386,4.41C152.49,59.443,151.971,60.174,151.271,60.873z"/>
</g>
<g>
<g>
<g>
<path d="M145.428,75.311v-9.965c0-1.287-1.041-2.328-2.328-2.328h-3.002v-0.511c0-0.896-0.728-1.624-1.625-1.624h-7.416
c-0.896,0-1.623,0.728-1.623,1.624v0.511h-3.004c-1.287,0-2.328,1.041-2.328,2.328v18.803c0,1.285,1.041,2.328,2.328,2.328
h14.733c3.532,0,6.397-2.865,6.397-6.397C147.563,78.184,146.736,76.48,145.428,75.311z M131.564,63.018h6.398v2.131h-6.398
V63.018z M126.43,84.344c-0.109,0-0.195-0.088-0.195-0.195V65.346c0-0.107,0.086-0.197,0.195-0.197h3.004v0.51
c0,0.896,0.727,1.624,1.623,1.624l0,0h7.416l0,0c0.897,0,1.625-0.728,1.625-1.624v-0.51h3.002c0.108,0,0.196,0.09,0.196,0.197
v8.698c-0.543-0.19-1.118-0.312-1.717-0.351c-0.004,0-0.007,0-0.011-0.002c-0.039-0.002-0.077-0.004-0.115-0.006
c-0.021,0-0.042,0-0.064-0.002c-0.024-0.002-0.051-0.002-0.076-0.002c-0.049-0.002-0.101-0.002-0.148-0.002
c-3.534,0-6.398,2.864-6.398,6.397c0,0.054,0,0.106,0.002,0.159c0.002,0.018,0.002,0.035,0.002,0.054
c0.002,0.034,0.002,0.069,0.004,0.104c0.002,0.021,0.002,0.041,0.004,0.063c0.002,0.031,0.004,0.063,0.007,0.096
c0.002,0.022,0.003,0.045,0.005,0.066c0.003,0.029,0.006,0.061,0.009,0.09c0.001,0.021,0.005,0.046,0.007,0.068
c0.004,0.027,0.008,0.058,0.01,0.086c0.004,0.023,0.006,0.047,0.01,0.068c0.004,0.028,0.008,0.059,0.012,0.086
c0.004,0.023,0.008,0.047,0.012,0.069c0.004,0.028,0.01,0.058,0.014,0.085c0.005,0.021,0.009,0.045,0.013,0.066
c0.005,0.029,0.011,0.058,0.017,0.086c0.006,0.021,0.008,0.045,0.015,0.066c0.006,0.028,0.012,0.057,0.018,0.086
c0.005,0.021,0.011,0.043,0.015,0.063c0.008,0.028,0.015,0.058,0.021,0.087c0.006,0.021,0.012,0.042,0.018,0.063
c0.006,0.031,0.015,0.061,0.022,0.09c0.005,0.02,0.011,0.039,0.015,0.058c0.012,0.034,0.021,0.067,0.031,0.103
c0.006,0.015,0.01,0.029,0.014,0.043c0.016,0.05,0.03,0.098,0.047,0.146c0.002,0.007,0.004,0.015,0.008,0.021
c0.014,0.041,0.027,0.082,0.044,0.123c0.006,0.017,0.012,0.033,0.019,0.049c0.012,0.031,0.022,0.062,0.033,0.093
c0.008,0.019,0.018,0.037,0.023,0.056c0.011,0.028,0.021,0.057,0.033,0.084c0.008,0.02,0.019,0.039,0.024,0.059
c0.013,0.027,0.024,0.054,0.035,0.08c0.009,0.021,0.019,0.039,0.026,0.06c0.014,0.024,0.024,0.052,0.037,0.077
c0.008,0.02,0.02,0.039,0.027,0.061c0.014,0.024,0.025,0.049,0.037,0.074c0.011,0.02,0.021,0.039,0.031,0.061
c0.013,0.023,0.025,0.049,0.039,0.072c0.011,0.021,0.021,0.039,0.031,0.059c0.014,0.025,0.026,0.05,0.041,0.074
c0.01,0.02,0.021,0.037,0.031,0.057c0.016,0.025,0.029,0.049,0.044,0.074c0.011,0.018,0.021,0.035,0.032,0.054
c0.016,0.024,0.031,0.051,0.047,0.075c0.012,0.017,0.021,0.035,0.032,0.051c0.019,0.027,0.034,0.053,0.052,0.079
c0.012,0.016,0.021,0.03,0.03,0.046c0.021,0.029,0.042,0.061,0.063,0.09c0.008,0.012,0.016,0.021,0.021,0.032
c0.027,0.041,0.059,0.08,0.089,0.12c0.006,0.009,0.013,0.017,0.019,0.025c0.022,0.03,0.047,0.063,0.07,0.092
c0.012,0.015,0.021,0.029,0.034,0.043c0.021,0.023,0.039,0.05,0.06,0.072c0.014,0.016,0.026,0.031,0.039,0.047
c0.02,0.022,0.037,0.045,0.057,0.067c0.015,0.017,0.027,0.031,0.041,0.047c0.015,0.015,0.027,0.03,0.039,0.046h-9.967V84.344z
M141.163,84.344c-2.356,0-4.267-1.91-4.267-4.266s1.91-4.266,4.267-4.266c0.063,0,0.128,0.002,0.192,0.004
c0.033,0.002,0.065,0.004,0.1,0.008c0.025,0.001,0.051,0.003,0.076,0.006c0.789,0.07,1.537,0.367,2.188,0.857l0.324,0.244
c0.852,0.779,1.385,1.9,1.385,3.146C145.428,82.434,143.518,84.344,141.163,84.344z"/>
<path d="M142.541,78.258l-1.378,1.379l-0.313-0.313c-0.416-0.416-1.093-0.416-1.509,0s-0.416,1.092,0,1.508l1.067,1.066
c0.416,0.416,1.091,0.416,1.508,0l2.133-2.133c0.416-0.416,0.416-1.092,0-1.509C143.634,77.842,142.957,77.842,142.541,78.258z"
/>
<path d="M129.434,71.547h2.133c0.588,0,1.064-0.479,1.064-1.066s-0.477-1.065-1.064-1.065h-2.133
c-0.59,0-1.066,0.478-1.066,1.065S128.844,71.547,129.434,71.547z"/>
<path d="M135.831,71.547h4.267c0.588,0,1.065-0.479,1.065-1.066s-0.478-1.065-1.065-1.065h-4.267
c-0.589,0-1.065,0.478-1.065,1.065S135.242,71.547,135.831,71.547z"/>
<path d="M132.631,77.945h-4.265c-0.589,0-1.066,0.478-1.066,1.066c0,0.588,0.478,1.065,1.066,1.065h4.265
c0.59,0,1.066-0.478,1.066-1.065C133.697,78.423,133.221,77.945,132.631,77.945z"/>
<path d="M129.434,75.813h5.332c0.588,0,1.065-0.478,1.065-1.065s-0.478-1.065-1.065-1.065h-5.332
c-0.59,0-1.066,0.478-1.066,1.065S128.844,75.813,129.434,75.813z"/>
</g>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@ -1,6 +1,6 @@
{ {
"name": "d3/datawizardtasks", "name": "d3/datawizardtasks",
"description": "Fantastic Spells and where to find them - Example exports and actions for the DataWizard /\n Phantastische Zaubersprüche und wo Sie zu finden sind - Beispielexporte und -aktionen für den DataWizard", "description": "Exporte und Aktionen für DataWizard",
"type": "oxideshop-module", "type": "oxideshop-module",
"keywords": [ "keywords": [
"oxid", "oxid",
@ -26,11 +26,20 @@
"GPL-3.0-or-later" "GPL-3.0-or-later"
], ],
"require": { "require": {
"d3/datawizard": "^3.0" "d3/datawizard": "^1.2"
},
"extra": {
"oxideshop": {
"blacklist-filter": [
"*.md",
"composer.json"
],
"target-directory": "d3/datawizardtasks"
}
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"D3\\DataWizardTasks\\": "" "D3\\DataWizardTasks\\": "../../../source/modules/d3/datawizardtasks"
} }
} }
} }

View File

@ -38,8 +38,8 @@ $aModule = [
'de' => '', 'de' => '',
'en' => '', 'en' => '',
], ],
'thumbnail' => 'picture.svg', 'thumbnail' => '',
'version' => '2.0.0.0', 'version' => '1.0.0.0',
'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)', 'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com', 'email' => 'support@shopmodule.com',
'url' => 'https://www.oxidmodule.com/', 'url' => 'https://www.oxidmodule.com/',