PHP Class Knp\Bundle\KnpBundlesBundle\Repository\ActivityRepository

Inheritance: extends Doctrine\ORM\EntityRepository
ファイルを表示 Open project: KnpLabs/KnpBundles

Public Methods

Method Description
countActivitiesByBundle ( Bundle $bundle ) : integer
deleteIds ( array $ids )
findAllSimilar ( Activity $activity ) : array
findAllSortedBy ( $sortBy, integer $limit = 10 ) : array
findLastActivitiesForBundle ( Bundle $bundle, integer $limit = 10 ) : array
findLastCommitsForBundle ( Bundle $bundle, integer $limit = 10 ) : array
queryLastActivities ( string $type, integer $bundleId, integer $developerId, string $sortBy = 'createdAt' ) : Doctrine\ORM\Query
removeActivities ( Bundle $bundle, array $leftActivities ) : void

Method Details

countActivitiesByBundle() public method

public countActivitiesByBundle ( Bundle $bundle ) : integer
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
return integer

deleteIds() public method

public deleteIds ( array $ids )
$ids array

findAllSimilar() public method

public findAllSimilar ( Activity $activity ) : array
$activity Knp\Bundle\KnpBundlesBundle\Entity\Activity
return array

findAllSortedBy() public method

public findAllSortedBy ( $sortBy, integer $limit = 10 ) : array
$limit integer
return array

findLastActivitiesForBundle() public method

public findLastActivitiesForBundle ( Bundle $bundle, integer $limit = 10 ) : array
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
$limit integer
return array

findLastCommitsForBundle() public method

public findLastCommitsForBundle ( Bundle $bundle, integer $limit = 10 ) : array
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
$limit integer
return array

queryLastActivities() public method

public queryLastActivities ( string $type, integer $bundleId, integer $developerId, string $sortBy = 'createdAt' ) : Doctrine\ORM\Query
$type string
$bundleId integer
$developerId integer
$sortBy string
return Doctrine\ORM\Query

removeActivities() public method

public removeActivities ( Bundle $bundle, array $leftActivities ) : void
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
$leftActivities array
return void