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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 12 Nov 2009 18:05:36 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=290626

Log:
Remove getStatsNoTag's method from class.php. This method is present in TranslationStatistic.php as getNoTagFileCount's method

Changed paths:
    U   web/doc-editor/trunk/php/class.php

Modified: web/doc-editor/trunk/php/class.php
===================================================================
--- web/doc-editor/trunk/php/class.php	2009-11-12 18:04:10 UTC (rev 290625)
+++ web/doc-editor/trunk/php/class.php	2009-11-12 18:05:36 UTC (rev 290626)
@@ -275,40 +275,6 @@
     }

     /**
-     * Get statistic about files witch haven't revcheck's tags.
-     *
-     * @return An associated array (total=>nb files, size=>size of this files).
-     */
-    function getStatsNoTag()
-    {
-        $sql = sprintf('SELECT
-                COUNT(a.name) as total,
-                sum(b.size) as size
-            FROM
-                `files` a
-            LEFT JOIN
-                `files` b
-            ON
-                a.path = b.path
-            AND
-                a.name = b.name
-            WHERE
-                a.lang="%s"
-            AND
-                b.lang="en"
-            AND
-                a.revision is NULL
-            AND
-                a.size is not NULL', $this->cvsLang);
-
-        $result = $this->db->query($sql) or die('Error: '.$this->db->error.'|'.$s);
-
-        $r = $result->fetch_array();
-        $result = array($r['total'], $r['size']);
-        return $result;
-    }
-
-    /**
      * Get the content of a file.
      *
      * @param $FilePath The path of the file.
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.