📄 chooseblogtemplateaction.class.php
字号:
<?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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -