adminresourcealbumslistview.class.php
来自「一个用PHP编写的」· PHP 代码 · 共 41 行
PHP
41 行
<?php lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" ); lt_include( PLOG_CLASS_PATH."class/gallery/dao/galleryalbums.class.php" ); /** * \ingroup View * @private */ class AdminResourceAlbumsListView extends AdminTemplatedView { var $_albumId; function AdminResourceAlbumsListView( $blogInfo, $params = Array()) { $this->AdminTemplatedView( $blogInfo, "resourcealbums" ); // fetch the album id $this->_albumId = $params["albumId"]; if( $this->_albumId == "" ) $this->_albumId = 0; } function render() { // fetch the child albums of the current top level album $galleryAlbums = new GalleryAlbums(); $albums = $galleryAlbums->getChildAlbums( $this->_albumId, $this->_blogInfo->getId()); // get some info about the parent album if it's different from the // top level album if( $this->_albumId > 0 ) $album = $galleryAlbums->getAlbum( $this->_albumId, $this->_blogInfo->getId()); // fetch the albums for this blog $this->setValue( "albums", $albums ); $this->setValue( "albumid", $this->_albumId ); $this->setValue( "album", $album ); parent::render(); } }?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?