![]() |
change the empty function from the old format to the new format
I have about 300 files which has the function getDBBackend().
How to write a program to change the empty function from the old format to the new format? Old empty function format are either: function getDBBackend() { // Not available } // getDBBackend or: function getDBBackend() { } // getDBBackend New empty function format is: function getDBBackend() { // DB backend not applicable, use test backend getTestObject(); } // getDBBackend If the function is not empty, then it will not be changed: function getDBBackend() { $msg = db_start_dget(MIO_DGET_DATA); //... } |
| All times are GMT -5. The time now is 11:29 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC