File: Cache.php

package info (click to toggle)
bamboo 1.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 580 kB
  • ctags: 1,338
  • sloc: php: 4,061; makefile: 44; sh: 36
file content (37 lines) | stat: -rw-r--r-- 396 bytes parent folder | download
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
<?php

class Cache {

var $path;
var $content;

function Cache($cachedir, $siteroot) {
	return;
}

function begin($path) {
	$this->path = $path;
	ob_start();
}

function end() {
	$this->content = &ob_get_contents();
	ob_end_clean();
}

function time($path) {
	return -1;
}

function get($path) {
	return '';
}

function echofile($path) {
	echo $this->content;
}

} // end class Cache

return;
?>