- Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathgit_graph.php
More file actions
Latest commit
52 lines (38 loc) · 1.03 KB
/
Copy pathgit_graph.php
File metadata and controls
52 lines (38 loc) · 1.03 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
require_oncedirname(__FILE__)."/git.php";
abstractclass Git_Graphic extends Git
{
protected$height = 700;
protected$width = 230;
functiondoGraphic() {
$history = array();
foreach($this->branchas$branch => $id) {
$history[$branch] = $this->getHistory($branch);
}
$this->modInit();
}
protectedfunctionsetImageSize($width,$height) {
$this->width = $width;
$this->height = $height;
}
abstractfunctionmodInit();
abstractfunctionaddBranchName();
}
require("contrib/pChart.1.27/pChart/pData.class");
require("contrib/pChart.1.27/pChart/pChart.class");
finalclass Git_Graphic_pChart extends Git_Graphic
{
private$_pchart;
private$_data;
private$_height;
private$_width;
functionmodInit() {
$this->_data = newpData;
$this->_pchart = newpChart($this->height,$this->width);
}
functionaddBranchName() {
}
}
$git_graph = newGit_Graphic_pChart(".git");
$git_graph->doGraphic();
?>