[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/creole/util/sql/ -> SQLStatementExtractor.php (sommaire)

(pas de description)

Poids: 164 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

SQLStatementExtractor:: (7 méthodes):
  extractFile()
  extract()
  extractStatements()
  startsWith()
  endsWith()
  substring()
  getLines()


Classe: SQLStatementExtractor  - X-Ref

Static class for extracting SQL statements from a string or file.

extractFile($filename)   X-Ref
Get SQL statements from file.

param: string $filename Path to file to read.
return: array SQL statements

extract($buffer)   X-Ref
Extract statements from string.

param: string $txt
return: array

extractStatements($lines)   X-Ref
Extract SQL statements from array of lines.

param: array $lines Lines of the read-in file.
return: string

startsWith($check, $string)   X-Ref
Tests if a string starts with a given string.

param: string $check The substring to check.
param: string $string The string to check in (haystack).
return: boolean True if $string starts with $check, or they are equal, or $check is empty.

endsWith($check, $string)   X-Ref
Tests if a string ends with a given string.

param: string $check The substring to check.
param: string $string The string to check in (haystack).
return: boolean True if $string ends with $check, or they are equal, or $check is empty.

substring($string, $startpos, $endpos = -1)   X-Ref
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


getLines($buffer)   X-Ref
Convert string buffer into array of lines.

param: string $filename
return: array string[] lines of file.



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7