[ 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_welcome.php (source)

   1  <?php
   2  //
   3  // Definition of EZStepWelcome class
   4  //
   5  // Created on: <08-Aug-2003 15:00:02 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_welcome.php
  30  */
  31  
  32  include_once ( 'kernel/setup/steps/ezstep_installer.php');
  33  include_once ( "kernel/common/i18n.php" );
  34  
  35  /*!
  36    \class EZStepWelcome ezstep_welcome.php
  37    \brief The class EZStepWelcome does
  38  
  39  */
  40  class eZStepWelcome extends eZStepInstaller
  41  {
  42  
  43      /*!
  44       Constructor
  45       \reimp
  46      */
  47      function eZStepWelcome( &$tpl, &$http, &$ini, &$persistenceList )
  48      {
  49          $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList,
  50                                  'welcome', 'Welcome' );
  51      }
  52  
  53      /*!
  54       \reimp
  55       */
  56      function processPostData()
  57      {
  58          if ( $this->Http->hasPostVariable( 'eZSetup_finetune_button' ) )
  59          {
  60              $this->PersistenceList['run_finetune'] = true;
  61          }
  62          return true;
  63      }
  64  
  65      /*!
  66       \reimp
  67       */
  68      function init()
  69      {
  70          $optionalTests = eZSetupOptionalTests();
  71          $testTable = eZSetupTestTable();
  72  
  73          $arguments = array();
  74          $optionalRunResult = eZSetupRunTests( $optionalTests, $arguments, 'eZSetup:init:system_check', $this->PersistenceList );
  75          $this->OptionalResults = $optionalRunResult['results'];
  76          $this->OptionalResult = $optionalRunResult['result'];
  77  
  78          $testsRun = array();
  79          if ( isset( $this->Results ) && is_array( $this->Results ) )
  80          {
  81              foreach ( $this->Results as $testResultItem )
  82              {
  83                  $testsRun[$testResultItem[1]] = $testResultItem[0];
  84              }
  85          }
  86  
  87          $this->PersistenceList['tests_run'] = $testsRun;
  88          $this->PersistenceList['optional_tests_run'] = $testsRun;
  89  
  90          return false; // Always show welcome message
  91      }
  92  
  93      /*!
  94       \reimp
  95      */
  96      function &display()
  97      {
  98          $result = array();
  99          $this->Tpl->setVariable( 'optional_test', array( 'result' => $this->OptionalResult,
 100                                                           'results' => $this->OptionalResults ) );
 101          $result['content'] = $this->Tpl->fetch( 'design:setup/init/welcome.tpl' );
 102          $result['path'] = array( array( 'text' => ezi18n( 'design/standard/setup/init',
 103                                                            'Welcome to eZ publish' ),
 104                                      'url' => false ) );
 105  
 106          return $result;
 107      }
 108  
 109      /*!
 110       \reimp
 111      */
 112      function showMessage()
 113      {
 114          return true;
 115      }
 116  
 117  }
 118  
 119  ?>


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