@@ -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 | { |