chooseblogtemplateaction.class.php

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

PHP
32
字号
<?php	lt_include( PLOG_CLASS_PATH."class/summary/action/registeraction.class.php" );    lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );    lt_include( PLOG_CLASS_PATH."class/dao/blogs.class.php" );    lt_include( PLOG_CLASS_PATH."class/summary/view/summaryview.class.php" );	/**	 * shows a form where users can choose a new blog template	 * for their blog, to start with	 */    class ChooseBlogTemplateAction extends RegisterAction 	{        function ChooseBlogTemplateAction( $actionInfo, $request )        {        	$this->RegisterAction( $actionInfo, $request );        	        	$this->registerFieldValidator( "templateId", new StringValidator());        	$this->setValidationErrorView( new BlogTemplateChooserView());        }		function perform()		{			// save data to the session	    	SessionManager::setSessionValue( "templateId", $this->_request->getValue( "templateId" ));							$this->setCommonData();		}    }?>

⌨️ 快捷键说明

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