PHP Класс Wallabag\CoreBundle\Twig\WallabagExtension

Наследование: extends Twig_Extension, implements Twig_Extension_GlobalsInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( EntryRepository $entryRepository, TagRepository $tagRepository, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, $lifeTime, Symfony\Component\Translation\TranslatorInterface $translator )
countEntries ( string $type ) : integer Return number of entries depending of the type (unread, archive, starred or all).
countTags ( ) : integer Return number of tags.
displayStats ( ) : string Display a single line about reading stats.
getFilters ( )
getFunctions ( )
getName ( )
removeWww ( $url )

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

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

public __construct ( EntryRepository $entryRepository, TagRepository $tagRepository, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, $lifeTime, Symfony\Component\Translation\TranslatorInterface $translator )
$entryRepository Wallabag\CoreBundle\Repository\EntryRepository
$tagRepository Wallabag\CoreBundle\Repository\TagRepository
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$translator Symfony\Component\Translation\TranslatorInterface

countEntries() публичный метод

Return number of entries depending of the type (unread, archive, starred or all).
public countEntries ( string $type ) : integer
$type string Type of entries to count
Результат integer

countTags() публичный метод

Return number of tags.
public countTags ( ) : integer
Результат integer

displayStats() публичный метод

Display a single line about reading stats.
public displayStats ( ) : string
Результат string

getFilters() публичный метод

public getFilters ( )

getFunctions() публичный метод

public getFunctions ( )

getName() публичный метод

public getName ( )

removeWww() публичный метод

public removeWww ( $url )