-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathgit_graph.php
More file actions
52 lines (38 loc) · 1.03 KB
/
git_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_once dirname(__FILE__)."/git.php";
abstract class Git_Graphic extends Git
{
protected $height = 700;
protected $width = 230;
function doGraphic() {
$history = array();
foreach($this->branch as $branch => $id) {
$history[$branch] = $this->getHistory($branch);
}
$this->modInit();
}
protected function setImageSize($width,$height) {
$this->width = $width;
$this->height = $height;
}
abstract function modInit();
abstract function addBranchName();
}
require("contrib/pChart.1.27/pChart/pData.class");
require("contrib/pChart.1.27/pChart/pChart.class");
final class Git_Graphic_pChart extends Git_Graphic
{
private $_pchart;
private $_data;
private $_height;
private $_width;
function modInit() {
$this->_data = new pData;
$this->_pchart = new pChart($this->height,$this->width);
}
function addBranchName() {
}
}
$git_graph = new Git_Graphic_pChart(".git");
$git_graph->doGraphic();
?>