PHP Класс Newscoop\Entity\Repository\PlaylistRepository

Наследование: extends Doctrine\ORM\EntityRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

articles() публичный Метод

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() публичный Метод

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() публичный Метод

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

getArticlePlaylists() публичный Метод

Gets the list of playlist the given article belongs to.
public getArticlePlaylists ( integer $articleId, integer $languageId ) : array
$articleId integer
$languageId integer
Результат array

getPlaylist() публичный Метод

public getPlaylist ( $id )

getPlaylistByTitle() публичный Метод

public getPlaylistByTitle ( $title )

getPlaylists() публичный Метод

public getPlaylists ( )

save() публичный Метод

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