@@ -2,17 +2,17 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller\Admin; |
| 4 | 4 | |
| 5 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 6 | -use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
| 7 | -use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
| 5 | +use League\Csv\Writer; |
|
| 8 | 6 | use Netgen\InformationCollection\API\Service\Exporter; |
| 9 | 7 | use Netgen\InformationCollection\API\Value\Export\ExportCriteria; |
| 10 | 8 | use Netgen\InformationCollection\Form\Type\ExportType; |
| 11 | -use Symfony\Component\HttpFoundation\Request; |
|
| 12 | -use Symfony\Component\Form\ClickableInterface; |
|
| 13 | -use League\Csv\Writer; |
|
| 14 | 9 | use SplTempFileObject; |
| 10 | +use Symfony\Component\Form\ClickableInterface; |
|
| 11 | +use Symfony\Component\HttpFoundation\Request; |
|
| 15 | 12 | use Symfony\Component\HttpFoundation\Response; |
| 13 | +use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
| 14 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 15 | +use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
| 16 | 16 | |
| 17 | 17 | final class ExportController extends Controller |
| 18 | 18 | { |
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller; |
| 4 | 4 | |
| 5 | -use eZ\Publish\Core\MVC\Symfony\View\BaseView; |
|
| 6 | -use eZ\Publish\Core\MVC\Symfony\View\CachableView; |
|
| 7 | -use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
| 8 | 5 | use Netgen\InformationCollection\API\InformationCollectionTrait; |
| 9 | 6 | use Netgen\InformationCollection\API\Value\DataTransfer\AdditionalContent; |
| 10 | 7 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
| 11 | 8 | use Symfony\Component\DependencyInjection\ContainerAwareTrait; |
| 12 | 9 | use Symfony\Component\HttpFoundation\Request; |
| 10 | +use eZ\Publish\Core\MVC\Symfony\View\BaseView; |
|
| 11 | +use eZ\Publish\Core\MVC\Symfony\View\CachableView; |
|
| 12 | +use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
| 13 | 13 | |
| 14 | 14 | class InformationCollectionController implements ContainerAwareInterface |
| 15 | 15 | { |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle; |
| 4 | 4 | |
| 5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension; |
|
| 6 | 5 | use Netgen\InformationCollection\Container\Compiler\ActionsPass; |
| 7 | 6 | use Netgen\InformationCollection\Container\Compiler\CustomFieldHandlersPass; |
| 8 | 7 | use Netgen\InformationCollection\Container\Compiler\FieldAnonymizerVisitorPass; |
| 9 | 8 | use Netgen\InformationCollection\PolicyProvider\InformationCollectionPolicyProvider; |
| 10 | 9 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 11 | 10 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
| 11 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension; |
|
| 12 | 12 | |
| 13 | 13 | class NetgenInformationCollectionBundle extends Bundle |
| 14 | 14 | { |
@@ -240,7 +240,7 @@ |
||
| 240 | 240 | |
| 241 | 241 | /** |
| 242 | 242 | * @param string $contentTypeIdentifier |
| 243 | - * @param array $collectedFields |
|
| 243 | + * @param \EzSystems\RepositoryForms\Data\Content\FieldData[] $collectedFields |
|
| 244 | 244 | * |
| 245 | 245 | * @return BinaryFile[] |
| 246 | 246 | */ |
@@ -5,17 +5,17 @@ |
||
| 5 | 5 | namespace Netgen\InformationCollection\Core\Factory; |
| 6 | 6 | |
| 7 | 7 | use function array_key_exists; |
| 8 | -use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 9 | -use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFile; |
|
| 10 | -use eZ\Publish\Core\Helper\FieldHelper; |
|
| 11 | -use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 12 | -use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
| 13 | -use Netgen\InformationCollection\API\Constants; |
|
| 14 | 8 | use Netgen\InformationCollection\API\ConfigurationConstants; |
| 9 | +use Netgen\InformationCollection\API\Constants; |
|
| 15 | 10 | use Netgen\InformationCollection\API\Exception\MissingEmailBlockException; |
| 16 | 11 | use Netgen\InformationCollection\API\Exception\MissingValueException; |
| 12 | +use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
| 17 | 13 | use Netgen\InformationCollection\API\Value\DataTransfer\TemplateContent; |
| 18 | 14 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
| 15 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 16 | +use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFile; |
|
| 17 | +use eZ\Publish\Core\Helper\FieldHelper; |
|
| 18 | +use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 19 | 19 | use function trim; |
| 20 | 20 | use Twig\Environment; |
| 21 | 21 | |
@@ -4,10 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Persistence; |
| 6 | 6 | |
| 7 | +use OutOfBoundsException; |
|
| 7 | 8 | use eZ\Publish\API\Repository\ContentService; |
| 8 | 9 | use eZ\Publish\API\Repository\ContentTypeService; |
| 9 | 10 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
| 10 | -use OutOfBoundsException; |
|
| 11 | 11 | |
| 12 | 12 | final class ContentTypeUtils |
| 13 | 13 | { |
@@ -4,11 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Persistence\FieldHandler\Custom; |
| 6 | 6 | |
| 7 | +use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface; |
|
| 8 | +use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
| 7 | 9 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
| 8 | 10 | use eZ\Publish\Core\FieldType\Checkbox\Value as CheckboxValue; |
| 9 | 11 | use eZ\Publish\Core\FieldType\Value; |
| 10 | -use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface; |
|
| 11 | -use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
| 12 | 12 | |
| 13 | 13 | class CheckboxFieldHandler implements CustomLegacyFieldHandlerInterface |
| 14 | 14 | { |
@@ -4,11 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Persistence\FieldHandler\Custom; |
| 6 | 6 | |
| 7 | +use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface; |
|
| 8 | +use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
| 7 | 9 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
| 8 | 10 | use eZ\Publish\Core\FieldType\DateAndTime\Value as DateAndTimeValue; |
| 9 | 11 | use eZ\Publish\Core\FieldType\Value; |
| 10 | -use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface; |
|
| 11 | -use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
| 12 | 12 | |
| 13 | 13 | class DateAndTimeFieldHandler implements CustomLegacyFieldHandlerInterface |
| 14 | 14 | { |
@@ -4,11 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Persistence\FieldHandler\Custom; |
| 6 | 6 | |
| 7 | +use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface; |
|
| 8 | +use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
| 7 | 9 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
| 8 | 10 | use eZ\Publish\Core\FieldType\Date\Value as DateValue; |
| 9 | 11 | use eZ\Publish\Core\FieldType\Value; |
| 10 | -use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface; |
|
| 11 | -use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
| 12 | 12 | |
| 13 | 13 | class DateFieldHandler implements CustomLegacyFieldHandlerInterface |
| 14 | 14 | { |
@@ -4,11 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Persistence\FieldHandler\Custom; |
| 6 | 6 | |
| 7 | +use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface; |
|
| 8 | +use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
| 7 | 9 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
| 8 | 10 | use eZ\Publish\Core\FieldType\Float\Value as FloatValue; |
| 9 | 11 | use eZ\Publish\Core\FieldType\Value; |
| 10 | -use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface; |
|
| 11 | -use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
| 12 | 12 | |
| 13 | 13 | class FloatFieldHandler implements CustomLegacyFieldHandlerInterface |
| 14 | 14 | { |