blob: 306e42d27f81a8cc230e8c0366d7671724418c78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
function task_get_order() {
global $build;
static $buildid=null;
static $order=null;
if ($build->id === $buildid) {
$order++;
} else {
$buildid=$build->id;
$order=0;
}
return $order;
}
function buildlog_entry_get_order() {
global $build, $task;
static $buildid, $taskorder, $order;
if ($buildid === $build->id && $taskorder === $task->order) {
$order++;
} else {
$buildid=$build->id;
$taskorder=$task->order;
$order=0;
}
return $order;
}
?>
|