PHP 클래스 WellCommerce\Bundle\RoutingBundle\Generator\SlugGenerator

저자: Adam Piotrowski ([email protected])
상속: implements WellCommerce\Bundle\RoutingBundle\Generator\SlugGeneratorInterface
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

공개 메소드들

메소드 설명
__construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager ) SlugGenerator constructor.
generate ( string $name, $id, string $locale, $values, integer $iteration ) : string

비공개 메소드들

메소드 설명
hasRouteSameLocaleAndId ( WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface $route, string $locale, $id ) : boolean Checks passed identifier and locale against those in route
makeSlugIterated ( string $slug, integer $iteration ) : string Makes original slug iterated

메소드 상세

__construct() 공개 메소드

SlugGenerator constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager )
$manager WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface

generate() 공개 메소드

public generate ( string $name, $id, string $locale, $values, integer $iteration ) : string
$name string
$locale string
$iteration integer
리턴 string