PHP Class Newscoop\Entity\Repository\PlaylistRepository

Inheritance: extends Doctrine\ORM\EntityRepository
显示文件 Open project: sourcefabric/newscoop

Public Methods

Method Description
articles ( Playlist $playlist, array $languages = [], boolean $fullArticle = false, integer $limit = null, integer $offset = null, boolean $publishedOnly = true, $onlyQuery = false, $orderBy = 'order', $orderDir = 'ASC' ) Returns articles for a given playlist.
articlesCount ( Playlist $playlist, array $languages = [], boolean $publishedOnly = true ) Returns the total count of articles for a given playlist.
delete ( Playlist $playlist ) Delete playlist.
getArticlePlaylists ( integer $articleId, integer $languageId ) : array Gets the list of playlist the given article belongs to.
getPlaylist ( $id )
getPlaylistByTitle ( $title )
getPlaylists ( )
save ( Playlist $playlist = null, array $articles = null ) Save playlist with articles.

Method Details

articles() public method

Returns articles for a given playlist.
public articles ( Playlist $playlist, array $languages = [], boolean $fullArticle = false, integer $limit = null, integer $offset = null, boolean $publishedOnly = true, $onlyQuery = false, $orderBy = 'order', $orderDir = 'ASC' )
$playlist Newscoop\Entity\Playlist
$languages array
$fullArticle boolean
$limit integer
$offset integer
$publishedOnly boolean

articlesCount() public method

Returns the total count of articles for a given playlist.
public articlesCount ( Playlist $playlist, array $languages = [], boolean $publishedOnly = true )
$playlist Newscoop\Entity\Playlist
$languages array
$publishedOnly boolean

delete() public method

Delete playlist.
public delete ( Playlist $playlist )
$playlist Newscoop\Entity\Playlist

getArticlePlaylists() public method

Gets the list of playlist the given article belongs to.
public getArticlePlaylists ( integer $articleId, integer $languageId ) : array
$articleId integer
$languageId integer
return array

getPlaylist() public method

public getPlaylist ( $id )

getPlaylistByTitle() public method

public getPlaylistByTitle ( $title )

getPlaylists() public method

public getPlaylists ( )

save() public method

Save playlist with articles.
public save ( Playlist $playlist = null, array $articles = null )
$playlist Newscoop\Entity\Playlist $playlist
$articles array