PHP Class Wallabag\ApiBundle\Controller\TagRestController

Inheritance: extends WallabagRestController
Show file Open project: wallabag/wallabag

Public Methods

Method Description
deleteTagAction ( Wallabag\CoreBundle\Entity\Tag $tag ) : Symfony\Component\HttpFoundation\JsonResponse Permanently remove one tag from **every** entry.
deleteTagLabelAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Permanently remove one tag from **every** entry.
deleteTagsLabelAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Permanently remove some tags from **every** entry.
getTagsAction ( ) : Symfony\Component\HttpFoundation\JsonResponse Retrieve all tags.
getVersionAction ( ) : Symfony\Component\HttpFoundation\JsonResponse Retrieve version number.

Private Methods

Method Description
cleanOrphanTag ( Wallabag\CoreBundle\Entity\Tag | array $tags ) Remove orphan tag in case no entries are associated to it.

Method Details

deleteTagAction() public method

Permanently remove one tag from **every** entry.
public deleteTagAction ( Wallabag\CoreBundle\Entity\Tag $tag ) : Symfony\Component\HttpFoundation\JsonResponse
$tag Wallabag\CoreBundle\Entity\Tag
return Symfony\Component\HttpFoundation\JsonResponse

deleteTagLabelAction() public method

Permanently remove one tag from **every** entry.
public deleteTagLabelAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\JsonResponse

deleteTagsLabelAction() public method

Permanently remove some tags from **every** entry.
public deleteTagsLabelAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\JsonResponse

getTagsAction() public method

Retrieve all tags.
public getTagsAction ( ) : Symfony\Component\HttpFoundation\JsonResponse
return Symfony\Component\HttpFoundation\JsonResponse

getVersionAction() public method

Retrieve version number.
public getVersionAction ( ) : Symfony\Component\HttpFoundation\JsonResponse
return Symfony\Component\HttpFoundation\JsonResponse