public function rssFeedAction($path)
    {
        try {
            $this->setPath($path);
        } catch (NotFoundException $e) {
            throw $e;
        }

        $dbfile     = new WDBFile($this->getpath());
        $contents   = array();
        $tpl_params = array(
            'page'          => $dbfile->getWDBFullStack(),
            'breadcrumbs'   => TemplateHelper::getBreadcrumbs($this->getPath()),
            'title'         => TemplateHelper::buildPageTitle($this->getPath()),
        );
        if (empty($tpl_params['title'])) {
            if (!empty($tpl_params['breadcrumbs'])) {
                $tpl_params['title'] = TemplateHelper::buildPageTitle(end($tpl_params['breadcrumbs']));
            } else {
                $tpl_params['title'] = _T('Home');
            }
        }

        $this->wdb->getResponse()->setContentType('xml');

        $page = $dbfile->getWDBStack();
        if ($dbfile->isDir()) {
            $contents = Helper::getFlatDirscans($dbfile->getWDBScanStack(true), true);
            foreach ($contents['dirscan'] as $i=>$item) {
                if ($item['type']!=='dir' && file_exists($item['path'])) {
                    $dbfile = new WDBFile($item['path']);
                    $contents['dirscan'][$i]['content'] = $dbfile->viewIntroduction(4000, false);
                }
            }
        } else {
            $page['content'] = $dbfile->viewIntroduction(4000, false);
        }
        
        $rss_content = $this->wdb->display('', 'rss', array(
            'page'      => $page,
            'contents'  => $contents
        ));

        return array('layout_empty_xml', $rss_content);
    }
public function rssFeedAction($path)
    {
        try {
            $this->setPath($path);
        } catch (NotFoundException $e) {
            throw $e;
        }

        $dbfile     = new WDBFile($this->getpath());
        $contents   = array();
        $tpl_params = array(
            'page'          => $dbfile->getWDBFullStack(),
            'breadcrumbs'   => TemplateHelper::getBreadcrumbs($this->getPath()),
            'title'         => TemplateHelper::buildPageTitle($this->getPath()),
        );
        if (empty($tpl_params['title'])) {
            if (!empty($tpl_params['breadcrumbs'])) {
                $tpl_params['title'] = TemplateHelper::buildPageTitle(end($tpl_params['breadcrumbs']));
            } else {
                $tpl_params['title'] = _T('Home');
            }
        }

        $this->wdb->getResponse()->setContentType('xml');

        $page = $dbfile->getWDBStack();
        if ($dbfile->isDir()) {
            $contents = Helper::getFlatDirscans($dbfile->getWDBScanStack(true), true);
            foreach ($contents['dirscan'] as $i=>$item) {
                if ($item['type']!=='dir' && file_exists($item['path'])) {
                    $dbfile = new WDBFile($item['path']);
                    $contents['dirscan'][$i]['content'] = $dbfile->viewIntroduction(4000, false);
                }
            }
        } else {
            $page['content'] = $dbfile->viewIntroduction(4000, false);
        }
        
        $rss_content = $this->wdb->display('', 'rss', array(
            'page'      => $page,
            'contents'  => $contents
        ));

        return array('layout_empty_xml', $rss_content);
    }
public function rssFeedAction ( $ path ) { try { $ this -> setPath ( $ path ) ; } catch ( NotFoundException $ e ) { throw $ e ; } $ dbfile = new WDBFile ( $ this -> getpath ( ) ) ; $ contents = array ( ) ; $ tpl_params = array ( 'page' => $ dbfile -> getWDBFullStack ( ) , 'breadcrumbs' => TemplateHelper :: getBreadcrumbs ( $ this -> getPath ( ) ) , 'title' => TemplateHelper :: buildPageTitle ( $ this -> getPath ( ) ) , ) ; if ( empty ( $ tpl_params [ 'title' ] ) ) { if ( ! empty ( $ tpl_params [ 'breadcrumbs' ] ) ) { $ tpl_params [ 'title' ] = TemplateHelper :: buildPageTitle ( end ( $ tpl_params [ 'breadcrumbs' ] ) ) ; } else { $ tpl_params [ 'title' ] = _T ( 'Home' ) ; } } $ this -> wdb -> getResponse ( ) -> setContentType ( 'xml' ) ; $ page = $ dbfile -> getWDBStack ( ) ; if ( $ dbfile -> isDir ( ) ) { $ contents = Helper :: getFlatDirscans ( $ dbfile -> getWDBScanStack ( true ) , true ) ; foreach ( $ contents [ 'dirscan' ] as $ i => $ item ) { if ( $ item [ 'type' ] !== 'dir' && file_exists ( $ item [ 'path' ] ) ) { $ dbfile = new WDBFile ( $ item [ 'path' ] ) ; $ contents [ 'dirscan' ] [ $ i ] [ 'content' ] = $ dbfile -> viewIntroduction ( 4000 , false ) ; } } } else { $ page [ 'content' ] = $ dbfile -> viewIntroduction ( 4000 , false ) ; } $ rss_content = $ this -> wdb -> display ( '' , 'rss' , array ( 'page' => $ page , 'contents' => $ contents ) ) ; return array ( 'layout_empty_xml' , $ rss_content ) ; }
RSS action for concerned path

@param string $path
@return array
@throws \WebDocBook\Exception\NotFoundException
RSS action for concerned path