Beta version

class ThemeRepository extends EntityRepository

[email protected]}

Methods

integer
countBy(Criteria|mixed|array $criteria)

Count entities using a Criteria object or a simple filter array.

array|Paginator
searchBy(string $pattern, array $criteria = array(), array $orders = array(), integer $limit = null, integer $offset = null)

No description

int
countSearchBy(string $pattern, array $criteria = array())

No description

findAvailableBackend()

Get available backend theme.

array|null
findAvailableFrontends()

Get available frontend themes.

Theme|null
findFirstAvailableFrontend()

Get available frontend theme.

Theme|null
findAvailableFrontendWithHost(string $hostname = '*')

Get available frontend theme for host.

Theme|null
findFirstAvailableNonStaticFrontend()

Get available non-static frontend theme.

Theme|null
findAvailableNonStaticFrontendWithHost(string $hostname = '*')

Get available non-static frontend theme for host.

Theme|null
findOneByClassName(string $className)

Cached query for find a theme with its class-name.

Details

in EntityRepository at line 345
integer countBy(Criteria|mixed|array $criteria)

Count entities using a Criteria object or a simple filter array.

Parameters

Criteria|mixed|array $criteria or array

Return Value

integer

in EntityRepository at line 440
array|Paginator searchBy(string $pattern, array $criteria = array(), array $orders = array(), integer $limit = null, integer $offset = null)

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria
array $orders
integer $limit
integer $offset

Return Value

array|Paginator

in EntityRepository at line 487
int countSearchBy(string $pattern, array $criteria = array())

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria

Return Value

int

at line 47
Theme findAvailableBackend()

Get available backend theme.

This method use Result cache.

Return Value

Theme

at line 74
array|null findAvailableFrontends()

Get available frontend themes.

This method uses Result cache.

We need to order themes using hostname to make hostnamed theme prioritary over wildcard themes.

Return Value

array|null

at line 98
Theme|null findFirstAvailableFrontend()

Get available frontend theme.

This method use Result cache.

Return Value

Theme|null

at line 126
Theme|null findAvailableFrontendWithHost(string $hostname = '*')

Get available frontend theme for host.

This method use Result cache.

Parameters

string $hostname

Return Value

Theme|null

Exceptions

NonUniqueResultException

at line 155
Theme|null findFirstAvailableNonStaticFrontend()

Get available non-static frontend theme.

Static means that your theme is not suitable for responding from nodes urls but only static routes.

This method use Result cache.

Return Value

Theme|null

at line 187
Theme|null findAvailableNonStaticFrontendWithHost(string $hostname = '*')

Get available non-static frontend theme for host.

Static means that your theme is not suitable for responding from nodes urls but only static routes.

This method use Result cache.

Parameters

string $hostname

Return Value

Theme|null

Exceptions

NonUniqueResultException

at line 214
Theme|null findOneByClassName(string $className)

Cached query for find a theme with its class-name.

Parameters

string $className

Return Value

Theme|null