[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // $Id$ 4 // 5 // Definition of eZNullDB class 6 // 7 // Created on: <12-Feb-2002 15:54:17 bf> 8 // 9 // SOFTWARE NAME: eZ publish 10 // SOFTWARE RELEASE: 3.9.0 11 // BUILD VERSION: 17785 12 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 13 // SOFTWARE LICENSE: GNU General Public License v2.0 14 // NOTICE: > 15 // This program is free software; you can redistribute it and/or 16 // modify it under the terms of version 2.0 of the GNU General 17 // Public License as published by the Free Software Foundation. 18 // 19 // This program is distributed in the hope that it will be useful, 20 // but WITHOUT ANY WARRANTY; without even the implied warranty of 21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 // GNU General Public License for more details. 23 // 24 // You should have received a copy of version 2.0 of the GNU General 25 // Public License along with this program; if not, write to the Free 26 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 27 // MA 02110-1301, USA. 28 // 29 // 30 31 /*! 32 \class eZNullDB eznulldb.php 33 \ingroup eZDB 34 \brief The eZNullDB class provides a interface which does nothing 35 36 This class is returned when a proper implementation could not be found. 37 */ 38 39 include_once ( 'lib/ezdb/classes/ezdbinterface.php' ); 40 41 class eZNullDB extends eZDBInterface 42 { 43 /*! 44 Does nothing. 45 */ 46 function eZNullDB( $parameters ) 47 { 48 $this->eZDBInterface( $parameters ); 49 } 50 51 /*! 52 Does nothing. 53 */ 54 function databaseName() 55 { 56 return 'null'; 57 } 58 59 /*! 60 Returns false. 61 */ 62 function query( $sql ) 63 { 64 return false; 65 } 66 67 /*! 68 Returns false. 69 */ 70 function arrayQuery( $sql, $params = array() ) 71 { 72 return false; 73 } 74 75 /*! 76 Does nothing. 77 */ 78 function lock( $table ) 79 { 80 } 81 82 /*! 83 Does nothing. 84 */ 85 function unlock() 86 { 87 } 88 89 /*! 90 Does nothing. 91 */ 92 function begin() 93 { 94 } 95 96 /*! 97 Does nothing. 98 */ 99 function commit() 100 { 101 } 102 103 /*! 104 Does nothing. 105 */ 106 function rollback() 107 { 108 } 109 110 /*! 111 Returns false. 112 */ 113 function lastSerialID( $table, $column ) 114 { 115 return false; 116 } 117 118 /*! 119 Returns $str. 120 */ 121 function escapeString( $str ) 122 { 123 return $str; 124 } 125 126 /*! 127 Does nothing. 128 */ 129 function close() 130 { 131 } 132 } 133 134 ?>
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 |