[ 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/view/admin/ -> admincreateblogview.class.php (source)

   1  <?php
   2  
   3      lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );
   4      lt_include( PLOG_CLASS_PATH."class/dao/blogcategories.class.php" );
   5      lt_include( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
   6      
   7      /**

   8       * \ingroup View

   9       * @private

  10       */    
  11      class AdminCreateBlogView extends AdminTemplatedView
  12      {
  13      
  14  		function AdminCreateBlogView( $blogInfo )
  15          {
  16              $this->AdminTemplatedView( $blogInfo, "createblog" );            
  17          }
  18          
  19  		function render()
  20          {
  21              // get a list of blog categories, so we can let user to choose

  22              $blogCategories = new BlogCategories();
  23              $categories = $blogCategories->getBlogCategories();
  24              $this->setValue( "blogCategories", $categories );
  25              
  26              // enable or disable the drop-down list to select subdomains

  27              if( Subdomains::getSubdomainsEnabled()) {
  28                  $this->setValue( "blogDomainsEnabled", true );
  29                  $this->setValue( "blogAvailableDomains", Subdomains::getAvailableDomains());
  30              }            
  31  
  32              return( parent::render());
  33          }
  34      }
  35  ?>


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