PHP Class Elcodi\Store\ProductBundle\Transformer\CategoryTransformer

Inheritance: implements Elcodi\Component\Sitemap\Transformer\Interfaces\SitemapTransformerInterface
Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$entityTranslator Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface Entity Translator
$router Symfony\Component\Routing\Generator\UrlGeneratorInterface Url generator

Public Methods

Method Description
__construct ( Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface $entityTranslator, Symfony\Component\Routing\Generator\UrlGeneratorInterface $router ) Construct
getLastMod ( Mixed $element, string $language = null ) : string Get last mod
getLoc ( Mixed $element, string $language = null ) : string Get url given an entity

Method Details

__construct() public method

Construct
public __construct ( Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface $entityTranslator, Symfony\Component\Routing\Generator\UrlGeneratorInterface $router )
$entityTranslator Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface Entity Translator
$router Symfony\Component\Routing\Generator\UrlGeneratorInterface Router

getLastMod() public method

Get last mod
public getLastMod ( Mixed $element, string $language = null ) : string
$element Mixed Element
$language string Language
return string Last mod value

getLoc() public method

Get url given an entity
public getLoc ( Mixed $element, string $language = null ) : string
$element Mixed Element
$language string Language
return string url

Property Details

$entityTranslator protected property

Entity Translator
protected EntityTranslatorInterface,Elcodi\Component\EntityTranslator\Services\Interfaces $entityTranslator
return Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface

$router protected property

Url generator
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $router
return Symfony\Component\Routing\Generator\UrlGeneratorInterface