<?php
namespace Boab\CmsBundle\Repository;
use Boab\CmsBundle\Entity\ContentInterface;
use Boab\CmsBundle\Service\PaginationInterface;
use Boab\CmsBundle\Util\DataTable\DataTableContextInterface;
interface ContentRepositoryInterface
{
public function findContents(array $params);
public function findContentByTermId(int $id):? PaginationInterface;
public function findAllContentByType(string $type):?iterable;
public function findPossiblePageParent(string $contentType, int $id=null): ?array;
public function findContentCollection(array $entityClasses, int $page): PaginationInterface;
public function findContentByRouteId(int $routeId): ?ContentInterface;
public function findContentById(int $id): ContentInterface;
public function findContentBySlug(string $slug): ?ContentInterface;
public function findContentBySearchTerm(array $params);
public function findContentsByType(string $type, int $page, string $status=ContentInterface::STATUS_PUBLISHED);
public function delete(ContentInterface $content):void;
public function findContentsByParentId($parentId, $limit=0, $orderBy, $order): iterable;
}