⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adminplugintemplatedview.class.php

📁 一个用PHP编写的
💻 PHP
字号:
<?php	lt_include( PLOG_CLASS_PATH.'class/view/admin/adminview.class.php' );	lt_include( PLOG_CLASS_PATH.'class/template/templateservice.class.php' );    /**     * \ingroup View     *		 * Loads template files from the plugins/ folder     */    class AdminPluginTemplatedView extends AdminView 	{    	var $_templateName;		var $_pluginId;    	/**         * This initializes the class, but normally we'll only have to initialize the parent		 *		 * @param blogInfo		 * @param pluginId		 * @param templateName         */        function AdminPluginTemplatedView( $blogInfo, $pluginId, $templateName )        {        	$this->AdminView( $blogInfo );            $this->_templateName = $templateName;			$this->_pluginId     = $pluginId;        }        /**         * Renders the view. It simply gets all the parameters we've been adding to it         * and puts them in the context of the template renderer so that they can be accessed         * as normal parameters from within the template		 *		 * @return Returns a rendered template         */        function render()        {			parent::render();						// now, load the plugin's own template        	$template = $this->_templateService->PluginTemplate( $this->_pluginId, $this->_templateName );            // assign all the values            $template->assign( $this->_params->getAsArray());			            // and return the results            print $template->fetch();        }    }?>

⌨️ 快捷键说明

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