Source for file html.php

Documentation is available at html.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Installation
  4.  * @subpackage  View
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * The Installation Install View
  14.  *
  15.  * @package     Joomla.Installation
  16.  * @subpackage  View
  17.  * @since       3.1
  18.  */
  19. {
  20.     /**
  21.      * Redefine the model so the correct type hinting is available.
  22.      *
  23.      * @var     InstallationModelSetup 
  24.      * @since   3.1
  25.      */
  26.     protected $model;
  27.  
  28.     /**
  29.      * The session options
  30.      *
  31.      * @var    array 
  32.      * @since  3.1
  33.      */
  34.     protected $options;
  35.  
  36.     /**
  37.      * The installation tasks to perform
  38.      *
  39.      * @var    array 
  40.      * @since  3.1
  41.      */
  42.     protected $tasks = array();
  43.  
  44.     /**
  45.      * Method to render the view.
  46.      *
  47.      * @return  string  The rendered view.
  48.      *
  49.      * @since   3.1
  50.      */
  51.     public function render()
  52.     {
  53.         $this->options = $this->model->getOptions();
  54.  
  55.         /*
  56.          * Prepare the tasks array
  57.          * Note: The first character of the task *MUST* be capitalised or the application will not find the task
  58.          */
  59.         $this->tasks[($this->options['db_old'== 'remove''Database_remove' 'Database_backup';
  60.         $this->tasks['Database';
  61.  
  62.         if ($this->options['sample_file'])
  63.         {
  64.             $this->tasks['Sample';
  65.         }
  66.  
  67.         $this->tasks['Config';
  68.  
  69.         if ($this->options['summary_email'])
  70.         {
  71.             $this->tasks['Email';
  72.         }
  73.  
  74.         return parent::render();
  75.     }
  76. }

Documentation generated on Tue, 19 Nov 2013 15:04:49 +0100 by phpDocumentor 1.4.3