Method |
Description |
|
__construct ( EntityManager $em, EventDispatcher $dispatcher ) |
|
|
addTopicToArticle ( Topic $topic, Article $article ) : boolean |
Adds topic to the article. |
|
checkTopicName ( string $locale, string $title ) : boolean |
Check if topic name already exists by given locale. |
|
countArticleTopicsBy ( array $criteria = [] ) : integer |
Count article topics by given criteria. |
|
countBy ( array $criteria = [] ) : integer |
Count topics by given criteria. |
|
deleteTopic ( Topic $topic ) : boolean |
Deletes the topic. If topic is attached to any article
it is first detached and deleted. |
|
getMultiOptions ( ) : array |
Get options for forms. |
|
getReadablePath ( Topic $topic, string | null $locale = null ) : string |
Wrapper method for getting readable topic path. |
|
getTopicBy ( string $string, string | null $locale = null ) : Topic | null |
Gets the topic by id, its title or title
combined with the language and language code. |
|
getTopicByFullName ( string $fullName ) : Topic | null |
Returns a topic object identified by the full name in the
format topic_name:language_code. |
|
getTopicByFullNameAsArray ( string $fullName ) : array |
Returns a topic as an array identified by the full name in the
format topic_name:language_code. |
|
isAttached ( string | integer $topicId, boolean $attachedCount = false ) : boolean | array |
Checks if topic is attached to any article. |
|
isFollowed ( string | integer $topicId ) : boolean | array |
Checks if topic is attached to any article. |
|
removeTopicFromAllArticles ( string | integer $topicId ) : boolean |
Removes topic from all articles it is attached to. |
|
removeTopicFromAllUsers ( string | integer $topicId ) : boolean |
Removes topic from all users it is followed by. |
|
removeTopicFromArticle ( Topic $topic, Article $article ) : boolean |
Removes topic from the article. |
|
reorderRootNodes ( array $rootNodes, array $order = [] ) : boolean |
Reorder root topics. |
|
saveNewTopic ( Topic $node, string | null $locale = null ) : boolean |
Saves new topic. Possibility to overwrite AUTO strategy (set custom ids). |
|
saveTopicPosition ( Topic $node, array $params ) : boolean |
Saves topic position when it was dragged and dropped. |
|
setTranslatableHint ( Doctrine\ORM\Query $query, string $locale = null ) : Doctrine\ORM\Query |
Wrapper method for setting translatable hint. |
|