PHP Class Newscoop\Entity\Repository\IssueRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
getByPublicationAndNumberAndLanguage ( $publication, $number = null, $language = null )
getIssue ( $languageCode, $publication, $shortName = null )
getIssuesCountForPublication ( $publicationId )
getLastPublishedByPublication ( $publicationId )
getLatestByPublication ( $publicationId, boolean | integer $maxResults = 1, boolean $leftJoins = true ) : Issue | null Retrieve the latest issue. Optional an array for filtering can be specified. Think of parameters: Publication, Languages, published or not, etc.

Method Details

getByPublicationAndNumberAndLanguage() public method

public getByPublicationAndNumberAndLanguage ( $publication, $number = null, $language = null )

getIssue() public method

public getIssue ( $languageCode, $publication, $shortName = null )

getIssuesCountForPublication() public method

public getIssuesCountForPublication ( $publicationId )

getLastPublishedByPublication() public method

public getLastPublishedByPublication ( $publicationId )

getLatestByPublication() public method

Retrieve the latest issue. Optional an array for filtering can be specified. Think of parameters: Publication, Languages, published or not, etc.
public getLatestByPublication ( $publicationId, boolean | integer $maxResults = 1, boolean $leftJoins = true ) : Issue | null
$maxResults boolean | integer Max results to show
$leftJoins boolean Adds left joins to the query to get section and language
return Newscoop\Entity\Issue | null