PHP Class Knp\Bundle\KnpBundlesBundle\Manager\BundleManager

Author: Joseph Bielawski ([email protected])
Author: Mohammad Emran Hasan ([email protected])
Show file Open project: KnpLabs/KnpBundles Class Usage Examples

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectManager $entityManager, OwnerManager $ownerManager, Repo $repoApi )
createBundle ( string $fullName, boolean $flushEntities = true ) : boolean | Bundle
findBundleBy ( array $data ) : null | Bundle
manageBundleRecommendation ( Bundle $bundle, Developer $developer )
toggleBundleFavorite ( Bundle $bundle, Developer $developer ) : boolean

Private Methods

Method Description
createEmptyBundle ( string $name ) : Bundle
createFullBundle ( string $name, string $ownerName ) : boolean | Bundle

Method Details

__construct() public method

public __construct ( Doctrine\Common\Persistence\ObjectManager $entityManager, OwnerManager $ownerManager, Repo $repoApi )
$entityManager Doctrine\Common\Persistence\ObjectManager
$ownerManager OwnerManager
$repoApi Knp\Bundle\KnpBundlesBundle\Github\Repo

createBundle() public method

public createBundle ( string $fullName, boolean $flushEntities = true ) : boolean | Bundle
$fullName string
$flushEntities boolean
return boolean | Knp\Bundle\KnpBundlesBundle\Entity\Bundle return false if the bundle is not valid

findBundleBy() public method

public findBundleBy ( array $data ) : null | Bundle
$data array
return null | Knp\Bundle\KnpBundlesBundle\Entity\Bundle

manageBundleRecommendation() public method

public manageBundleRecommendation ( Bundle $bundle, Developer $developer )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
$developer Knp\Bundle\KnpBundlesBundle\Entity\Developer

toggleBundleFavorite() public method

public toggleBundleFavorite ( Bundle $bundle, Developer $developer ) : boolean
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
$developer Knp\Bundle\KnpBundlesBundle\Entity\Developer
return boolean