PHP Class Newscoop\Package\PackageRepository

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

Public Methods

Method Description
findAvailableForArticle ( Article $article ) : array Find available for article
findBy ( array $criteria, array $orderBy = null, integer $limit = null, integer $offset = null ) Find packages by a set of criteria
getCountBy ( array $criteria ) : integer Get count of packages by a set of criteria
getListByCriteria ( SlideshowCriteria $criteria ) : Newscoop\ListResult Get list for given criteria

Private Methods

Method Description
setCriteria ( Doctrine\ORM\QueryBuilder $queryBuilder, array $criteria ) : void Set criteria for query builder

Method Details

findAvailableForArticle() public method

Find available for article
public findAvailableForArticle ( Article $article ) : array
$article Article
return array

findBy() public method

Find packages by a set of criteria
public findBy ( array $criteria, array $orderBy = null, integer $limit = null, integer $offset = null )
$criteria array
$orderBy array
$limit integer
$offset integer

getCountBy() public method

Get count of packages by a set of criteria
public getCountBy ( array $criteria ) : integer
$criteria array
return integer

getListByCriteria() public method

Get list for given criteria
public getListByCriteria ( SlideshowCriteria $criteria ) : Newscoop\ListResult
$criteria Newscoop\Criteria\SlideshowCriteria
return Newscoop\ListResult