PHP 클래스 Sulu\Bundle\TagBundle\Twig\TagTwigExtension

상속: extends Twig_Extension
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Sulu\Bundle\TagBundle\Tag\TagManagerInterface $tagManager, Sulu\Component\Tag\Request\TagRequestHandlerInterface $tagRequestHandler, JMS\Serializer\SerializerInterface $serializer, Sulu\Component\Cache\MemoizeInterface $memoizeCache )
appendTagUrlFunction ( array $tag, string $tagsParameter = 'tags' ) : string Extends current URL with given tag.
clearTagUrlFunction ( string $tagsParameter = 'tags' ) : string Remove tag from current URL.
getFunctions ( )
getName ( )
getTagsFunction ( ) : array
setTagUrlFunction ( array $tag, string $tagsParameter = 'tags' ) : string Set tag to current URL.

메소드 상세

__construct() 공개 메소드

public __construct ( Sulu\Bundle\TagBundle\Tag\TagManagerInterface $tagManager, Sulu\Component\Tag\Request\TagRequestHandlerInterface $tagRequestHandler, JMS\Serializer\SerializerInterface $serializer, Sulu\Component\Cache\MemoizeInterface $memoizeCache )
$tagManager Sulu\Bundle\TagBundle\Tag\TagManagerInterface
$tagRequestHandler Sulu\Component\Tag\Request\TagRequestHandlerInterface
$serializer JMS\Serializer\SerializerInterface
$memoizeCache Sulu\Component\Cache\MemoizeInterface

appendTagUrlFunction() 공개 메소드

Extends current URL with given tag.
public appendTagUrlFunction ( array $tag, string $tagsParameter = 'tags' ) : string
$tag array will be included in the URL
$tagsParameter string GET parameter name
리턴 string

clearTagUrlFunction() 공개 메소드

Remove tag from current URL.
public clearTagUrlFunction ( string $tagsParameter = 'tags' ) : string
$tagsParameter string GET parameter name
리턴 string

getFunctions() 공개 메소드

public getFunctions ( )

getName() 공개 메소드

public getName ( )

getTagsFunction() 공개 메소드

public getTagsFunction ( ) : array
리턴 array

setTagUrlFunction() 공개 메소드

Set tag to current URL.
public setTagUrlFunction ( array $tag, string $tagsParameter = 'tags' ) : string
$tag array will be included in the URL
$tagsParameter string GET parameter name
리턴 string