PHP Class Elcodi\Store\ProductBundle\Transformer\CategoryTransformer

Inheritance: implements Elcodi\Component\Sitemap\Transformer\Interfaces\SitemapTransformerInterface
Afficher le fichier Open project: elcodi/bamboo

Protected Properties

Свойство Type Description
$entityTranslator Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface Entity Translator
$router Symfony\Component\Routing\Generator\UrlGeneratorInterface Url generator

Méthodes publiques

Méthode 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 méthode

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 méthode

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

getLoc() public méthode

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

Property Details

$entityTranslator protected_oe property

Entity Translator
protected EntityTranslatorInterface,Elcodi\Component\EntityTranslator\Services\Interfaces $entityTranslator
Résultat Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface

$router protected_oe property

Url generator
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $router
Résultat Symfony\Component\Routing\Generator\UrlGeneratorInterface