voteInspector: View the info in objectManager's edit mode
This commit is contained in:
@@ -875,7 +875,7 @@ class version {
|
|||||||
if($_SESSION['current']->hasPriv('admin'))
|
if($_SESSION['current']->hasPriv('admin'))
|
||||||
{
|
{
|
||||||
$oMVoteInspector = new objectManager('voteInspector', 'Vote inspector');
|
$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;
|
$shVoteText = vote_count_version_total($this->iVersionId).$shVoteLink;
|
||||||
|
|||||||
@@ -250,7 +250,12 @@ class voteInspector
|
|||||||
return 'accepted';
|
return 'accepted';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function display()
|
public function canEdit()
|
||||||
|
{
|
||||||
|
return $_SESSION['current']->hasPriv('admin');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function outputEditor()
|
||||||
{
|
{
|
||||||
$oVersion = new version($this->iVersionId);
|
$oVersion = new version($this->iVersionId);
|
||||||
|
|
||||||
@@ -314,6 +319,21 @@ class voteInspector
|
|||||||
|
|
||||||
echo $oTable->getString();
|
echo $oTable->getString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getOutputEditorValues($aValues)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user