[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/summary/controller/ -> registrationcontroller.class.php (source)

   1  <?php
   2  
   3      lt_include( PLOG_CLASS_PATH."class/controller/sequentialcontroller.class.php" );
   4      lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
   5      
   6      /**

   7       * \ingroup Controller

   8       *

   9       * Controller for the registration process. It doesn't really do much, other than

  10       * setting the array with the sequence with the action classes and telling the resource

  11       * loader of the controller in which folder it can find the classes.

  12       *

  13       * @author The LifeType Project

  14       * @see SequentialController

  15       */    
  16      class RegistrationController extends SequentialController
  17      {
  18          /**

  19           * Constructor of the class.

  20           */
  21  		function RegistrationController()
  22          {
  23              $config =& Config::getConfig();
  24              
  25              if( $config->getValue( "summary_show_agreement", true )) {            
  26                  $this->SequentialController( Array (
  27                      "doReadAgreement",
  28                      "doUserRegister",
  29                      "doUserCreation",
  30                      "doBlogRegistration",
  31                      "doFinishRegister"
  32                  ));
  33              }
  34              else {
  35                  $this->SequentialController( Array (
  36                      "doUserRegister",
  37                      "doUserCreation",
  38                      "doBlogRegistration",
  39                      "doFinishRegister"
  40                  ));                
  41              }
  42              
  43              $this->setActionFolderPath( PLOG_CLASS_PATH."class/summary/action/" );            
  44          }    
  45      }    
  46  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics