[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 /** 4 * @package admin 5 */ 6 7 8 lt_include( PLOG_CLASS_PATH."class/view/view.class.php" ); 9 lt_include( PLOG_CLASS_PATH."class/template/templateservice.class.php" ); 10 lt_include( PLOG_CLASS_PATH."class/template/template.class.php" ); 11 lt_include( PLOG_CLASS_PATH."class/locale/locales.class.php" ); 12 lt_include( PLOG_CLASS_PATH."class/misc/version.class.php" ); 13 14 // name of the template we are going to use for this view 15 define( "DEFAULTADMIN_TEMPLATE", "default" ); 16 17 /** 18 * \ingroup View 19 * @private 20 * 21 * Default view 22 */ 23 class AdminDefaultView extends View 24 { 25 26 /** 27 * This initializes the class, but normally we'll only have to initialize the parent 28 */ 29 function AdminDefaultView() 30 { 31 $this->View(); 32 } 33 34 /** 35 * Renders the view. It simply gets all the parameters we've been adding to it 36 * and puts them in the context of the template renderer so that they can be accessed 37 * as normal parameters from within the template 38 */ 39 function render() 40 { 41 // set the view character set based on the default locale 42 $config =& Config::getConfig(); 43 $locale =& Locales::getLocale( $config->getValue( "default_locale" )); 44 $this->setValue( 'version', Version::getVersion()); 45 $this->setCharset( $locale->getCharset()); 46 47 parent::render(); 48 49 // to find the template we need, we can use the TemplateService 50 $ts = new TemplateService(); 51 $template = $ts->Template( DEFAULTADMIN_TEMPLATE, "admin" ); 52 $this->setValue( "locale", $locale ); 53 // assign all the values 54 $template->assign( $this->_params->getAsArray()); 55 56 // and send the results 57 print $template->fetch(); 58 } 59 } 60 ?>
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 |
![]() |