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:00:38 +0000

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

Log:
Remove getNbFiles's method from class.php. This method is present in TranslationStatistic.php as getFileCount'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:00:10 UTC (rev 290618)
+++ web/doc-editor/trunk/php/class.php	2009-11-12 18:00:38 UTC (rev 290619)
@@ -275,27 +275,6 @@
     }

     /**
-     * Get number/size of all files.
-     *
-     * @return An indexed array.
-     */
-    function getNbFiles() {
-        $sql = sprintf('SELECT
-                    COUNT(*) AS total,
-                    SUM(`size`) AS total_size
-                FROM
-                    `files`
-                WHERE
-                    `lang` = "%s"
-            ', $this->cvsLang);
-
-        $res = $this->db->query($sql) or die('Error: '.$this->db->error.'|'.$s);
-        $r = $res->fetch_array();
-        $result = array($r['total'], $r['total_size']);
-        return $result;
-    }
-
-    /**
      * Get number of translated files.
      *
      * @return Number of translated 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.