[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/view/blogview.class.php" ); 4 lt_include( PLOG_CLASS_PATH."class/template/templatesets/templatesetstorage.class.php" ); 5 lt_include( PLOG_CLASS_PATH."class/template/templateservice.class.php" ); 6 7 /** 8 * default profile used if none specified 9 */ 10 define( 'RSS_VIEW_DEFAULT_PROFILE', 'rss20' ); 11 12 /** 13 * \ingroup View 14 * @private 15 * 16 * Provides RSS output. 17 * 18 * It works like any other view that extends the BlogView object, except that instead of 19 * using the templates available in 20 */ 21 class RssView extends BlogView 22 { 23 24 var $_profile; 25 26 function RssView( $blogInfo, $profile, $data = Array()) 27 { 28 $this->BlogView( $blogInfo, "", SMARTY_VIEW_CACHE_CHECK, $data ); 29 30 $ts = new TemplateSetStorage(); 31 if( !$ts->templateExists( $this->_profile, 'rss' )) { 32 // if not, then we will use the default one 33 $this->_profile = RSS_VIEW_DEFAULT_PROFILE; 34 } 35 36 // we need to overwrite the $this->_template object with the Template object of our choice... 37 $this->_profile = $profile; 38 $templateService = new TemplateService(); 39 $this->_template = $templateService->CachedTemplate( $this->_profile, 'rss', $this->_blogInfo ); 40 41 // set the correct content type 42 $this->setContentType( 'text/xml' ); 43 } 44 } 45 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |