Skip to content
Snippets Groups Projects
Commit 9077dc62 authored by Tim Steiner's avatar Tim Steiner
Browse files

Getting vote tallying to work.

parent 963acbb2
No related branches found
No related tags found
No related merge requests found
......@@ -53,4 +53,14 @@ class ApproverVotes extends Nmc_Db_Table
$where = implode(' AND ', $where);
return $this->fetchRow($where);
}
public function fetchByRequestAndAction(Request $request, ApprovalAction $action)
{
$db = $this->getAdapter();
$where = array();
$where[] = $db->quoteInto('request=?', $request->getPrimaryKey());
$where[] = $db->quoteInto('approvalAction=?', $action->getPrimaryKey());
$where = implode(' AND ', $where);
return $this->fetchRow($where);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment