File: ct_null.inc

package info (click to toggle)
phplib 1%3A7.3dev-3.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,752 kB
  • ctags: 247
  • sloc: php: 6,659; perl: 323; pascal: 157; makefile: 102; sh: 7
file content (49 lines) | stat: -rw-r--r-- 764 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
38
39
40
41
42
43
44
45
46
47
48
49
<?php

##
## Copyright (c) 1998,1999 Sascha Schumann <sascha@schumann.cx>
##
## $Id: ct_null.inc,v 1.2 1999/07/07 20:43:44 sas Exp $
##
## PHPLIB Data Storage Container using nothing
## 
## I wrote this for a quickie test of a website on a server
## where I could not use any other container
## 
## It's also a good skeleton for writing a new container


class CT_Null {
	function ac_start() {
	}

	function ac_get_lock() {
	}

	function ac_release_lock() {
	}

	function ac_newid($str, $name) {
		return $str;
	}

	function ac_store($id, $name, $str) {
		return true;
	}

	function ac_delete($id, $name) {
	}

	function ac_gc($gc_time, $name) {
	}

	function ac_halt($s) {
		echo "<b>$s</b>";
		exit;
	}

	function ac_get_value($id, $name) {
		return "";
	}
}
?>