Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
Class.DocHisto.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* History log for document
9
*
10
* @author Anakeen 2005
11
* @version $Id: Class.DocHisto.php,v 1.1 2006/06/08 16:03:13 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
*/
15
/**
16
*/
17
/**#@+
18
* constant for log level history
19
*
20
*/
21
define(
"HISTO_NOTICE"
, 1);
22
define(
"HISTO_INFO"
, 2);
23
define(
"HISTO_MESSAGE"
, 4);
24
define(
"HISTO_WARNING"
, 8);
25
define(
"HISTO_ERROR"
, 16);
26
27
include_once (
"Class.DbObj.php"
);
28
class
DocHisto
extends
DbObj
29
{
30
public
$fields
= array(
31
"id"
,
// doc id
32
"initid"
,
// doc initid
33
"uid"
,
// user what id
34
"uname"
,
// use name
35
"date"
,
// date of entry
36
"level"
,
// log level
37
"code"
,
// code log
38
"comment"
39
// comment text
40
41
);
42
/**
43
* identificator of document
44
* @public int
45
*/
46
public
$id
;
47
/**
48
* identificator system of the user
49
* @public int
50
*/
51
public
$uid
;
52
/**
53
* firstname and last name of the user
54
* @public string
55
*/
56
public
$uname
;
57
/**
58
* comment date record
59
* @public date
60
*/
61
public
$date
;
62
/**
63
* level of comment
64
* @public int
65
*/
66
public
$level
;
67
68
public
$id_fields
= array(
69
"id"
70
);
71
72
public
$dbtable
=
"dochisto"
;
73
74
public
$sqlcreate
=
"
75
create table dochisto ( id int not null,
76
initid int not null,
77
uid int not null,
78
uname text,
79
date timestamp,
80
level int,
81
code text,
82
comment text );
83
create index i_dochisto on dochisto(id);
84
create index in_dochisto on dochisto(initid);
85
"
;
86
}
87
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase