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 17:53:08 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=290614

Log:
Remove getAllFilesAboutExtension's method from class.php. This method is present in RepositoryFetcher.php as getFilesByExtension'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:52:05 UTC (rev 290613)
+++ web/doc-editor/trunk/php/class.php	2009-11-12 17:53:08 UTC (rev 290614)
@@ -662,31 +662,6 @@
     }

     /**
-     * Get all files for a given php's extension.
-     *
-     * @param $ExtName The name of the extension.
-     * @return An array of files
-     */
-    function getAllFilesAboutExtension($ExtName) {
-
-        $s = sprintf('SELECT `path`, `name` FROM `files` WHERE `path` LIKE \'/reference/%s/%%\' AND `lang`="%s" ORDER BY `path`, `name`',$ExtName, $this->cvsLang);
-        $r = $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s);
-        $node = array();
-
-        $i=0;
-        while ($a = $r->fetch_object()) {
-
-            $node[$i]['path'] = $a->path;
-            $node[$i]['name'] = $a->name;
-
-            $i++;
-        }
-
-        return $node;
-
-    }
-
-    /**
      * Search a file regarding his file's ID.
      *
      * @TODO Better description here...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.