@@ -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 | { |
@@ -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\Integer\Value as IntegerValue; |
| 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 IntegerFieldHandler 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\Time\Value as TimeValue; |
| 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 TimeFieldHandler implements CustomLegacyFieldHandlerInterface |
| 14 | 14 | { |
@@ -123,6 +123,10 @@ |
||
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | + /** |
|
| 127 | + * @param integer $contentId |
|
| 128 | + * @param string $searchText |
|
| 129 | + */ |
|
| 126 | 130 | public function search($contentId, $searchText) |
| 127 | 131 | { |
| 128 | 132 | $searchText = mb_strtolower($searchText); |
@@ -5,18 +5,17 @@ |
||
| 5 | 5 | namespace Netgen\InformationCollection\Doctrine\Repository; |
| 6 | 6 | |
| 7 | 7 | use Doctrine\ORM\EntityRepository; |
| 8 | -use Doctrine\ORM\NonUniqueResultException; |
|
| 9 | 8 | use Doctrine\ORM\NoResultException; |
| 10 | 9 | use Doctrine\ORM\ORMException; |
| 11 | 10 | use Doctrine\ORM\ORMInvalidArgumentException; |
| 12 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 13 | -use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 14 | 11 | use Netgen\InformationCollection\API\Exception\RemoveAttributeFailedException; |
| 15 | 12 | use Netgen\InformationCollection\API\Exception\RetrieveCountException; |
| 16 | 13 | use Netgen\InformationCollection\API\Exception\StoringAttributeFailedException; |
| 17 | 14 | use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
| 18 | 15 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
| 19 | 16 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
| 17 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 18 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 20 | 19 | |
| 21 | 20 | class EzInfoCollectionAttributeRepository extends EntityRepository |
| 22 | 21 | { |
@@ -142,6 +142,9 @@ |
||
| 142 | 142 | ->getResult(); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | + /** |
|
| 146 | + * @param integer $contentId |
|
| 147 | + */ |
|
| 145 | 148 | public function getChildrenCount($contentId) |
| 146 | 149 | { |
| 147 | 150 | try { |
@@ -6,16 +6,14 @@ |
||
| 6 | 6 | |
| 7 | 7 | use DateTimeImmutable; |
| 8 | 8 | use Doctrine\ORM\EntityRepository; |
| 9 | -use Doctrine\ORM\NonUniqueResultException; |
|
| 10 | 9 | use Doctrine\ORM\NoResultException; |
| 11 | -use Doctrine\ORM\ORMException; |
|
| 12 | 10 | use Doctrine\ORM\ORMInvalidArgumentException; |
| 13 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 14 | -use eZ\Publish\API\Repository\Values\User\User; |
|
| 15 | 11 | use Netgen\InformationCollection\API\Exception\RemoveCollectionFailedException; |
| 16 | 12 | use Netgen\InformationCollection\API\Exception\RetrieveCountException; |
| 17 | 13 | use Netgen\InformationCollection\API\Exception\StoringCollectionFailedException; |
| 18 | 14 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
| 15 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 16 | +use eZ\Publish\API\Repository\Values\User\User; |
|
| 19 | 17 | |
| 20 | 18 | class EzInfoCollectionRepository extends EntityRepository |
| 21 | 19 | { |
@@ -2,11 +2,6 @@ discard block |
||
| 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; |
|
| 8 | -use eZ\Publish\API\Repository\ContentService; |
|
| 9 | -use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 10 | 5 | use Netgen\InformationCollection\API\Persistence\Anonymizer\Anonymizer; |
| 11 | 6 | use Netgen\InformationCollection\API\Service\InformationCollection; |
| 12 | 7 | use Netgen\InformationCollection\API\Value\Collection; |
@@ -23,6 +18,11 @@ discard block |
||
| 23 | 18 | use Pagerfanta\Pagerfanta; |
| 24 | 19 | use Symfony\Component\HttpFoundation\Request; |
| 25 | 20 | use Symfony\Contracts\Translation\TranslatorInterface; |
| 21 | +use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
| 22 | +use eZ\Publish\API\Repository\ContentService; |
|
| 23 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 24 | +use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 25 | +use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
| 26 | 26 | |
| 27 | 27 | class AdminController extends Controller |
| 28 | 28 | { |
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller\Admin\Export; |
| 4 | 4 | |
| 5 | -use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
| 6 | -use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
|
| 7 | -use Netgen\InformationCollection\API\Value\Export\ExportCriteria; |
|
| 8 | 5 | use Netgen\InformationCollection\API\Service\Exporter; |
| 6 | +use Netgen\InformationCollection\API\Value\Export\ExportCriteria; |
|
| 9 | 7 | use Netgen\InformationCollection\Core\Export\ExportResponseFormatterRegistry; |
| 10 | -use Symfony\Component\HttpFoundation\Request; |
|
| 11 | 8 | use Netgen\InformationCollection\Form\Type\ExportType; |
| 9 | +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
|
| 10 | +use Symfony\Component\HttpFoundation\Request; |
|
| 12 | 11 | use eZ\Publish\API\Repository\ContentService; |
| 12 | +use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
| 13 | 13 | |
| 14 | 14 | final class Export extends AbstractController |
| 15 | 15 | { |
@@ -2,8 +2,6 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller\Admin; |
| 4 | 4 | |
| 5 | -use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
| 6 | -use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
| 7 | 5 | use Netgen\InformationCollection\API\Service\InformationCollection; |
| 8 | 6 | use Netgen\InformationCollection\API\Value\Content; |
| 9 | 7 | use Netgen\InformationCollection\API\Value\Filter\ContentId; |
@@ -11,6 +9,8 @@ discard block |
||
| 11 | 9 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 12 | 10 | use Symfony\Component\Routing\RouterInterface; |
| 13 | 11 | use Symfony\Contracts\Translation\TranslatorInterface; |
| 12 | +use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
| 13 | +use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
| 14 | 14 | |
| 15 | 15 | class TreeController extends Controller |
| 16 | 16 | { |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\DependencyInjection; |
| 4 | 4 | |
| 5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Configuration as SiteAccessConfiguration; |
|
| 5 | +use Netgen\InformationCollection\API\ConfigurationConstants; |
|
| 6 | 6 | use Netgen\InformationCollection\Core\Action\EmailAction; |
| 7 | 7 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
| 8 | -use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
| 9 | 8 | use Symfony\Component\Config\Definition\Builder\NodeBuilder; |
| 10 | -use Netgen\InformationCollection\API\ConfigurationConstants; |
|
| 9 | +use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
| 10 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Configuration as SiteAccessConfiguration; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * This is the class that validates and merges configuration from your app/config files. |