File: be_null.inc

package info (click to toggle)
phplib 2%3A7.2d-3.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,612 kB
  • ctags: 198
  • sloc: php: 6,095; pascal: 186; perl: 95; makefile: 78; sh: 6
file content (49 lines) | stat: -rw-r--r-- 851 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) 1999-2000 Internet Images srl
##                    Massimiliano Masserelli <negro@interim.it>
##
## $Id: be_null.inc,v 1.2 2000/07/12 18:22:33 kk Exp $
##
## PHPLIB Blob Engine using nothing
## 
## This is a "reference" class to be used only as an example. This should
## not be used in applications.
## 
## It's also a good skeleton for writing a new Blob Engine


class BE_Null {
    function blob_create() {
        return false;
    }

    function blob_open($id) {
        return false;
    }

    function blob_close($id) {
        return false;
    }

    function blob_delete($id) {
        return false;
    }

    function blob_read($id) {
        return false;
    }

    function blob_write($id, $data) {
        return false;
    }


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

}
?>