SQLStatementExtractor Class Reference

List of all members.

Public Member Functions

Public Attributes


Member Function Documentation

SQLStatementExtractor::extractFile ( $  filename)

 

Get SQL statements from file.

Parameters:
string $filename Path to file to read.

Returns array SQL statements

& SQLStatementExtractor::extract ( &$  buffer)

 

Extract statements from string.

Parameters:
string $txt

Returns array

& SQLStatementExtractor::extractStatements ( &$  lines)

 

Extract SQL statements from array of lines.

Parameters:
array $lines Lines of the read-in file.

Returns string

SQLStatementExtractor::startsWith ( $  check,  $  string )

 

tests if a string starts with a given string

SQLStatementExtractor::endsWith ( $  check,  $  string )

 

tests if a string ends with a given string

SQLStatementExtractor::substring ( $  string,  $  startpos,  $  endpos = -1 )

 

a natural way of getting a subtring, php's circular string buffer and strange return values suck if you want to program strict as of C or friends

& SQLStatementExtractor::getLines ( $  buffer)

 

Convert string buffer into array of lines.

Parameters:
string $filename

Returns array string[] lines of file.

& SQLStatementExtractor::getInstance ()

 


Member Data Documentation

SQLStatementExtractor::$delimiter = ';'

 


This file is part of the Creole[php4] library.


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS