2 * Created on 14-Jul-2003
4 * To change this generated comment go to
5 * Window>Preferences>Java>Code Generation>Code and Comments
7 package net.sourceforge.phpdt.sql.utils;
9 import java.util.Vector;
11 import net.sourceforge.phpdt.sql.IConstants;
13 public class PHPStringThing {
14 private String query = null;
15 public PHPStringThing() {
17 public PHPStringThing(String query) {
21 public Vector toPHP() {
25 static public Vector toPHP(String query) {
26 Vector buffer = new Vector();
27 buffer.add(IConstants.PHPFILEHEADER);
28 buffer.add(IConstants.PHPDBCONNHEADER);
29 buffer.add(IConstants.PHPDBRESULTHEADER.replaceAll("%%QUERY%%", query));
30 buffer.add(IConstants.PHPDBCLOSEHEADER);