Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

38 lines
1.2KB

  1. <?php
  2. namespace Lc\SovBundle\Repository\Site;
  3. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  4. interface PageStoreInterface
  5. {
  6. public function createDefaultQuery(RepositoryQueryInterface $query = null): RepositoryQueryInterface;
  7. public function createQuery(RepositoryQueryInterface $query = null): RepositoryQueryInterface;
  8. public function getRepositoryQuery();
  9. public function getOneById(int $id);
  10. public function getOneBySlug(string $slug, bool $isOnline = true, $query = null);
  11. public function getOneByDevAlias(string $devAlias, $query = null);
  12. public function getOneOnlineByDevAlias(string $devAlias, $query = null);
  13. public function getOneByOldUrl(string $oldUrl, $query = null);
  14. public function get($query = null);
  15. public function getAll($query = null);
  16. public function getOnline($query = null);
  17. public function getParent(bool $isOnline = true, $query = null);
  18. public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface;
  19. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface;
  20. public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface;
  21. }