svn: /web/doc-editor/trunk/php/ ToolsCheckEntities.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
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.'"');
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.