Alexander Nicolaysen Sørnes : voteInspector: View the info in objectManager's edit mode
Alexander Nicolaysen Sørnes
asornes at winehq.org
Wed Jul 22 13:31:03 CDT 2009
Module: appdb
Branch: master
Commit: 028d51d85dbc16a2f3f592ccf85ed9c58a79c817
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=028d51d85dbc16a2f3f592ccf85ed9c58a79c817
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Wed Jul 22 20:30:18 2009 +0200
voteInspector: View the info in objectManager's edit mode
---
include/version.php | 2 +-
include/vote.php | 22 +++++++++++++++++++++-
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/include/version.php b/include/version.php
index b2c1798..7d4aa55 100644
--- a/include/version.php
+++ b/include/version.php
@@ -875,7 +875,7 @@ class version {
if($_SESSION['current']->hasPriv('admin'))
{
$oMVoteInspector = new objectManager('voteInspector', 'Vote inspector');
- $shVoteLink .= ' <a href="'.$oMVoteInspector->makeUrl('view',$this->iVersionId).'">Inspect</a>';
+ $shVoteLink .= ' <a href="'.$oMVoteInspector->makeUrl('edit',$this->iVersionId).'">Inspect</a>';
}
$shVoteText = vote_count_version_total($this->iVersionId).$shVoteLink;
diff --git a/include/vote.php b/include/vote.php
index 193c3b8..692c2ab 100644
--- a/include/vote.php
+++ b/include/vote.php
@@ -250,7 +250,12 @@ class voteInspector
return 'accepted';
}
- public function display()
+ public function canEdit()
+ {
+ return $_SESSION['current']->hasPriv('admin');
+ }
+
+ public function outputEditor()
{
$oVersion = new version($this->iVersionId);
@@ -314,6 +319,21 @@ class voteInspector
echo $oTable->getString();
}
+
+ public function getOutputEditorValues($aValues)
+ {
+
+ }
+
+ public function create()
+ {
+ return true;
+ }
+
+ public function update()
+ {
+ return true;
+ }
}
/**
More information about the wine-cvs
mailing list