e7bc0d0b0a
Removed require_once in parser classes Added debug possibility to parser
33 Zeilen
737 B
PHP
33 Zeilen
737 B
PHP
<?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$
|
|
*/
|
|
|
|
/**
|
|
* Class to parse MySQL comments.
|
|
* This enables you to analyze and modify MySQL queries, which the user has entered.
|
|
*
|
|
* @package MySQLDumper
|
|
* @subpackage SQL-Parser
|
|
*/
|
|
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";
|
|
return $statement;
|
|
}
|
|
}
|