PHP Class Newscoop\Entity\Repository\ArticleTopicRepository

Inheritance: extends Doctrine\ORM\EntityRepository
ファイルを表示 Open project: sourcefabric/newscoop

Public Methods

Method 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 method

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

getAllArticleTopics() public method

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
return Doctrine\ORM\Query

getArticleTopicsIds() public method

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
return Doctrine\ORM\Query

getTheOccurrenceOfTheTopic() public method

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