PHP Class Sonata\ProductBundle\Controller\CollectionController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
indexAction ( ) : Response List the main collections.
listProductsAction ( $collectionId ) : Symfony\Bundle\FrameworkBundle\Controller\Response List the product related to one collection.
listSideMenuCollectionsAction ( null $collection = null, integer $depth = 1, integer $deep ) : Symfony\Bundle\FrameworkBundle\Controller\Response
listSubCollectionsAction ( $collectionId ) : Symfony\Bundle\FrameworkBundle\Controller\Response List collections from one collections.
viewAction ( $collectionId, $slug ) : Response Display one collection.

Method Details

indexAction() public method

List the main collections.
public indexAction ( ) : Response
return Response

listProductsAction() public method

List the product related to one collection.
public listProductsAction ( $collectionId ) : Symfony\Bundle\FrameworkBundle\Controller\Response
$collectionId
return Symfony\Bundle\FrameworkBundle\Controller\Response

listSideMenuCollectionsAction() public method

public listSideMenuCollectionsAction ( null $collection = null, integer $depth = 1, integer $deep ) : Symfony\Bundle\FrameworkBundle\Controller\Response
$collection null
$depth integer
$deep integer
return Symfony\Bundle\FrameworkBundle\Controller\Response

listSubCollectionsAction() public method

List collections from one collections.
public listSubCollectionsAction ( $collectionId ) : Symfony\Bundle\FrameworkBundle\Controller\Response
$collectionId
return Symfony\Bundle\FrameworkBundle\Controller\Response

viewAction() public method

Display one collection.
public viewAction ( $collectionId, $slug ) : Response
$collectionId
$slug
return Response