Core  3.2
PHP API documentation
 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  * @package FDL
5 */
6 /**
7  * History log for document
8  *
9  * @author Anakeen
10  * @version $Id: Class.DocHisto.php,v 1.1 2006/06/08 16:03:13 eric Exp $
11  * @package FDL
12  */
13 /**
14  */
15 /**#@+
16  * constant for log level history
17  *
18 */
19 define("HISTO_NOTICE", 1);
20 define("HISTO_INFO", 2);
21 define("HISTO_MESSAGE", 4);
22 define("HISTO_WARNING", 8);
23 define("HISTO_ERROR", 16);
24 
25 include_once ("Class.DbObj.php");
26 class DocHisto extends DbObj
27 {
28  const NOTICE = 1;
29  const INFO = 2;
30  const MESSAGE = 4;
31  const WARNING = 8;
32  const ERROR = 16;
33 
34  public $fields = array(
35  "id", // doc id
36  "initid", // doc initid
37  "uid", // user what id
38  "uname", // use name
39  "date", // date of entry
40  "level", // log level
41  "code", // code log
42  "comment"
43  // comment text
44 
45  );
46  /**
47  * identifier of document
48  * @public int
49  */
50  public $id;
51  /**
52  * identifier system of the user
53  * @public int
54  */
55  public $uid;
56  /**
57  * firstname and last name of the user
58  * @public string
59  */
60  public $uname;
61  /**
62  * comment date record
63  * @public date
64  */
65  public $date;
66  /**
67  * level of comment
68  * @public int
69  */
70  public $level;
71  public $initid;
72  /**
73  * @var string history key code
74  */
75  public $code;
76  /**
77  * @var string history message
78  */
79  public $comment;
80 
81  public $id_fields = array(
82  "id"
83  );
84 
85  public $dbtable = "dochisto";
86 
87  public $sqlcreate = "
88 create table dochisto ( id int not null,
89  initid int not null,
90  uid int not null,
91  uname text,
92  date timestamp,
93  level int,
94  code text,
95  comment text );
96 create index i_dochisto on dochisto(id);
97 create index in_dochisto on dochisto(initid);
98 ";
99 }
100 ?>
const WARNING
const MESSAGE
const NOTICE
← centre documentaire © anakeen