supprimé:        core/lib/Thelia/Controller/Admin/CustomerExportController.php
	modifié:         core/lib/Thelia/Controller/Admin/ExportController.php
	modifié:         core/lib/Thelia/Controller/Admin/ImportController.php
	modifié:         core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php
	modifié:         core/lib/Thelia/Core/Event/ImportExport.php
	modifié:         core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilderManager.php
	modifié:         core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilderManagerTrait.php
	modifié:         core/lib/Thelia/Core/FileFormat/Formatting/Exception/BadFormattedStringException.php
	modifié:         core/lib/Thelia/Core/FileFormat/Formatting/Formatter/XMLFormatter.php
	modifié:         core/lib/Thelia/Core/FileFormat/Formatting/FormatterManager.php
	modifié:         core/lib/Thelia/Core/FileFormat/Formatting/FormatterManagerTrait.php
	modifié:         core/lib/Thelia/Core/Template/Loop/ImportExportType.php
	modifié:         core/lib/Thelia/Model/Export.php
	modifié:         core/lib/Thelia/Model/Import.php
This commit is contained in:
Benjamin Perche
2014-07-18 14:35:07 +02:00
parent 4c165bc5d5
commit 0723f30695
14 changed files with 30 additions and 72 deletions

View File

@@ -1,36 +0,0 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace Thelia\Controller\Admin;
/**
* Class CustomerExportController
* @package Thelia\Controller\Admin
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class CustomerExportController extends BaseAdminController
{
public function newsletterSubscribers()
{
}
public function customers()
{
}
public function mailing()
{
}
}

View File

@@ -75,7 +75,6 @@ class ImportController extends BaseAdminController
$errorMessage = null; $errorMessage = null;
$successMessage = null; $successMessage = null;
try { try {
$boundForm = $this->validateForm($form); $boundForm = $this->validateForm($form);
@@ -94,7 +93,6 @@ class ImportController extends BaseAdminController
$archiveBuilderManager $archiveBuilderManager
); );
/** @var AbstractArchiveBuilder $archiveBuilder */ /** @var AbstractArchiveBuilder $archiveBuilder */
$archiveBuilder = $tools["archive_builder"]; $archiveBuilder = $tools["archive_builder"];
@@ -305,7 +303,6 @@ class ImportController extends BaseAdminController
return $this->getTranslator()->trans("Import successfully done"); return $this->getTranslator()->trans("Import successfully done");
} }
/** /**
* @param integer $id * @param integer $id
* @return Response * @return Response

View File

@@ -12,7 +12,6 @@
namespace Thelia\Core\DependencyInjection\Loader; namespace Thelia\Core\DependencyInjection\Loader;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\Propel; use Propel\Runtime\Propel;
use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Config\Util\XmlUtils; use Symfony\Component\Config\Util\XmlUtils;

View File

@@ -146,5 +146,4 @@ class ImportExport extends ActionEvent
return $this->content; return $this->content;
} }
} }

View File

@@ -141,7 +141,8 @@ class ArchiveBuilderManager
} }
} }
public function getMimeTypes() { public function getMimeTypes()
{
$mimeTypes = []; $mimeTypes = [];
/** @var AbstractArchiveBuilder $formatter */ /** @var AbstractArchiveBuilder $formatter */

View File

@@ -10,7 +10,7 @@
/* file that was distributed with this source code. */ /* file that was distributed with this source code. */
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Core\FileFormat\Formatter\Exception; namespace Thelia\Core\FileFormat\Formatting\Exception;
/** /**
* Class BadFormattedStringException * Class BadFormattedStringException

View File

@@ -12,7 +12,7 @@
namespace Thelia\Core\FileFormat\Formatting\Formatter; namespace Thelia\Core\FileFormat\Formatting\Formatter;
use Symfony\Component\DependencyInjection\SimpleXMLElement; use Symfony\Component\DependencyInjection\SimpleXMLElement;
use Thelia\Core\FileFormat\Formatter\Exception\BadFormattedStringException; use Thelia\Core\FileFormat\Formatting\Exception\BadFormattedStringException;
use Thelia\Core\FileFormat\Formatting\AbstractFormatter; use Thelia\Core\FileFormat\Formatting\AbstractFormatter;
use Thelia\Core\FileFormat\Formatting\FormatterData; use Thelia\Core\FileFormat\Formatting\FormatterData;
use Thelia\Core\FileFormat\FormatType; use Thelia\Core\FileFormat\FormatType;
@@ -165,7 +165,8 @@ class XMLFormatter extends AbstractFormatter
return $parent === null ? $data : $parent; return $parent === null ? $data : $parent;
} }
public function getValue($name, array &$data) { public function getValue($name, array &$data)
{
$value = $data[$name]; $value = $data[$name];
unset ($data[$name]); unset ($data[$name]);
@@ -175,7 +176,7 @@ class XMLFormatter extends AbstractFormatter
/** /**
* @param $rawData * @param $rawData
* @return array * @return array
* @throws \Thelia\Core\FileFormat\Formatter\Exception\BadFormattedStringException * @throws \Thelia\Core\FileFormat\Formatting\Exception\BadFormattedStringException
*/ */
public function rawDecode($rawData) public function rawDecode($rawData)
{ {

View File

@@ -119,7 +119,8 @@ class FormatterManager
return $extensions; return $extensions;
} }
public function getExtensionsByTypes($types, $withDot = false) { public function getExtensionsByTypes($types, $withDot = false)
{
$extensions = []; $extensions = [];
/** @var AbstractFormatter $formatter */ /** @var AbstractFormatter $formatter */
@@ -174,7 +175,8 @@ class FormatterManager
return $selectedFormatters; return $selectedFormatters;
} }
public function getMimeTypesByTypes($types) { public function getMimeTypesByTypes($types)
{
if (!is_array($types)) { if (!is_array($types)) {
$types = [$types]; $types = [$types];
} }

View File

@@ -63,7 +63,6 @@ abstract class ImportExportType extends BaseI18nLoop implements PropelSearchLoop
} catch (\ErrorException $e) {} } catch (\ErrorException $e) {}
$loopResult->addRow($loopResultRow); $loopResult->addRow($loopResultRow);
} }

View File

@@ -163,7 +163,6 @@ class Export extends BaseExport
parent::delete($con); parent::delete($con);
} }
public function hasImages(ContainerInterface $container) public function hasImages(ContainerInterface $container)
{ {
if (static::$cache === null) { if (static::$cache === null) {

View File

@@ -6,13 +6,11 @@ use Exception;
use Propel\Runtime\ActiveQuery\Criteria; use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\Connection\ConnectionInterface; use Propel\Runtime\Connection\ConnectionInterface;
use Propel\Runtime\Exception\ClassNotFoundException; use Propel\Runtime\Exception\ClassNotFoundException;
use Propel\Runtime\Exception\PropelException;
use Propel\Runtime\Propel; use Propel\Runtime\Propel;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Thelia\Core\Translation\Translator; use Thelia\Core\Translation\Translator;
use Thelia\ImportExport\Import\ImportHandler; use Thelia\ImportExport\Import\ImportHandler;
use Thelia\Model\Base\Import as BaseImport; use Thelia\Model\Base\Import as BaseImport;
use Thelia\Model\ImportQuery as ChildImportQuery;
use Thelia\Model\Map\ImportTableMap; use Thelia\Model\Map\ImportTableMap;
class Import extends BaseImport class Import extends BaseImport
@@ -160,5 +158,4 @@ class Import extends BaseImport
parent::delete($con); parent::delete($con);
} }
} }