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:11:54 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290632
Log:
Remove getTranslatorsInfo's method from class.php. This method is present in TranslatorStatistic.php as getSummary'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:11:07 UTC (rev 290631)
+++ web/doc-editor/trunk/php/class.php 2009-11-12 18:11:54 UTC (rev 290632)
@@ -65,31 +65,6 @@
}
/**
- * Get all statistiques about translators.
- *
- * @return An indexed array containing all statistiques about translators (nb uptodate files, nb old files, etc...)
- */
- function getTranslatorsInfo() {
-
- $translators = $this->getTranslators();
- $uptodate = $this->translatorGetUptodate();
- $old = $this->translatorGetOld();
- $critical = $this->translatorGetCritical();
-
- $i=0; $persons=array();
- foreach($translators as $nick => $data) {
- $persons[$i] = $data;
- $persons[$i]['nick'] = $nick;
- $persons[$i]['uptodate'] = isset($uptodate[$nick]) ? $uptodate[$nick] : '0';
- $persons[$i]['old'] = isset($old[$nick]) ? $old[$nick] : '0';
- $persons[$i]['critical'] = isset($critical[$nick]) ? $critical[$nick] : '0';
- $persons[$i]['sum'] = $persons[$i]['uptodate'] + $persons[$i]['old'] + $persons[$i]['critical'];
- $i++;
- }
- return $persons;
- }
-
- /**
* Get the content of a file.
*
* @param $FilePath The path of the file.