[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" ); 4 lt_include( PLOG_CLASS_PATH."class/config/config.class.php" ); 5 lt_include( PLOG_CLASS_PATH."class/dao/blogs.class.php" ); 6 7 define( "ADMINISTRATOR_BLOG", 1 ); 8 9 /** 10 * \ingroup View 11 * @private 12 * 13 * shows a list with all the global parameters 14 */ 15 class AdminGlobalSettingsListView extends AdminTemplatedView 16 { 17 var $_show; 18 19 // list with the defined shows 20 21 function AdminGlobalSettingsListView( $blogInfo, $show = "all" ) 22 { 23 $this->AdminTemplatedView( $blogInfo, "globalsettings" ); 24 $this->_show = $show; 25 26 // array with the defined shows 27 $this->_shows = Array( "general", "summary", "templates", "urls", "email", 28 "upload", "helpers", "interfaces", "security", 29 "bayesian", "resources", "search" ); 30 } 31 32 function render() 33 { 34 // if the show is not correct, then use the default "general" 35 if( !in_array( $this->_show, $this->_shows )) 36 $this->_show = "general"; 37 38 // export all the config parameters 39 $config =& Config::getConfig(); 40 $settings = $config->getAsArray(); 41 $this->setValue( "settings", $settings ); 42 foreach( $settings as $key => $value ) { 43 $this->setValue( $key, $value ); 44 } 45 46 // set the show too 47 $this->setValue( "show", $this->_show ); 48 49 parent::render(); 50 } 51 } 52 ?>
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 |
![]() |