Method |
Description |
|
childrenQuery ( $node = null, $direct = false, $sortByField = null, $direction = 'ASC', $include = false ) |
Will do reordering based on current translations. |
|
childrenWithTranslations ( $node = null, $locale = null, $direct = false, $sortByField = null, $direction = 'ASC', $includeNode = false, $start = null, $limit = null ) |
|
|
countBy ( array $criteria = [] ) : integer |
Count topics by given criteria. |
|
findAllParentChoices ( Topic $node = null ) : array |
Get all parent choices. |
|
findOptions ( ) : array |
Find topic options. |
|
getArticleTopics ( integer $articleNr, string $languageCode, string $order = 'asc' ) : Doctrine\ORM\Query |
Get Topics for Article. |
|
getArticlesQueryByTopicIdAndLanguage ( integer $topicId, string $languageCode, boolean $defaultFallback = false ) : Doctrine\ORM\Query |
Get all articles for given topic by topic id and language code. |
|
getOneByExtractedFullName ( $name, $languageCode ) |
|
|
getReadablePath ( Topic $topic, $locale = null ) : string |
Gets topic's path. |
|
getRootNodes ( $locale = null, $childrenLevel = false, $sortByField = null, $direction = 'asc' ) |
{@inheritDoc} |
|
getSingleTopicQuery ( integer $id, string $locale = null ) : Doctrine\ORM\Query |
Gets the single topic's query by id. |
|
getTopicByIdOrName ( string | integer $topicIdOrName, string | integer $locale = null ) : Doctrine\ORM\Query |
Gets topic by given id or name. |
|
getTopics ( $languageCode = null ) : Doctrine\ORM\Query |
Get all topics. |
|
getTopicsQuery ( $direction = 'ASC' ) |
|
|
getTranslatableTopicLocale ( Topic $topic ) |
|
|
getTranslatableTopics ( $locale, $order = 'asc' ) |
Get topics query and set translatable hints. |
|
searchTopics ( string $query, array $sort = [], $limit = null, $locale = null ) : Doctrine\ORM\Query |
Search topic by given query. |
|
setTranslatableHint ( Doctrine\ORM\Query $query, string | null $locale = null ) : Doctrine\ORM\Query |
Add hints to the query. |
|