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

📄 adminarticlecategorieslistview.class.php

📁 一个用PHP编写的
💻 PHP
字号:
<?php	lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );    lt_include( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );	lt_include( PLOG_CLASS_PATH."class/data/pager/pager.class.php" );	    /**     * \ingroup View     * @private     *     * Action that shows a form to add a link for the blogroll feature     */    class AdminArticleCategoriesListView extends AdminTemplatedView 	{		var $_page;		var $_searchTerms;    	/**         * Constructor. If nothing else, it also has to call the constructor of the parent         * class, BlogAction with the same parameters         */        function AdminArticleCategoriesListView( $blogInfo, $page = 1 )        {        	$this->AdminTemplatedView( $blogInfo, "editarticlecategories" );			        }        /**         * Carries out the specified action         */        function render()        {			// prepare a few parameters            $categories = new ArticleCategories();			$blogSettings = $this->_blogInfo->getSettings();			$categoriesOrder = $blogSettings->getValue( "categories_order" );						// get the page too			$this->_page = $this->getCurrentPageFromRequest();			$this->_searchTerms = HttpVars::getRequestValue( "searchTerms" );						// retrieve the categories in an paged fashion			$totalCategories = $categories->getBlogNumCategories( $this->_blogInfo->getId(), true, $this->_searchTerms );            $blogCategories = $categories->getBlogCategories( $this->_blogInfo->getId(), 			                                                  false, 															  $categoriesOrder,															  $this->_searchTerms,															  $this->_page,															  DEFAULT_ITEMS_PER_PAGE );			if( !$blogCategories ) {				$blogCategories = Array();			}						// throw the even in case somebody's waiting for it!			$this->notifyEvent( EVENT_CATEGORIES_LOADED, Array( "categories" => &$blogCategories ));            $this->setValue( "categories", $blogCategories );						// the pager that will be used			$pager = new Pager( "?op=editArticleCategories&amp;searchTerms=".$this->_searchTerms."&amp;page=",			                    $this->_page,								$totalCategories,								DEFAULT_ITEMS_PER_PAGE );			$this->setValue( "pager", $pager );			$this->setValue( "searchTerms", $this->_searchTerms );						parent::render();        }    }?>

⌨️ 快捷键说明

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