uasort($tagStatistics[$class], function ($a, $b) {␊ |
if ($a[0] === $b[0])␊ |
return 0;␊ |
␊ |
␊ |
return ($a[0] > $b[0]) ? -1 : 1;␊ |
});␊ |
}␊ |
|
public function userIssues($request, $match)␊ |
{␊ |
$prj = $request->project;␊ |
␊ |
␊ |
$sql = new Pluf_SQL('login=%s', array($match[2]));␊ |
$user = Pluf::factory('Pluf_User')->getOne(array('filter' => $sql->gen()));␊ |
if ($user === null) {␊ |
|
array($prj->shortname));␊ |
return new Pluf_HTTP_Response_Redirect($url);␊ |
}␊ |
␊ |
␊ |
$otags = $prj->getTagIdsByStatus('open');␊ |
$ctags = $prj->getTagIdsByStatus('closed');␊ |
if (count($otags) == 0) $otags[] = 0;␊ |
|
$user->first_name,␊ |
$user->last_name,␊ |
(string) $prj);␊ |
␊ |
␊ |
// Get stats about the issues␊ |
$sql = new Pluf_SQL('project=%s AND submitter=%s AND status IN ('.implode(', ', $otags).')', array($prj->id, $user->id));␊ |
$nb_submit = Pluf::factory('IDF_Issue')->getCount(array('filter'=>$sql->gen()));␊ |
|
␊ |
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view',␊ |
array($prj->shortname, $issue->id));␊ |
$title = Pluf_Template::markSafe(sprintf(__('Issue <a href="%1$s">%2$d</a>: %3$s'), $url, $issue->id, $issue->summary));␊ |
$title = Pluf_Template::markSafe(sprintf(__('Issue <a href="%1$s">%2$d</a>: %3$s'), $url, $issue->id, Pluf_esc($issue->summary)));␊ |
$form = false; // The form is available only if logged in.␊ |
$starred = false;␊ |
$closed = in_array($issue->status, $prj->getTagIdsByStatus('closed'));␊ |
|
{␊ |
$prj = $request->project;␊ |
$status = $match[2];␊ |
␊ |
␊ |
if (mb_strtolower($status) == 'open') {␊ |
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::index',␊ |
array($prj->shortname));␊ |
return new Pluf_HTTP_Response_Redirect($url); ␊ |
return new Pluf_HTTP_Response_Redirect($url);␊ |
}␊ |
␊ |
␊ |
$title = sprintf(__('%s Closed Issues'), (string) $prj);␊ |
// Get stats about the issues␊ |
$open = $prj->getIssueCountByStatus('open');␊ |