svn: /web/doc-editor/trunk/php/ class.php
| From: | Yannick Torres | Date: | Thu, 12 Nov 2009 17:48:03 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ class.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1168@lists.php.net to get a copy of this message | ||
yannick Thu, 12 Nov 2009 17:48:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290607
Log:
Remove getFilesNeedUpdate's method from class.php. This method is present in
RepositoryFetcher.php as getPendingUpdate'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 17:47:17 UTC (rev 290606)
+++ web/doc-editor/trunk/php/class.php 2009-11-12 17:48:03 UTC (rev 290607)
@@ -65,65 +65,6 @@
}
/**
- * Get all files witch need to be updated.
- *
- * @return An associated array containing all informations about files witch need to be
updated.
- */
- function getFilesNeedUpdate() {
-
- // Get Files Need Commit
- $ModifiedFiles = $this->getModifiedFiles();
-
- $s = sprintf('SELECT * FROM
files WHERE lang =
"%s" AND revision != en_revision', $this->cvsLang);
- $r = $this->db->query($s);
-
- $nb = $r->num_rows;
-
- $node = array();
-
- while ($a = $r->fetch_object()) {
-
- if (isset($ModifiedFiles[$this->cvsLang.$a->path.$a->name]) ||
isset($ModifiedFiles['en'.$a->path.$a->name])) {
-
- if (isset($ModifiedFiles['en'.$a->path.$a->name])) {
- $new_en_revision =
$ModifiedFiles['en'.$a->path.$a->name]['revision'];
- $new_revision = $a->revision;
- $new_maintainer = $a->maintainer;
- }
-
- if (isset($ModifiedFiles[$this->cvsLang.$a->path.$a->name])) {
- $new_en_revision = $a->en_revision;
- $new_revision =
$ModifiedFiles[$this->cvsLang.$a->path.$a->name]['en_revision'];
- $new_maintainer =
$ModifiedFiles[$this->cvsLang.$a->path.$a->name]['maintainer'];
- }
-
- $node[] = array(
- "id" => $a->id,
- "path" => $a->path,
- "name" => $a->name,
- "revision" => $new_revision,
- "en_revision" => $new_en_revision,
- "maintainer" => $new_maintainer,
- "needcommit" => true,
- "isCritical" => false
- );
- } else {
- $node[] = array(
- "id" => $a->id,
- "path" => $a->path,
- "name" => $a->name,
- "revision" => $a->revision,
- "en_revision" => $a->en_revision,
- "maintainer" => $a->maintainer,
- "needcommit" => false,
- "isCritical" => ( ($a->en_revision - $a->revision >= 10) ||
$a->size_diff >= 3 || $a->mdate_diff <= -30 ) ? true : false
- );
- }
- }
- return array('nb'=>$nb, 'node'=>$node);
- }
-
- /**
* Get all files witch need to be reviewed.
*
* @return An associated array containing all informations about files witch need to be
reviewed.