PHP Class Wallabag\CoreBundle\Twig\WallabagExtension

Inheritance: extends Twig_Extension, implements Twig_Extension_GlobalsInterface
ファイルを表示 Open project: wallabag/wallabag Class Usage Examples

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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() public method

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
return integer

countTags() public method

Return number of tags.
public countTags ( ) : integer
return integer

displayStats() public method

Display a single line about reading stats.
public displayStats ( ) : string
return string

getFilters() public method

public getFilters ( )

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

removeWww() public method

public removeWww ( $url )