[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 * The contents of this file are subject to the SugarCRM Public License Version 1.1.2 4 * ("License"); You may not use this file except in compliance with the 5 * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL 6 * Software distributed under the License is distributed on an "AS IS" basis, 7 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 8 * the specific language governing rights and limitations under the License. 9 * The Original Code is: SugarCRM Open Source 10 * The Initial Developer of the Original Code is SugarCRM, Inc. 11 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.; 12 * All Rights Reserved. 13 * Contributor(s): ______________________________________. 14 ********************************************************************************/ 15 /********************************************************************************* 16 * $Header: /advent/projects/wesat/vtiger_crm/sugarcrm/database/DatabaseConnection.php,v 1.3 2005/01/20 09:35:16 jack Exp $ 17 * Description: Creates the runtime database connection. 18 ********************************************************************************/ 19 20 class DatabaseConnection { 21 22 23 function println($msg) 24 { 25 require_once ('include/logging.php'); 26 $log1 =& LoggerManager::getLogger('GS'); 27 if(is_array($msg)) 28 { 29 $log1->fatal("PearDatabse ->".print_r($msg,true)); 30 } 31 else 32 { 33 $log1->info("PearDatabase ->".$msg); 34 } 35 return $msg; 36 } 37 38 } 39 40 $database = new DatabaseConnection; 41 $database->println("DatabaseConnection - Illegal Access"); 42 43 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |