admineditresourcealbumview.class.php
来自「一个用PHP编写的」· PHP 代码 · 共 32 行
PHP
32 行
<?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 * * shows the view that allows to edit an album */ class AdminEditResourceAlbumView extends AdminTemplatedView { function AdminEditResourceAlbumView( $blogInfo ) { $this->AdminTemplatedView( $blogInfo, "editresourcealbum" ); } function render() { // load the nested list of albums $albums = new GalleryAlbums(); $userAlbums = $albums->getNestedAlbumList( $this->_blogInfo->getId()); $this->notifyEvent( EVENT_ALBUMS_LOADED, Array( "albums" => &$userAlbums )); $this->setValue( "albums", $userAlbums ); // let the parent view do its work parent::render(); } }?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?