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

From: Date: Thu, 12 Nov 2009 18:11:07 +0000
Subject: svn: /web/doc-editor/trunk/php/ class.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1187@lists.php.net to get a copy of this message
yannick Thu, 12 Nov 2009 18:11:07 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290631 Log: Remove translatorGetCritical's method from class.php. This method is present in TranslatorStatistic.php as getCriticalFileCount'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:10:33 UTC (rev 290630) +++ web/doc-editor/trunk/php/class.php 2009-11-12 18:11:07 UTC (rev 290631) @@ -90,39 +90,6 @@ } /** - * Get number of critical files per translators. - * - * @return An associated array (key=>translator's nick, value=>nb files). - */ - function translatorGetCritical() - { - $sql = sprintf('SELECT - COUNT(name) AS total, - maintainer - FROM - files - WHERE - lang="%s" - AND - ( en_revision - revision >= 10 OR - ( en_revision != revision AND - ( size_diff >= 3 OR 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 the content of a file. * * @param $FilePath The path of the file.

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