PHP Class Newscoop\NewscoopBundle\Controller\TopicsController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
addAction ( Request $request )
addTranslation ( Request $request, $id )
attachTopicAction ( Request $request )
deleteAction ( Request $request, $id )
deleteTranslationAction ( Request $request, $id )
detachTopicAction ( Request $request )
editAction ( Request $request, $id )
findOr404 ( $id )
getTopicsAction ( Request $request )
indexAction ( $compactView = false, $articleNumber = null, $language = null )
isAttachedAction ( Request $request, $id )
moveAction ( Request $request, $id )
treeAction ( Request $request )

Private Methods

Method Description
getArticleTopicsIds ( string $articleNumber ) : array Get Article Topics.
setAttachedKeysForArticleTopics ( array $nodes, string $articleNumber ) : array Adds "attached" and "hasAttachedSubtopic" keys with values to the array of the topic;.

Method Details

addAction() public method

public addAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

addTranslation() public method

public addTranslation ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

attachTopicAction() public method

public attachTopicAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

deleteAction() public method

public deleteAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

deleteTranslationAction() public method

public deleteTranslationAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

detachTopicAction() public method

public detachTopicAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

editAction() public method

public editAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

findOr404() public method

public findOr404 ( $id )

getTopicsAction() public method

public getTopicsAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

indexAction() public method

public indexAction ( $compactView = false, $articleNumber = null, $language = null )

isAttachedAction() public method

public isAttachedAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

moveAction() public method

public moveAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

treeAction() public method

public treeAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request