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

📄 admincustomfieldslistview.class.php

📁 一个用PHP编写的
💻 PHP
字号:
<?php	lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );	lt_include( PLOG_CLASS_PATH."class/dao/customfields/customfields.class.php" );	lt_include( PLOG_CLASS_PATH."class/data/pager/pager.class.php" );    /**     * \ingroup View     * @private     *		 * displays the list of custom fields that have been added	 * to the blog, or an empty list of none has been added!	 */	class AdminCustomFieldsListView extends AdminTemplatedView	{		var $_page;			function AdminCustomFieldsListView( $blogInfo )		{			$this->AdminTemplatedView( $blogInfo, "customfields" );			// get the current page from the request			$this->_page = $this->getCurrentPageFromRequest();		}				/**		 * load the fields and pass them to the view		 */		function render()		{			// load the custom fields that have been defined so far			$customFields = new CustomFields();			$blogFields = $customFields->getBlogCustomFields( $this->_blogInfo->getId(), true, $this->_page, DEFAULT_ITEMS_PER_PAGE );			$this->notifyEvent( EVENT_CUSTOM_FIELDS_LOADED, Array( "fields" => &$blogFields ));			// and the total number of them too			$numBlogFields = $customFields->getNumBlogCustomFields( $this->_blogInfo->getId());			// create the pager			$pager = new Pager( "?op=blogCustomFields&amp;page=",					    $this->_page,					    $numBlogFields,					    DEFAULT_ITEMS_PER_PAGE );						// and show them			$this->setValue( "fields", $blogFields );			$this->setValue( "pager", $pager );						return parent::render();		}	}?>

⌨️ 快捷键说明

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