[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of eZInstallScriptPackageHandler class 4 // 5 // Created on: <16-Feb-2006 11:15:42 ks> 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 ezinstallscripterpackagehandler.php 30 */ 31 32 /*! 33 \class eZInstallScriptPackageHandler ezinstallscriptpackagehandler.php 34 \brief Empty handler to support package custom install scripts. 35 36 */ 37 38 include_once ( 'kernel/classes/ezpackagehandler.php' ); 39 40 41 class eZInstallScriptPackageHandler extends eZPackageHandler 42 { 43 /*! 44 Constructor 45 */ 46 function eZInstallScriptPackageHandler() 47 { 48 $this->eZPackageHandler( 'ezinstallscript', 49 array( 'extract-install-content' => false ) ); 50 } 51 52 /*! 53 \reimp 54 Returns an explanation for the extension install item. 55 */ 56 function explainInstallItem( &$package, $installItem ) 57 { 58 $itemPath = $package->path() . '/' . $installItem['sub-directory']; 59 $xmlPath = $itemPath . '/' . $installItem['filename'] . '.xml'; 60 61 $dom =& $package->fetchDOMFromFile( $xmlPath ); 62 if ( !$dom ) 63 return false; 64 65 $mainNode =& $dom->root(); 66 67 $description = $mainNode->getAttribute( 'description' ); 68 if ( !$description ) 69 return false; 70 71 return array( 'description' => ezi18n( 'kernel/package', 'Install script: %description', false, 72 array( '%description' => $description ) ) ); 73 } 74 75 /*! 76 \reimp 77 Do nothing 78 */ 79 function uninstall( &$package, $installType, $parameters, 80 $name, $os, $filename, $subdirectory, 81 &$content, &$installParameters, 82 &$installData ) 83 { 84 return true; 85 } 86 87 /*! 88 \reimp 89 Do nothing 90 */ 91 function install( &$package, $installType, $parameters, 92 $name, $os, $filename, $subdirectory, 93 &$content, &$installParameters, 94 &$installData ) 95 { 96 return true; 97 } 98 } 99 100 ?>
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 |