[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/view/admin/adminresourceslistview.class.php" ); 4 lt_include( PLOG_CLASS_PATH."class/data/stringutils.class.php" ); 5 lt_include( PLOG_CLASS_PATH."class/data/timestamp.class.php" ); 6 7 /** 8 * \ingroup View 9 * @private 10 */ 11 class AdminSimpleResourcesListView extends AdminResourcesListView 12 { 13 14 function AdminSimpleResourcesListView( $blogInfo, $params = Array()) 15 { 16 $this->AdminResourcesListView( $blogInfo, $params ); 17 18 // change the template, the one chosen by the view above is not 19 // exactly the one we needed 20 $this->_templateName = "chooser/resourcelist"; 21 } 22 23 function render() 24 { 25 $config =& Config::getConfig(); 26 $this->setValue( "blogname", StringUtils::text2url( $this->_blogInfo->getBlog() )); 27 $this->setValue( "requestformat", $config->getValue( "request_format_mode")); 28 $this->setValue( "baseurl", $config->getValue( "base_url" )); 29 30 // whether resources are enabled or not 31 $this->setValue( "resources_enabled", $config->getValue( "resources_enabled", true )); 32 33 // check if htmlarea is enabled 34 $blogSettings = $this->_blogInfo->getSettings(); 35 $this->setValue( "htmlarea", $blogSettings->getValue( "htmlarea_enabled", false )); 36 37 $this->_pagerUrl = "?op=resourceList&page="; 38 39 parent::render(); 40 } 41 } 42 ?>
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 |
![]() |