PHP Class Newscoop\Entity\Repository\ArticleTopicRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Afficher le fichier Open project: sourcefabric/newscoop

Méthodes publiques

Méthode Description
countBy ( array $criteria = [] ) : integer Count article topics by given criteria.
getAllArticleTopics ( integer | string $articleNumber, string $languageCode ) : Doctrine\ORM\Query Get all topics for an Article.
getArticleTopicsIds ( integer | string $articleNumber, boolean $topicsOnly = false ) : Doctrine\ORM\Query Get all topics for an Article - Topic and article objects.
getTheOccurrenceOfTheTopic ( string | integer $topicId ) : Doctrine\ORM\Query Gets the occurence of the topic.

Method Details

countBy() public méthode

Count article topics by given criteria.
public countBy ( array $criteria = [] ) : integer
$criteria array
Résultat integer

getAllArticleTopics() public méthode

Get all topics for an Article.
public getAllArticleTopics ( integer | string $articleNumber, string $languageCode ) : Doctrine\ORM\Query
$articleNumber integer | string Article number
$languageCode string Article's language code
Résultat Doctrine\ORM\Query

getArticleTopicsIds() public méthode

Get all topics for an Article - Topic and article objects.
public getArticleTopicsIds ( integer | string $articleNumber, boolean $topicsOnly = false ) : Doctrine\ORM\Query
$articleNumber integer | string Article number
$topicsOnly boolean If get only topics in the result
Résultat Doctrine\ORM\Query

getTheOccurrenceOfTheTopic() public méthode

Gets the occurence of the topic.
public getTheOccurrenceOfTheTopic ( string | integer $topicId ) : Doctrine\ORM\Query
$topicId string | integer Topic id
Résultat Doctrine\ORM\Query