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

From: Date: Thu, 12 Nov 2009 17:44:57 +0000
Subject: svn: /web/doc-editor/trunk/php/ class.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1165@lists.php.net to get a copy of this message
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

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