mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
timeline 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4733 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2fd078ff5c
commit
82068ec7c1
12 changed files with 156 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
|||
require_once(_XE_PATH_.'modules/issuetracker/issuetracker.item.php');
|
||||
|
||||
class issuetrackerModel extends issuetracker {
|
||||
var $oSvn = null;
|
||||
|
||||
function init()
|
||||
{
|
||||
|
|
@ -348,5 +349,36 @@
|
|||
$output = executeQueryArray('issuetracker.getGroupMembers', $args);
|
||||
return $output->data;
|
||||
}
|
||||
|
||||
function getLatestRevision($module_srl) {
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQuery('issuetracker.getLatestRevision', $args);
|
||||
if($output->data && $output->data->revision)
|
||||
{
|
||||
return $output->data->revision;
|
||||
}
|
||||
else return 0;
|
||||
}
|
||||
|
||||
function getChangesets($module_srl, $enddate = null, $limit = 90)
|
||||
{
|
||||
if(!$enddate)
|
||||
{
|
||||
$enddate = date("Ymd");
|
||||
}
|
||||
$args->enddate = date("Ymd", ztime($enddate)+24*60*60);
|
||||
$args->startdate = date("Ymd", ztime($enddate)-24*60*60*$limit);
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQueryArray("issuetracker.getChangesets", $args);
|
||||
if(!$output->toBool() || !$output->data)
|
||||
{
|
||||
debugPrint($output);
|
||||
return array();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $output->data;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue