PHP Класс Elcodi\Store\ProductBundle\Transformer\ProductTransformer

Наследование: implements Elcodi\Component\Sitemap\Transformer\Interfaces\SitemapTransformerInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$entityTranslator Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface Entity Translator
$router Symfony\Component\Routing\Generator\UrlGeneratorInterface Url generator

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный Метод

Get last mod
public getLastMod ( Mixed $element, string $language = null ) : string
$element Mixed Element
$language string Language
Результат string Last mod value

getLoc() публичный Метод

Get url given an entity
public getLoc ( Mixed $element, string $language = null ) : string
$element Mixed Element
$language string Language
Результат string url

Описание свойств

$entityTranslator защищенное свойство

Entity Translator
protected EntityTranslatorInterface,Elcodi\Component\EntityTranslator\Services\Interfaces $entityTranslator
Результат Elcodi\Component\EntityTranslator\Services\Interfaces\EntityTranslatorInterface

$router защищенное свойство

Url generator
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $router
Результат Symfony\Component\Routing\Generator\UrlGeneratorInterface