1
0
Fork 0

Added statement parser for comments.

Added "Traversable" implementation to access the parsed MySQL statements with "foreach".
Setted SVN keywords.
Fixed DocBlocks.
Dieser Commit ist enthalten in:
D4rk4ng3l 2011-06-19 13:47:44 +00:00
Ursprung 50aadc32c5
Commit 4ce08bf58f
9 geänderte Dateien mit 145 neuen und 30 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,33 @@
<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage SQL-Browser
* @version SVN: $Rev$
* @author $Author$
*/
require_once "Msd/Sql/Parser/Interface.php";
/**
* Class to parse MySQL comments.
* This enables you to analyze and modify MySQL queries, which the user has entered.
*
* @package MySQLDumper
* @subpackage SQL-Browser
*/
class Msd_Sql_Parser_Statement_Comment implements Msd_Sql_Parser_Interface
{
/**
* Parse the statement.
*
* @param string $statement MySQL comment.
*
* @return void
*/
public function parse($statement)
{
echo "Comment: $statement\n";
}
}