Alexander Nicolaysen Sørnes : screenshot queue: Show whether a version has a maintainer

Alexander Nicolaysen Sørnes asornes at winehq.org
Thu Dec 3 17:08:27 CST 2009


Module: appdb
Branch: master
Commit: 561bf2b6b1a158e12cc6c975d6c51f700b932d66
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=561bf2b6b1a158e12cc6c975d6c51f700b932d66

Author: Alexander Nicolaysen Sørnes <alexander at linux-xqqm.(none)>
Date:   Thu Dec  3 21:53:13 2009 +0100

screenshot queue: Show whether a version has a maintainer

---

 include/appData.php     |    6 +++++-
 include/application.php |    5 +++++
 include/version.php     |    5 +++++
 3 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/include/appData.php b/include/appData.php
index 91c0e58..198aca7 100644
--- a/include/appData.php
+++ b/include/appData.php
@@ -350,10 +350,11 @@ class appData
     function objectGetHeader($sType)
     {
         $oTableRow = new TableRow();
-        $oTableRow->AddTextCell("Submission Date");
+        $oTableRow->AddTextCell("Submission date");
         $oTableRow->AddTextCell("Submitter");
         $oTableRow->AddTextCell("Application");
         $oTableRow->AddTextCell("Version");
+        $oTableRow->AddTextCell('Has maintainer');
         return $oTableRow;
     }
 
@@ -562,11 +563,14 @@ class appData
         $oApp = new Application($this->iAppId);
         $oUser = new User($this->iSubmitterId);
 
+        $bMaintained = $this->iVersionId ? $oVersion->hasMaintainer() : $oApp->hasMaintainer();
+
         $oTableRow = new TableRow();
         $oTableRow->AddTextCell(print_date(mysqldatetime_to_unixtimestamp($this->sSubmitTime)));
         $oTableRow->AddTextCell($oUser->objectMakeLink());
         $oTableRow->AddTextCell($oApp->objectMakeLink());
         $oTableRow->AddTextCell($this->iVersionId ? $oVersion->objectMakeLink() : "N/A");
+        $oTableRow->AddTextCell($bMaintained ? 'YES' : 'No');
 
         // create the object manager specific row
         $oOMTableRow = new OMTableRow($oTableRow);
diff --git a/include/application.php b/include/application.php
index 6f8fa26..b321cf4 100644
--- a/include/application.php
+++ b/include/application.php
@@ -244,6 +244,11 @@ class Application {
         return true;
     }
 
+    public function hasMaintainer()
+    {
+        return $this->bHasMaintainer;
+    }
+
     public function updateMaintainerState()
     {
         $this->bHasMaintainer = maintainer::appHasMaintainer($this->iAppId);
diff --git a/include/version.php b/include/version.php
index a14a2c4..a66fd87 100644
--- a/include/version.php
+++ b/include/version.php
@@ -1547,6 +1547,11 @@ class version {
         $this->sState = $sState;
     }
 
+    public function hasMaintainer()
+    {
+        return $this->bHasMaintainer;
+    }
+
     public function updateMaintainerState()
     {
         $this->bHasMaintainer = maintainer::versionHasMaintainer($this->iVersionId);




More information about the wine-cvs mailing list