PHP 클래스 Newscoop\Entity\Repository\ArticleTopicRepository

상속: extends Doctrine\ORM\EntityRepository
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 메소드들

메소드 설명
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.

메소드 상세

countBy() 공개 메소드

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

getAllArticleTopics() 공개 메소드

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

getArticleTopicsIds() 공개 메소드

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

getTheOccurrenceOfTheTopic() 공개 메소드

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