Exception
9 months ago
Logging
9 months ago
Persister
9 months ago
Region
9 months ago
AssociationCacheEntry.php
9 months ago
CacheConfiguration.php
9 months ago
CacheEntry.php
9 months ago
CacheException.php
9 months ago
CacheFactory.php
9 months ago
CacheKey.php
9 months ago
CollectionCacheEntry.php
9 months ago
CollectionCacheKey.php
9 months ago
CollectionHydrator.php
9 months ago
ConcurrentRegion.php
9 months ago
DefaultCache.php
9 months ago
DefaultCacheFactory.php
9 months ago
DefaultCollectionHydrator.php
9 months ago
DefaultEntityHydrator.php
9 months ago
DefaultQueryCache.php
9 months ago
EntityCacheEntry.php
9 months ago
EntityCacheKey.php
9 months ago
EntityHydrator.php
9 months ago
Lock.php
9 months ago
LockException.php
9 months ago
MultiGetRegion.php
9 months ago
QueryCache.php
9 months ago
QueryCacheEntry.php
9 months ago
QueryCacheKey.php
9 months ago
QueryCacheValidator.php
9 months ago
Region.php
9 months ago
RegionsConfiguration.php
9 months ago
TimestampCacheEntry.php
9 months ago
TimestampCacheKey.php
9 months ago
TimestampQueryCacheValidator.php
9 months ago
TimestampRegion.php
9 months ago
index.php
9 months ago
CollectionCacheKey.php
24 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Cache; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use function implode; |
| 6 | use function ksort; |
| 7 | use function str_replace; |
| 8 | use function strtolower; |
| 9 | class CollectionCacheKey extends CacheKey |
| 10 | { |
| 11 | public $ownerIdentifier; |
| 12 | public $entityClass; |
| 13 | public $association; |
| 14 | public function __construct($entityClass, $association, array $ownerIdentifier, string $filterHash = '') |
| 15 | { |
| 16 | ksort($ownerIdentifier); |
| 17 | $this->ownerIdentifier = $ownerIdentifier; |
| 18 | $this->entityClass = (string) $entityClass; |
| 19 | $this->association = (string) $association; |
| 20 | $filterHash = $filterHash === '' ? '' : '_' . $filterHash; |
| 21 | parent::__construct(str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' . $association . $filterHash); |
| 22 | } |
| 23 | } |
| 24 |