[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/summary/view/ -> doblogregistrationview.class.php (source)

   1  <?php
   2  
   3      lt_include( PLOG_CLASS_PATH."class/summary/view/summaryview.class.php" );
   4      lt_include( PLOG_CLASS_PATH."class/locale/locales.class.php" );
   5      lt_include( PLOG_CLASS_PATH."class/dao/blogcategories.class.php" );
   6      lt_include( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
   7      
   8      /**

   9       * shows a list with all the locales so that users can choose, too

  10       */
  11      class doBlogRegistrationView extends SummaryView
  12      {
  13      
  14  		function doBlogRegistrationView()
  15          {
  16              $this->SummaryView( "registerstep2" );
  17          }
  18          
  19  		function render()
  20          {
  21              // get the list of languages available, so that users can choose

  22              $locales = Locales::getLocales();
  23              $this->setValue( "locales", $locales );
  24              
  25              $config =& Config::getConfig();
  26              // assign default Local to template

  27              $this->setValue( "defaultLocale", $config->getValue("default_locale" ) );
  28  
  29              // get a list of blog categories, so we can let user to choose

  30              $blogCategories = new BlogCategories();
  31              $categories = $blogCategories->getBlogCategories();
  32              $this->setValue( "blogCategories", $categories );
  33              
  34              // enable or disable the drop-down list to select subdomains

  35              if( Subdomains::getSubdomainsEnabled()) {
  36                  $this->setValue( "blogDomainsEnabled", true );
  37                  $this->setValue( "blogAvailableDomains", Subdomains::getAvailableDomains());
  38              }
  39              
  40              // and render the rest of the contents of the view

  41              parent::render();
  42          }
  43      }
  44  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics