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:10:33 +0000

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

Log:
Remove translatorGetOld's method from class.php. This method is present in TranslatorStatistic.php as getOldFileCount'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:09:58 UTC (rev 290629)
+++ web/doc-editor/trunk/php/class.php	2009-11-12 18:10:33 UTC (rev 290630)
@@ -90,43 +90,6 @@
     }

     /**
-     * Get number of old files per translators.
-     *
-     * @return An associated array (key=>translator's nick, value=>nb files).
-     */
-    function translatorGetOld()
-    {
-        $sql = sprintf('SELECT
-                COUNT(`name`) AS total,
-                `maintainer`
-            FROM
-                `files`
-            WHERE
-                `lang`="%s"
-            AND
-                `en_revision` != `revision`
-            AND
-                `en_revision` - `revision` < 10
-            AND
-                `size_diff` < 3
-            AND
-                `mdate_diff` > -30
-            AND
-                `size` is not NULL
-            GROUP BY
-                `maintainer`
-            ORDER BY
-                `maintainer`', $this->cvsLang);
-
-        $result = $this->db->query($sql) or die('Error: '.$this->db->error.'|'.$s);
-        $tmp = array();
-        while ($r = $result->fetch_array()) {
-            $tmp[$r['maintainer']] = $r['total'];
-        }
-        return $tmp;
-    }
-
-    /**
      * Get number of critical files per translators.
      *
      * @return An associated array (key=>translator's nick, value=>nb files).
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.