* @copyright 2010-2014 Justin Swanhart and André Rothe * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) * @version SVN: $Id: DeleteBuilder.php 830 2013-12-18 09:35:42Z phosco@gmx.de $ * */ /** * This class implements the builder for the [DELETE] part. You can overwrite * all functions to achieve another handling. * * @author André Rothe * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) * */ class DeleteBuilder { public function build($parsed) { $sql = "DELETE"; foreach ($parsed['TABLES'] as $k => $v) { $sql .= $v . ","; } return substr($sql, 0, -1); } } ?>