admineditlinkview.class.php

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

PHP
36
字号
<?php	lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );    lt_include( PLOG_CLASS_PATH."class/dao/mylinkscategories.class.php" );	    /**     * \ingroup View     * @private     */		class AdminEditLinkView extends AdminTemplatedView	{				function AdminEditLinkView( $blogInfo, $params = Array())		{			$this->AdminTemplatedView( $blogInfo, "editlink" );		}		        /**         * Carries out the specified action         */        function render()        {            // get all the link categories but we have to respect the order that the user asked			$blogSettings = $this->_blogInfo->getSettings();			$order = $blogSettings->getValue( 'link_categories_order', MYLINKS_CATEGORIES_NO_ORDER );			            $linkCategories = new MyLinksCategories();            $blogLinkCategories = $linkCategories->getMyLinksCategories( $this->_blogInfo->getId(), $order );			$this->notifyEvent( EVENT_LINK_CATEGORIES_LOADED, Array( "linkcategories" => &$blogLinkCategories ));			// put the data in the view            $this->setValue( "linkcategories", $blogLinkCategories );			parent::render();        }	}?>

⌨️ 快捷键说明

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