src/Sulu/Bundle/PageBundle/Controller/NodeController.php
private function getNodesByIds(Request $request, $idString)
    {
        $language = $this->getLanguage($request);
        $webspace = $this->getWebspace($request, false);

        $result = $this->getRepository()->getNodesByIds(
            preg_split('/[,]/', $idString, -1, PREG_SPLIT_NO_EMPTY),
            $webspace,
            $language
        );

        return $this->handleView($this->view($result));
    }
private function getNodesByIds(Request $request, $idString)
    {
        $language = $this->getLanguage($request);
        $webspace = $this->getWebspace($request, false);

        $result = $this->getRepository()->getNodesByIds(
            preg_split('/[,]/', $idString, -1, PREG_SPLIT_NO_EMPTY),
            $webspace,
            $language
        );

        return $this->handleView($this->view($result));
    }
private function getNodesByIds ( Request $ request , $ idString ) { $ language = $ this -> getLanguage ( $ request ) ; $ webspace = $ this -> getWebspace ( $ request , false ) ; $ result = $ this -> getRepository ( ) -> getNodesByIds ( preg_split ( '/[,]/' , $ idString , - 1 , PREG_SPLIT_NO_EMPTY ) , $ webspace , $ language ) ; return $ this -> handleView ( $ this -> view ( $ result ) ) ; }
Returns nodes by given ids.

@param Request $request
@param array $idString

@return \Symfony\Component\HttpFoundation\Response
Returns nodes by given ids .