admineditresourceview.class.php

来自「一个用PHP编写的」· PHP 代码 · 共 39 行

PHP
39
字号
<?php	lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );    lt_include( PLOG_CLASS_PATH."class/gallery/dao/galleryalbums.class.php" );    lt_include( PLOG_CLASS_PATH."class/view/admin/adminresourceslistview.class.php" );		    /**     * \ingroup View     * @private     *		 * shows the view that allows to see more information of a resource	 */	class AdminEditResourceView extends AdminTemplatedView	{		var $_resourceId;			function AdminEditResourceView( $blogInfo )		{			$this->AdminTemplatedView( $blogInfo, "resourceinfo" );		}				function getResourceId( $resourceId )		{			return( $this->_resourceId );		}				function render()		{			// load the nested list of albums            // fetch the albums for this blog            $albums = new GalleryAlbums();            $blogAlbums = $albums->getNestedAlbumList( $this->_blogInfo->getId());			$this->notifyEvent( EVENT_ALBUMS_LOADED, Array( "albums" => &$blogAlbums ));			$this->setValue( "albums", $blogAlbums );						parent::render();		}	}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?