svn: /web/doc-editor/trunk/php/ ToolsCheckEntities.php
| From: | Yannick Torres | Date: | Thu, 25 Feb 2010 06:06:23 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ ToolsCheckEntities.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1548@lists.php.net to get a copy of this message | ||
yannick Thu, 25 Feb 2010 06:06:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295493
Log:
Remove only entites related of the current project before start a new check
Changed paths:
U web/doc-editor/trunk/php/ToolsCheckEntities.php
Modified: web/doc-editor/trunk/php/ToolsCheckEntities.php
===================================================================
--- web/doc-editor/trunk/php/ToolsCheckEntities.php 2010-02-25 03:42:48 UTC (rev 295492)
+++ web/doc-editor/trunk/php/ToolsCheckEntities.php 2010-02-25 06:06:23 UTC (rev 295493)
@@ -102,7 +102,9 @@
*/
private function cleanUpDatabase()
{
- DBConnection::getInstance()->query("TRUNCATE TABLE
checkEntities");
+ $project = ProjectManager::getInstance()->project;
+
+ DBConnection::getInstance()->query('DELETE FROM checkEntities WHERE
project="'.$project.'"');
}