Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Persistence/Legacy/UserPreference/Gateway.php
Go to the documentation of this file.
1 <?php
2
7 declare(strict_types=1);
8
9 namespace eZ\Publish\Core\Persistence\Legacy\UserPreference;
10
11 use eZ\Publish\SPI\Persistence\UserPreference\UserPreferenceSetStruct;
12
13 abstract class Gateway
14 {
22 abstract public function setUserPreference(UserPreferenceSetStruct $userPreference): int;
23
32 abstract public function getUserPreferenceByUserIdAndName(int $userId, string $name): array;
33
39 abstract public function countUserPreferences(int $userId): int;
40
48 abstract public function loadUserPreferences(int $userId, int $offset = 0, int $limit = -1): array;
49 }
eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway
Definition: Persistence/Legacy/UserPreference/Gateway.php:14
eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway\setUserPreference
setUserPreference(UserPreferenceSetStruct $userPreference)
Store UserPreference ValueObject in persistent storage.
eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway\loadUserPreferences
loadUserPreferences(int $userId, int $offset=0, int $limit=-1)
eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway\getUserPreferenceByUserIdAndName
getUserPreferenceByUserIdAndName(int $userId, string $name)
Get UserPreference by its user ID and name.
eZ\Publish\Core\Persistence\Legacy\UserPreference\Gateway\countUserPreferences
countUserPreferences(int $userId)
eZ\Publish\SPI\Persistence\UserPreference\UserPreferenceSetStruct
Definition: SPI/Persistence/UserPreference/UserPreferenceSetStruct.php:14
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.