@@ -2,16 +2,16 @@ |
||
| 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 League\Csv\Writer; |
|
| 13 | 9 | use SplTempFileObject; |
| 10 | +use Symfony\Component\HttpFoundation\Request; |
|
| 14 | 11 | use Symfony\Component\HttpFoundation\Response; |
| 12 | +use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
| 13 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 14 | +use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
| 15 | 15 | |
| 16 | 16 | final class ExportController extends Controller |
| 17 | 17 | { |
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\API; |
| 6 | 6 | |
| 7 | -use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
| 8 | -use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
| 9 | 7 | use Netgen\InformationCollection\API\Form\DynamicFormBuilderInterface; |
| 10 | 8 | use Netgen\InformationCollection\API\Value\DataTransfer\AdditionalContent; |
| 11 | 9 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
| 12 | 10 | use Symfony\Component\HttpFoundation\Request; |
| 11 | +use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
| 12 | +use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
| 13 | 13 | |
| 14 | 14 | trait InformationCollectionTrait |
| 15 | 15 | { |
@@ -5,14 +5,14 @@ |
||
| 5 | 5 | namespace Netgen\InformationCollection\Core\Factory; |
| 6 | 6 | |
| 7 | 7 | use function array_key_exists; |
| 8 | -use eZ\Publish\API\Repository\ContentService; |
|
| 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 | 8 | use Netgen\InformationCollection\API\Constants; |
| 13 | 9 | use Netgen\InformationCollection\API\Exception\MissingEmailBlockException; |
| 14 | 10 | use Netgen\InformationCollection\API\Exception\MissingValueException; |
| 15 | 11 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
| 12 | +use eZ\Publish\API\Repository\ContentService; |
|
| 13 | +use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFile; |
|
| 14 | +use eZ\Publish\Core\Helper\FieldHelper; |
|
| 15 | +use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 16 | 16 | use function trim; |
| 17 | 17 | use Twig_Environment; |
| 18 | 18 | |
@@ -114,6 +114,9 @@ |
||
| 114 | 114 | ); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | + /** |
|
| 118 | + * @param integer $userId |
|
| 119 | + */ |
|
| 117 | 120 | private function getUser($userId) |
| 118 | 121 | { |
| 119 | 122 | try { |
@@ -6,16 +6,16 @@ |
||
| 6 | 6 | |
| 7 | 7 | use DateTimeImmutable; |
| 8 | 8 | use DateTimeInterface; |
| 9 | -use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 10 | -use eZ\Publish\API\Repository\Repository; |
|
| 11 | -use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
| 12 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 13 | 9 | use Netgen\InformationCollection\API\Value\Attribute; |
| 14 | 10 | use Netgen\InformationCollection\API\Value\AttributeValue; |
| 15 | 11 | use Netgen\InformationCollection\API\Value\Collection; |
| 16 | 12 | use Netgen\InformationCollection\API\Value\Content; |
| 17 | 13 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
| 18 | 14 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
| 15 | +use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 16 | +use eZ\Publish\API\Repository\Repository; |
|
| 17 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 18 | +use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
| 19 | 19 | |
| 20 | 20 | final class DomainObjectMapper |
| 21 | 21 | { |
@@ -300,7 +300,6 @@ |
||
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | /** |
| 303 | - * @param UserReference $userReference |
|
| 304 | 303 | * @param mixed $userId |
| 305 | 304 | * |
| 306 | 305 | * @return \eZ\Publish\API\Repository\Values\User\User |
@@ -4,9 +4,6 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Service; |
| 6 | 6 | |
| 7 | -use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 8 | -use eZ\Publish\API\Repository\Repository; |
|
| 9 | -use eZ\Publish\API\Repository\Values\User\UserReference; |
|
| 10 | 7 | use Netgen\InformationCollection\API\Exception\PersistingFailedException; |
| 11 | 8 | use Netgen\InformationCollection\API\Exception\StoringAttributeFailedException; |
| 12 | 9 | use Netgen\InformationCollection\API\Exception\StoringCollectionFailedException; |
@@ -31,6 +28,9 @@ discard block |
||
| 31 | 28 | use Netgen\InformationCollection\Core\Persistence\Gateway\DoctrineDatabase; |
| 32 | 29 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
| 33 | 30 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
| 31 | +use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 32 | +use eZ\Publish\API\Repository\Repository; |
|
| 33 | +use eZ\Publish\API\Repository\Values\User\UserReference; |
|
| 34 | 34 | |
| 35 | 35 | class InformationCollectionService implements InformationCollection |
| 36 | 36 | { |
@@ -4,8 +4,6 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Form\Builder; |
| 6 | 6 | |
| 7 | -use eZ\Publish\API\Repository\ContentTypeService; |
|
| 8 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 9 | 7 | use Netgen\InformationCollection\API\Form\DynamicFormBuilderInterface; |
| 10 | 8 | use Netgen\InformationCollection\Integration\RepositoryForms\InformationCollectionMapper; |
| 11 | 9 | use Netgen\InformationCollection\Integration\RepositoryForms\InformationCollectionType; |
@@ -13,6 +11,8 @@ discard block |
||
| 13 | 11 | use Symfony\Component\Form\FormFactoryInterface; |
| 14 | 12 | use Symfony\Component\Form\FormInterface; |
| 15 | 13 | use Symfony\Component\Routing\RouterInterface; |
| 14 | +use eZ\Publish\API\Repository\ContentTypeService; |
|
| 15 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 16 | 16 | |
| 17 | 17 | class FormBuilder implements DynamicFormBuilderInterface |
| 18 | 18 | { |
@@ -4,13 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Integration\RepositoryForms; |
| 6 | 6 | |
| 7 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
| 8 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 9 | -use eZ\Publish\API\Repository\Values\ValueObject; |
|
| 10 | 7 | use EzSystems\RepositoryForms\Data\Content\FieldData; |
| 11 | 8 | use EzSystems\RepositoryForms\Data\Mapper\FormDataMapperInterface; |
| 12 | 9 | use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
| 13 | 10 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 11 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
| 12 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 13 | +use eZ\Publish\API\Repository\Values\ValueObject; |
|
| 14 | 14 | |
| 15 | 15 | class InformationCollectionMapper implements FormDataMapperInterface |
| 16 | 16 | { |