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

From: Date: Thu, 12 Nov 2009 17:48:43 +0000
Subject: svn: /web/doc-editor/trunk/php/ class.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1169@lists.php.net to get a copy of this message
yannick Thu, 12 Nov 2009 17:48:43 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290609 Log: Remove getFilesNeedReviewed's method from class.php. This method is present in RepositoryFetcher.php as getPendingReview'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:48:36 UTC (rev 290608) +++ web/doc-editor/trunk/php/class.php 2009-11-12 17:48:43 UTC (rev 290609) @@ -65,55 +65,6 @@ } /** - * Get all files witch need to be reviewed. - * - * @return An associated array containing all informations about files witch need to be reviewed. - */ - function getFilesNeedReviewed() { - - // Get Files Need Commit - $ModifiedFiles = $this->getModifiedFiles(); - - $s = sprintf('SELECT * FROM files WHERE lang = "%s" AND revision = en_revision AND reviewed != \'yes\' LIMIT 100', $this->cvsLang); - $r = $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s); - $nb = $r->num_rows; - - $node = array(); - - while ($a = $r->fetch_object()) { - - $temp = array( - "id" => $a->id, - "path" => $a->path, - "name" => $a->name, - ); - - 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_reviewed = $a->reviewed; - $new_maintainer = $a->maintainer; - } - - if (isset($ModifiedFiles[$this->cvsLang.$a->path.$a->name])) { - $new_reviewed = $ModifiedFiles[$this->cvsLang.$a->path.$a->name]['reviewed']; - $new_maintainer = $ModifiedFiles[$this->cvsLang.$a->path.$a->name]['maintainer']; - } - - $temp['reviewed'] = $new_reviewed; - $temp['maintainer'] = $new_maintainer; - $temp['needcommit'] = true; - } else { - $temp['reviewed'] = $a->reviewed; - $temp['maintainer'] = $a->maintainer; - $temp['needcommit'] = false; - } - $node[] = $temp; - } - return array('nb'=>$nb, 'node'=>$node); - } - - /** * Get all files witch are not in EN tree. * * @return An associated array containing all informations about files witch are not in EN tree

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