@@ -121,6 +121,9 @@ |
||
| 121 | 121 | ); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | + /** |
|
| 125 | + * @param integer $userId |
|
| 126 | + */ |
|
| 124 | 127 | private function getUser($userId): ?User |
| 125 | 128 | { |
| 126 | 129 | try { |
@@ -6,20 +6,20 @@ |
||
| 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\Content\Field; |
|
| 13 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 14 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCollection; |
|
| 15 | -use eZ\Publish\API\Repository\Values\User\User; |
|
| 16 | -use eZ\Publish\Core\Repository\Values\ContentType\ContentType as CoreContentType; |
|
| 17 | 9 | use Netgen\InformationCollection\API\Value\Attribute; |
| 18 | 10 | use Netgen\InformationCollection\API\Value\AttributeValue; |
| 19 | 11 | use Netgen\InformationCollection\API\Value\Collection; |
| 20 | 12 | use Netgen\InformationCollection\API\Value\Content; |
| 21 | 13 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
| 22 | 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\ContentType\FieldDefinitionCollection; |
|
| 19 | +use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
| 20 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 21 | +use eZ\Publish\API\Repository\Values\User\User; |
|
| 22 | +use eZ\Publish\Core\Repository\Values\ContentType\ContentType as CoreContentType; |
|
| 23 | 23 | |
| 24 | 24 | final class DomainObjectMapper |
| 25 | 25 | { |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * Get attribute value string. |
| 82 | 82 | * |
| 83 | 83 | * @param int $fieldId |
| 84 | - * @param array $attributes |
|
| 84 | + * @param Attribute[] $attributes |
|
| 85 | 85 | * |
| 86 | 86 | * @return string |
| 87 | 87 | */ |
@@ -18,8 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Maps a ValueObject from eZ content repository to a data usable as underlying form data (e.g. create/update struct). |
| 20 | 20 | * |
| 21 | - * @param \eZ\Publish\API\Repository\Values\Content\Content $contentDraft |
|
| 22 | - * @param array $params |
|
| 21 | + * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
|
| 23 | 22 | * |
| 24 | 23 | * @return InformationCollectionStruct |
| 25 | 24 | */ |
@@ -4,14 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Integration\RepositoryForms; |
| 6 | 6 | |
| 7 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 7 | +use EzSystems\EzPlatformContentForms\Data\Content\FieldData; |
|
| 8 | +use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
|
| 8 | 9 | use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
| 9 | 10 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
| 11 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 10 | 12 | use eZ\Publish\API\Repository\Values\ValueObject; |
| 11 | -use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
|
| 12 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
| 13 | -use EzSystems\EzPlatformContentForms\Data\Mapper\FormDataMapperInterface; |
|
| 14 | -use EzSystems\EzPlatformContentForms\Data\Content\FieldData; |
|
| 15 | 13 | |
| 16 | 14 | final class InformationCollectionMapper |
| 17 | 15 | { |
@@ -2,19 +2,19 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\DependencyInjection; |
| 4 | 4 | |
| 5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor; |
|
| 6 | 5 | use Netgen\InformationCollection\API\Action\ActionInterface; |
| 7 | 6 | use Netgen\InformationCollection\API\ConfigurationConstants; |
| 8 | 7 | use Netgen\InformationCollection\Core\Export\CsvExportResponseFormatter; |
| 9 | 8 | use Symfony\Component\Config\FileLocator; |
| 9 | +use Symfony\Component\Config\Resource\FileResource; |
|
| 10 | 10 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 11 | 11 | use Symfony\Component\DependencyInjection\Definition; |
| 12 | 12 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
| 13 | 13 | use Symfony\Component\DependencyInjection\Loader; |
| 14 | 14 | use Symfony\Component\DependencyInjection\Reference; |
| 15 | 15 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
| 16 | -use Symfony\Component\Config\Resource\FileResource; |
|
| 17 | 16 | use Symfony\Component\Yaml\Yaml; |
| 17 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor; |
|
| 18 | 18 | use function array_merge; |
| 19 | 19 | |
| 20 | 20 | /** |
@@ -28,6 +28,7 @@ discard block |
||
| 28 | 28 | * @param \Netgen\InformationCollection\API\Value\InformationCollectionStruct $struct |
| 29 | 29 | * |
| 30 | 30 | * @throws \Netgen\InformationCollection\API\Exception\PersistingFailedException |
| 31 | + * @return void |
|
| 31 | 32 | */ |
| 32 | 33 | public function createCollection(InformationCollectionStruct $struct): void; |
| 33 | 34 | |
@@ -62,7 +63,6 @@ discard block |
||
| 62 | 63 | /** |
| 63 | 64 | * Returns collections for given content object. |
| 64 | 65 | * |
| 65 | - * @param \Netgen\InformationCollection\API\Value\Filter\ContentId $contentId |
|
| 66 | 66 | * |
| 67 | 67 | * @return \Netgen\InformationCollection\API\Value\Collections |
| 68 | 68 | */ |
@@ -99,6 +99,7 @@ discard block |
||
| 99 | 99 | * Removes selected collection fields. |
| 100 | 100 | * |
| 101 | 101 | * @param \Netgen\InformationCollection\API\Value\Filter\CollectionFields $collectionFields |
| 102 | + * @return void |
|
| 102 | 103 | */ |
| 103 | 104 | public function deleteCollectionFields(CollectionFields $collectionFields): void; |
| 104 | 105 | |
@@ -106,6 +107,7 @@ discard block |
||
| 106 | 107 | * Removes whole collections. |
| 107 | 108 | * |
| 108 | 109 | * @param \Netgen\InformationCollection\API\Value\Filter\Collections $collections |
| 110 | + * @return void |
|
| 109 | 111 | */ |
| 110 | 112 | public function deleteCollections(FilterCollections $collections): void; |
| 111 | 113 | |
@@ -113,6 +115,7 @@ discard block |
||
| 113 | 115 | * Removes whole collections per content. |
| 114 | 116 | * |
| 115 | 117 | * @param \Netgen\InformationCollection\API\Value\Filter\Contents $contents |
| 118 | + * @return void |
|
| 116 | 119 | */ |
| 117 | 120 | public function deleteCollectionByContent(Contents $contents): void; |
| 118 | 121 | |
@@ -121,6 +124,7 @@ discard block |
||
| 121 | 124 | * |
| 122 | 125 | * @param \Netgen\InformationCollection\API\Value\Filter\CollectionId $collectionId |
| 123 | 126 | * @param \Netgen\InformationCollection\API\Value\Attribute $attribute |
| 127 | + * @return void |
|
| 124 | 128 | */ |
| 125 | 129 | public function updateCollectionAttribute(CollectionId $collectionId, Attribute $attribute): void; |
| 126 | 130 | } |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\InformationCollection\Core\Action; |
| 4 | 4 | |
| 5 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
| 6 | -use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 7 | 5 | use Netgen\InformationCollection\API\Action\ActionInterface; |
| 8 | 6 | use OutOfBoundsException; |
| 7 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
| 8 | +use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 9 | 9 | use function sprintf; |
| 10 | 10 | use function in_array; |
| 11 | 11 | |
@@ -2,12 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\DependencyInjection; |
| 4 | 4 | |
| 5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Configuration as SiteAccessConfiguration; |
|
| 6 | -use Netgen\InformationCollection\Core\Action\EmailAction; |
|
| 5 | +use Netgen\InformationCollection\API\ConfigurationConstants; |
|
| 7 | 6 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
| 8 | -use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
| 9 | 7 | use Symfony\Component\Config\Definition\Builder\NodeBuilder; |
| 10 | -use Netgen\InformationCollection\API\ConfigurationConstants; |
|
| 8 | +use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
| 9 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Configuration as SiteAccessConfiguration; |
|
| 11 | 10 | |
| 12 | 11 | /** |
| 13 | 12 | * This is the class that validates and merges configuration from your app/config files. |
@@ -4,13 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\Bundle\InformationCollectionBundle\DataCollector; |
| 6 | 6 | |
| 7 | -use eZ\Publish\API\Repository\Repository; |
|
| 8 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
| 9 | -use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 7 | +use Netgen\InformationCollection\Integration\RepositoryForms\InformationCollectionType; |
|
| 10 | 8 | use Symfony\Component\HttpFoundation\Request; |
| 11 | 9 | use Symfony\Component\HttpFoundation\Response; |
| 12 | 10 | use Symfony\Component\HttpKernel\DataCollector\DataCollector; |
| 13 | -use Netgen\InformationCollection\Integration\RepositoryForms\InformationCollectionType; |
|
| 11 | +use eZ\Publish\API\Repository\Repository; |
|
| 12 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
| 13 | +use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 14 | 14 | |
| 15 | 15 | class InformationCollectionCollector extends DataCollector |
| 16 | 16 | { |