Свойство | Тип | Описание | |
---|---|---|---|
$onChildrenQuery |
Метод | Описание | |
---|---|---|
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 ( |
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 ( |
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 ( |
||
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. |
public childrenQuery ( $node = null, $direct = false, $sortByField = null, $direction = 'ASC', $include = false ) |
public childrenWithTranslations ( $node = null, $locale = null, $direct = false, $sortByField = null, $direction = 'ASC', $includeNode = false, $start = null, $limit = null ) |
public findAllParentChoices ( |
||
$node | Topic object | |
Результат | array |
public getArticlesQueryByTopicIdAndLanguage ( integer $topicId, string $languageCode, boolean $defaultFallback = false ) : Doctrine\ORM\Query | ||
$topicId | integer | Topic id |
$languageCode | string | Language code |
$defaultFallback | boolean | Sets the language of the topic to the default one |
Результат | Doctrine\ORM\Query |
public getOneByExtractedFullName ( $name, $languageCode ) |
public getReadablePath ( |
||
$topic | Topic | |
Результат | string | Path of the topic |
public getRootNodes ( $locale = null, $childrenLevel = false, $sortByField = null, $direction = 'asc' ) |
public getSingleTopicQuery ( integer $id, string $locale = null ) : Doctrine\ORM\Query | ||
$id | integer | Topic id |
$locale | string | Language code |
Результат | Doctrine\ORM\Query | $query Query object |
public getTopics ( $languageCode = null ) : Doctrine\ORM\Query | ||
$languageCode | Language code | |
Результат | Doctrine\ORM\Query |
public getTranslatableTopicLocale ( |
||
$topic |
public getTranslatableTopics ( $locale, $order = 'asc' ) |
public searchTopics ( string $query, array $sort = [], $limit = null, $locale = null ) : Doctrine\ORM\Query | ||
$query | string | |
$sort | array | |
Результат | Doctrine\ORM\Query |
public setTranslatableHint ( Doctrine\ORM\Query $query, string | null $locale = null ) : Doctrine\ORM\Query | ||
$query | Doctrine\ORM\Query | Query |
$locale | string | null | Lecale to which fallback |
Результат | Doctrine\ORM\Query |