SQLStatementExtractor Class Reference

List of all members.

Public Member Functions

Static Public Member Functions

Static Protected Member Functions

Static Protected Attributes


Member Function Documentation

array SQLStatementExtractor::extractFile ( $filename ) [static]

 

Get SQL statements from file.

Parameters
string $filename Path to file to read.

Returns array SQL statements

array SQLStatementExtractor::extract ( $buffer ) [static]

 

Extract statements from string.

Parameters
string $txt

Returns array

string SQLStatementExtractor::extractStatements ( $lines ) [static, protected]

 

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

array SQLStatementExtractor::getLines ( $buffer ) [static, protected]

 

Convert string buffer into array of lines.

Parameters
string $filename

Returns array string[] lines of file.


Member Data Documentation

SQLStatementExtractor::$delimiter = ';' [static, protected]

 


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


Copyright © 2004 Hans Lellelid  
Creole[php5] CVS