[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/setup/steps/ -> ezstep_final.php (source)

   1  <?php
   2  //
   3  // Definition of eZStepFinal class
   4  //
   5  // Created on: <13-Aug-2003 14:09:47 kk>
   6  //
   7  // SOFTWARE NAME: eZ publish
   8  // SOFTWARE RELEASE: 3.9.0
   9  // BUILD VERSION: 17785
  10  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
  11  // SOFTWARE LICENSE: GNU General Public License v2.0
  12  // NOTICE: >
  13  //   This program is free software; you can redistribute it and/or
  14  //   modify it under the terms of version 2.0  of the GNU General
  15  //   Public License as published by the Free Software Foundation.
  16  //
  17  //   This program is distributed in the hope that it will be useful,
  18  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  19  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20  //   GNU General Public License for more details.
  21  //
  22  //   You should have received a copy of version 2.0 of the GNU General
  23  //   Public License along with this program; if not, write to the Free
  24  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25  //   MA 02110-1301, USA.
  26  //
  27  //
  28  
  29  /*! \file ezstep_final.php
  30  */
  31  include_once ( 'kernel/setup/steps/ezstep_installer.php');
  32  include_once ( "kernel/setup/ezsetuptests.php" );
  33  include_once ( "kernel/common/i18n.php" );
  34  
  35  /*!
  36    \class eZStepFinal ezstep_final.php
  37    \brief The class eZStepFinal does
  38  
  39  */
  40  
  41  class eZStepFinal extends eZStepInstaller
  42  {
  43      /*!
  44       Constructor
  45      */
  46      function eZStepFinal( &$tpl, &$http, &$ini, &$persistenceList )
  47      {
  48          $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList,
  49                                  'final', 'Final' );
  50      }
  51  
  52      /*!
  53       \reimp
  54      */
  55      function processPostData()
  56      {
  57          return true; // Last step, but always proceede
  58      }
  59  
  60      /*!
  61       \reimp
  62       */
  63      function init()
  64      {
  65          return false; // Always show
  66      }
  67  
  68      /*!
  69       \reimp
  70      */
  71      function &display()
  72      {
  73          $siteType = $this->chosenSiteType();
  74  
  75          $siteaccessURLs = $this->siteaccessURLs();
  76  
  77          $siteType['url'] = $siteaccessURLs['url'];
  78          $siteType['admin_url'] = $siteaccessURLs['admin_url'];
  79  
  80          $customText = isset( $this->PersistenceList['final_text'] ) ? $this->PersistenceList['final_text'] : '';
  81  
  82          $this->Tpl->setVariable( 'site_type', $siteType );
  83  
  84          $this->Tpl->setVariable( 'custom_text', $customText );
  85  
  86          $this->Tpl->setVariable( 'setup_previous_step', 'Final' );
  87          $this->Tpl->setVariable( 'setup_next_step', 'Final' );
  88  
  89          $result = array();
  90          // Display template
  91          $result['content'] = $this->Tpl->fetch( 'design:setup/init/final.tpl' );
  92          $result['path'] = array( array( 'text' => ezi18n( 'design/standard/setup/init',
  93                                                            'Finished' ),
  94                                          'url' => false ) );
  95          return $result;
  96  
  97      }
  98  }
  99  
 100  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7