[limb-svn] r5943 - 3.x/trunk/limb/dbal/src/dump
svn at limb-project.com
svn at limb-project.com
Wed Jun 6 10:53:29 MSD 2007
Author: serega
Date: 2007-06-06 10:53:29 +0400 (Wed, 06 Jun 2007)
New Revision: 5943
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5943
Modified:
3.x/trunk/limb/dbal/src/dump/lmbSQLDumpLoader.class.php
Log:
-- lmbSQLDumpLoader :: loadStatements($sql) added
Modified: 3.x/trunk/limb/dbal/src/dump/lmbSQLDumpLoader.class.php
===================================================================
--- 3.x/trunk/limb/dbal/src/dump/lmbSQLDumpLoader.class.php 2007-06-05 19:22:26 UTC (rev 5942)
+++ 3.x/trunk/limb/dbal/src/dump/lmbSQLDumpLoader.class.php 2007-06-06 06:53:29 UTC (rev 5943)
@@ -1,10 +1,10 @@
<?php
-/*
- * Limb PHP Framework
- *
- * @link http://limb-project.com
- * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com)
- * @license LGPL http://www.gnu.org/copyleft/lesser.html
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com)
+ * @license LGPL http://www.gnu.org/copyleft/lesser.html
*/
lmb_require('limb/dbal/src/lmbSimpleDb.class.php');
lmb_require('limb/fs/src/exception/lmbFileNotFoundException.class.php');
@@ -55,10 +55,15 @@
if(!file_exists($file_path))
throw new lmbFileNotFoundException($file_path);
- $this->statements = $this->_retrieveStatements(file_get_contents($file_path));
- $this->affected_tables = $this->_getAffectedTables($this->statements);
+ $this->loadStatements(file_get_contents($file_path));
}
+ function loadStatements($sql)
+ {
+ $this->statements = $this->_retrieveStatements($sql);
+ $this->affected_tables = $this->_getAffectedTables($this->statements);
+ }
+
protected function _getAffectedTables($stmts)
{
$affected_tables = array();
More information about the limb-svn
mailing list