public function anchors(HTTPRequest $request)
    {
        $id = (int)$this->getRequest()->param('PageID');
        $anchors = $this->getAnchorsInPage($id);

        return json_encode($anchors);
    }
public function anchors(HTTPRequest $request)
    {
        $id = (int)$this->getRequest()->param('PageID');
        $anchors = $this->getAnchorsInPage($id);

        return json_encode($anchors);
    }
public function anchors ( HTTPRequest $ request ) { $ id = ( int ) $ this -> getRequest ( ) -> param ( 'PageID' ) ; $ anchors = $ this -> getAnchorsInPage ( $ id ) ; return json_encode ( $ anchors ) ; }
Find all anchors available on the given page.

@param HTTPRequest $request
@return array
Find all anchors available on the given page .