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:44:57 +0000

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

Log:
Remove getLastUpdate's method from class.php. This method is present in RepositoryFetcher.php as getLastUpdate'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:43:23 UTC (rev 290601)
+++ web/doc-editor/trunk/php/class.php	2009-11-12 17:44:57 UTC (rev 290602)
@@ -940,30 +940,4 @@
         return $r->fetch_object();
     }

-    /**
-     * Get the last update datetime
-     *
-     * @return The last update datetime or "in_progress" if the update is in progress
-     */
-    function getLastUpdate()
-    {
-        // Test is there is an update in progress
-        $lock_update = new LockFile('lock_update_repository');
-        $lock_apply = new LockFile('lock_apply_tools');
-
-        if( $lock_update->isLocked() || $lock_apply->isLocked() ) { return array('lastupdate'=>'in_progress', 'by'=>'-'); }
-        else {
-
-            $s = 'SELECT `lastupdate`, `by` FROM `project` WHERE `name`="php"';
-            $r = $this->db->query($s);
-            $a = $r->fetch_assoc();
-
-            return $a;
-
-        }
-
-
-    } // get_last_update
-
-
 } // End of class
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.