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

From: Date: Thu, 12 Nov 2009 18:01:40 +0000
Subject: svn: /web/doc-editor/trunk/php/ class.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1177@lists.php.net to get a copy of this message
yannick Thu, 12 Nov 2009 18:01:40 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290621 Log: Remove getNbFilesTranslated's method from class.php. This method is present in TranslationStatistic.php as getTransFileCount'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:01:21 UTC (rev 290620) +++ web/doc-editor/trunk/php/class.php 2009-11-12 18:01:40 UTC (rev 290621) @@ -275,30 +275,6 @@ } /** - * Get number of translated files. - * - * @return Number of translated files. - */ - function getNbFilesTranslated() { - - $sql = 'SELECT - COUNT(name) AS total, - SUM(size) AS total_size - FROM - files - WHERE - lang="' . $this->cvsLang . '" - AND - revision = en_revision - '; - - $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 statistic about critical files witch need to be updated. * * @return An associated array (total=>nb files, total_size=>size of this files).

« previous php.doc.web (#1177) next »