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

From: Date: Thu, 12 Nov 2009 18:03:29 +0000
Subject: svn: /web/doc-editor/trunk/php/ class.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1180@lists.php.net to get a copy of this message
yannick Thu, 12 Nov 2009 18:03:29 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290624 Log: Remove getStatsNoTrans's method from class.php. This method is present in TranslationStatistic.php as getNoTransFileCount'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:02:54 UTC (rev 290623) +++ web/doc-editor/trunk/php/class.php 2009-11-12 18:03:29 UTC (rev 290624) @@ -275,42 +275,6 @@ } /** - * Get statistic about files witch need to be translated. - * - * @return An associated array (total=>nb files, size=>size of this files). - */ - function getStatsNoTrans() - { - $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 OR a.revision = 0) - AND - a.size is NULL', $this->cvsLang); - - $result = $this->db->query($sql) or die('Error: '.$this->db->error.'|'.$s); - if ($result->num_rows) { - $r = $result->fetch_array(); - return array($r['total'], $r['size']); - } else { - return array(0,0); - } - } - - /** * Get statistic about missed files witch need to be added to LANG tree. * * @return An array of missed files (size=>size of the file, file=>name of the file).

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