PHP Class Wallabag\CoreBundle\Repository\TagRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Datei anzeigen Open project: wallabag/wallabag

Public Methods

Method Description
countAllTags ( integer $userId, integer $cacheLifeTime = null ) : integer Count all tags per user.
findAllTags ( integer $userId ) : array Find all tags per user.
findOneByEntryAndTagLabel ( $entry, $label ) : Tag Used only in test case to get a tag for our entry.

Method Details

countAllTags() public method

Count all tags per user.
public countAllTags ( integer $userId, integer $cacheLifeTime = null ) : integer
$userId integer
$cacheLifeTime integer Duration of the cache for this query
return integer

findAllTags() public method

Find all tags per user.
public findAllTags ( integer $userId ) : array
$userId integer
return array

findOneByEntryAndTagLabel() public method

Used only in test case to get a tag for our entry.
public findOneByEntryAndTagLabel ( $entry, $label ) : Tag
return Tag