4ce08bf58f
Added "Traversable" implementation to access the parsed MySQL statements with "foreach". Setted SVN keywords. Fixed DocBlocks.
33 Zeilen
758 B
PHP
33 Zeilen
758 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$
|
|
*/
|
|
|
|
require_once "Msd/Sql/Parser/Interface.php";
|
|
/**
|
|
* Class to parse MySQL DROP statements.
|
|
* This enables you to analyze and modify MySQL queries, which the user has entered.
|
|
*
|
|
* @package MySQLDumper
|
|
* @subpackage SQL-Browser
|
|
*/
|
|
class Msd_Sql_Parser_Statement_Drop implements Msd_Sql_Parser_Interface
|
|
{
|
|
/**
|
|
* Parse the statement.
|
|
*
|
|
* @param string $statement MySQL DROP statement.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function parse($statement)
|
|
{
|
|
echo "$statement\n";
|
|
}
|
|
}
|