[ 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/ -> adminresourcealbumslistview.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/gallery/dao/galleryalbums.class.php" );    
   5      /**
   6       * \ingroup View
   7       * @private
   8       */    
   9      class AdminResourceAlbumsListView extends AdminTemplatedView
  10      {
  11          var $_albumId;
  12      
  13  		function AdminResourceAlbumsListView( $blogInfo, $params = Array())
  14          {
  15              $this->AdminTemplatedView( $blogInfo, "resourcealbums" );
  16                  
  17              // fetch the album id
  18              $this->_albumId = $params["albumId"];
  19              if( $this->_albumId == "" ) $this->_albumId = 0;
  20          }
  21          
  22  		function render()
  23          {
  24              // fetch the child albums of the current top level album
  25              $galleryAlbums = new GalleryAlbums();
  26              $albums = $galleryAlbums->getChildAlbums( $this->_albumId, $this->_blogInfo->getId());
  27  
  28              // get some info about the parent album if it's different from the
  29              // top level album
  30              if( $this->_albumId > 0 )
  31                  $album = $galleryAlbums->getAlbum( $this->_albumId, $this->_blogInfo->getId());    
  32  
  33              // fetch the albums for this blog
  34              $this->setValue( "albums", $albums );
  35              $this->setValue( "albumid", $this->_albumId );
  36              $this->setValue( "album", $album );
  37              
  38              parent::render();
  39          }
  40      }
  41  ?>


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