class NodeSourceApi extends AbstractApi (View source)

Class NodeSourceApi

Properties

protected Container $container DI container from AbstractApi
protected string $repository

Methods

__construct(Container $container)

No description

EntityRepository
getRepository()

No description

array|Paginator
getBy(array $criteria, array $order = null, null $limit = null, null $offset = null)

No description

mixed
getOneBy(array $criteria, array $order = null)

No description

int
countBy(array $criteria)

No description

string
getRepositoryName(array $criteria = null)

No description

array
searchBy($textQuery, int $limit, array $nodeTypes = [], bool $onlyVisible = false)

Search Nodes-Sources using LIKE condition on title, meta-title, meta-keywords and meta-description.

secureQuery(array $criteria)

Add status constraint if not present.

Details

__construct(Container $container)

Parameters

Container $container

EntityRepository getRepository()

Return Value

EntityRepository

array|Paginator getBy(array $criteria, array $order = null, null $limit = null, null $offset = null)

Parameters

array $criteria
array $order
null $limit
null $offset

Return Value

array|Paginator

mixed getOneBy(array $criteria, array $order = null)

Parameters

array $criteria
array $order

Return Value

mixed

int countBy(array $criteria)

Parameters

array $criteria

Return Value

int

protected string getRepositoryName(array $criteria = null)

Parameters

array $criteria

Return Value

string

array searchBy($textQuery, int $limit, array $nodeTypes = [], bool $onlyVisible = false)

Search Nodes-Sources using LIKE condition on title, meta-title, meta-keywords and meta-description.

Parameters

$textQuery
int $limit
array $nodeTypes
bool $onlyVisible

Return Value

array

protected secureQuery(array $criteria)

Add status constraint if not present.

Parameters

array $criteria