registrationcontroller.class.php

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

PHP
46
字号
<?php

	lt_include( PLOG_CLASS_PATH."class/controller/sequentialcontroller.class.php" );
	lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
	
	/**
	 * \ingroup Controller
	 *
	 * Controller for the registration process. It doesn't really do much, other than
	 * setting the array with the sequence with the action classes and telling the resource
	 * loader of the controller in which folder it can find the classes.
	 *
	 * @author The LifeType Project
	 * @see SequentialController
	 */	
	class RegistrationController extends SequentialController
	{
		/**
		 * Constructor of the class.
		 */
		function RegistrationController()
		{
			$config =& Config::getConfig();
			
			if( $config->getValue( "summary_show_agreement", true )) {			
				$this->SequentialController( Array (
					"doReadAgreement",
					"doUserRegister",
					"doUserCreation",
					"doBlogRegistration",
					"doFinishRegister"
				));
			}
			else {
				$this->SequentialController( Array (
					"doUserRegister",
					"doUserCreation",
					"doBlogRegistration",
					"doFinishRegister"
				));				
			}
			
			$this->setActionFolderPath( PLOG_CLASS_PATH."class/summary/action/" );			
		}	
	}	
?>

⌨️ 快捷键说明

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