[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of eZStepSystemFinetune class 4 // 5 // Created on: <08-Aug-2003 16:46:32 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_system_check.php 30 */ 31 include_once ( "kernel/setup/ezsetuptests.php" ); 32 include_once ( 'kernel/setup/steps/ezstep_installer.php' ); 33 include_once ( "kernel/common/i18n.php" ); 34 35 /*! 36 \class eZStepSystemCheck ezstep_system_check.php 37 \brief The class eZStepSystemCheck does 38 39 */ 40 41 class eZStepSystemFinetune extends eZStepInstaller 42 { 43 /*! 44 Constructor 45 */ 46 function eZStepSystemFinetune( &$tpl, &$http, &$ini, &$persistenceList ) 47 { 48 $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, 49 'system_finetune', 'System finetune' ); 50 } 51 52 /*! 53 */ 54 function processPostData() 55 { 56 if ( $this->Http->hasPostVariable( 'eZSetup_finetune_button' ) ) 57 { 58 $this->PersistenceList['run_finetune'] = true; 59 return false; 60 } 61 $this->PersistenceList['run_finetune'] = false; 62 return true; 63 } 64 65 /*! 66 */ 67 function init() 68 { 69 if ( !isset( $this->PersistenceList['run_finetune'] ) ) 70 $this->PersistenceList['run_finetune'] = false; 71 if ( $this->PersistenceList['run_finetune'] ) 72 { 73 $criticalTests = eZSetupCriticalTests(); 74 $optionalTests = eZSetupOptionalTests(); 75 $testTable = eZSetupTestTable(); 76 77 $arguments = array(); 78 $runResult = eZSetupRunTests( $criticalTests, $arguments, 'eZSetup:init:system_check', $this->PersistenceList ); 79 $optionalRunResult = eZSetupRunTests( $optionalTests, $arguments, 'eZSetup:init:system_check', $this->PersistenceList ); 80 $this->Results = $runResult['results']; 81 $this->Result = $runResult['result']; 82 $this->OptionalResults = $optionalRunResult['results']; 83 $this->OptionalResult = $optionalRunResult['result']; 84 $persistenceData = $runResult['persistence_list']; 85 86 $testsRun = array(); 87 foreach ( $this->Results as $testResultItem ) 88 { 89 $testsRun[$testResultItem[1]] = $testResultItem[0]; 90 } 91 92 eZSetupMergePersistenceList( $this->PersistenceList, $persistenceData ); 93 94 $this->PersistenceList['tests_run'] = $testsRun; 95 $this->PersistenceList['optional_tests_run'] = $testsRun; 96 97 return ( $this->OptionalResult == EZ_SETUP_TEST_SUCCESS ); 98 } 99 return true; 100 } 101 102 /*! 103 */ 104 function &display() 105 { 106 $this->Tpl->setVariable( 'test', array( 'result' => $this->OptionalResult, 107 'results' => $this->OptionalResults ) ); 108 $this->Tpl->setVariable( 'persistence_data', $this->PersistenceList ); 109 $result = array(); 110 // Display template 111 $result['content'] = $this->Tpl->fetch( "design:setup/init/system_finetune.tpl" ); 112 $result['path'] = array( array( 'text' => ezi18n( 'design/standard/setup/init', 113 'System finetuning' ), 114 'url' => false ) ); 115 return $result; 116 } 117 118 /*! 119 */ 120 function showMessage() 121 { 122 return false; 123 } 124 125 // Variables for storing results from tests 126 var $Result = null; 127 var $Results = null; 128 } 129 130 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |